chirp-ui API Reference

Browse Python API documentation by package.

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

Package Index

26 modules · search with ⌘K

autodoc-python icons

Icon registry: semantic names → Unicode glyphs for chirp-ui components.

Use theicon filter to resolve names in templates: {{ "status" | icon }}→ ◎. Unknown names…

Open reference
autodoc-python config_schema

Typed config-schema → form-field projection for chirp-ui.

Deliberately modeled onchirp_ui.grid_stateand chirp_ui.route_tabs: stdlib + dataclasses only, no import chirpand noimport kida. Fully unit-testable…

Open reference
autodoc-python tokens

CSS custom property catalog — machine-readable index of --chirpui-* tokens.

EachTokenDefrecords a single CSS custom property: its name, semantic category, and scope (global or a component…

Open reference
autodoc-python alpine

Alpine runtime detection for chirp-ui.

chirp-ui has a small, enumerable set of macros that require chirpui-alpine.jsto work at runtime (theme toggle, dialogs, dropdowns, collapsible sidebar, etc). When…

Open reference
autodoc-python css_subset

Manifest-driven CSS subset selection for chirp-ui (issue #205).

The shippedchirpui.cssconcatenates every authoring partial (~350+ components). Consumers that use a handful of macros can emit a fraction…

Open reference
autodoc-python route_tabs

Route-family tab helpers for chirp-ui route_tabs component.

Tab item: dict or object withhref, optional match (default "exact"). Full dict shape (from ChirpTabItem via _tab_item_to_shell_dict…

Open reference
autodoc-python mcp_server

MCP server over the chirp-ui manifest — agent-native registry distribution.

Requires the optionalmcpextra::

pip install "chirp-ui[mcp]"
chirp-ui mcp

Tools expose the same manifest surface aschirp-ui…

Open reference
autodoc-python chirp_ui

chirp-ui — Reusable Kida component library for Chirp.

Headless, htmx-native, zero JavaScript. Install and import::

pip install chirp-ui {%% from "chirpui/card.html" import card %%} {%% from "chirpui/modal.html" import…
Open reference
autodoc-python grid_state

Server-driven data-grid state helpers for chirp-ui (issue #200).

Deliberately modeled onchirp_ui.route_tabs: stdlib + dataclasses only, noimport chirp and no import kida. The module is…

Open reference
autodoc-python _macro_introspect

AST introspection for{% def %}macros — internal.

Wrapskida.lexer + kida.parserto extract per-macro parameter metadata without compiling the template (so no chirp-ui filter stubs are…

Open reference
autodoc-python inspect

Design system introspection — dump the chirp-ui API surface.

Usage::

python -m chirp_ui.inspect # JSON report python -m chirp_ui.inspect --summary # compact table python -m chirp_ui.inspect --tokens #…
Open reference
autodoc-python preview_env

Kida preview environment for offline macro rendering.

Used by the blocks-gallery generator and component render tests. Mirrors the Chirp runtime stubs registered intests/conftest.pyso manifest usage snippets…

Open reference
autodoc-python shortcuts

Declarative keyboard-shortcut catalog for chirp-ui.

The catalog is the single source of truth:shortcuts_help.htmlrenders the help modal from it, and thechirpuiShortcutsAlpine factory dispatches from the…

Open reference
autodoc-python blocks_gallery

Registry-backed blocks gallery — copy-paste snippets and live previews.

Generates the manifest-driven blocks catalog consumed by the component showcase and freshness-gated in CI (scripts/build_blocks_gallery.py).

Open reference
autodoc-python filters

Template filters required by chirp-ui components.

These match Chirp's filter API so chirp-ui works with any Chirp version. Register viaregister_filters() when using Chirp.

Everything not in …

Open reference
autodoc-python manifest

Agent-groundable manifest of the chirp-ui component surface.

This module publishes the component registry (chirp_ui.components.COMPONENTS pluschirp_ui.tokens.TOKEN_CATALOG) as a stable JSON snapshot. AI agents and docs tooling…

Open reference
autodoc-python components

Component descriptors — single source of truth for chirp-ui's BEM API surface.

EachComponentDescriptordeclares the full public contract of a component: block name, allowed variants (legacy/mutually exclusive),…

Open reference
autodoc-python library

Framework-neutral package metadata for Chirp UI consumers.

Frameworks and static-site generators can consume this module to discover the public Chirp UI template root, static assets, and manifest path…

Open reference
autodoc-python validation

chirp-ui variant validation — strict mode, warning infrastructure, and registries.

When strict mode is enabled (viaset_strict()), validation warnings escalate toValueError. In non-strict mode, _warn…

Open reference
autodoc-python layout_affinity

Layout-affinity vocabulary for recipe-level workspace contracts.

The current layout-affinity contract is intentionally narrow: rendered templates may emit documenteddata-chirpui-*attributes, and parent primitives may resolve those attributes inside…

Open reference
autodoc-python find

Fuzzy component discovery over the shipped manifest —python -m chirp_ui find.

Sprint 6 of the agent-grounding-depth epic. The manifest is the registry projection; this module turns…

Open reference
autodoc-python text_fragment

Text-fragment deep-link helper for chirp-ui citation UI.

Pure-URL, stdlib-only (Chirp-agnostic, like route_tabs / grid_state). Builds#:~:text=scroll-to-text-fragment links.

Open reference
autodoc-python __main__

python -m chirp_uidispatch — subcommand front door.

Currently a single subcommand (find) plus a pointer to the existing python -m chirp_ui.manifestentry point. New subcommands…

Open reference
autodoc-python theme_packs

Immutable catalog of token-only Chirp UI theme packs.

Open reference
autodoc-python nav_pill

Sliding-pill nav indicator helpers (#255).

Server-side CSS custom-property estimates for first paint; shell runtime syncPill()refines to measured pixels on client navigation.

Open reference
autodoc-python section-index

Browse Python API documentation by package.

Open reference