@aihu/ui
v0.1.0
Published
aihu styled-recipe registry — copy-paste .aihu recipes distributed as source via `aihu add` (no runtime bundle).
Readme
@aihu/ui
Aihu — agentic discovery and interaction, for human purpose.
aihu styled-recipe registry — copy-paste .aihu recipes distributed as source via aihu add (no runtime bundle).
The styled-recipe layer on top of the headless @aihu/primitives
and the CSS engine. A recipe is an .aihu SFC with a @meta
variant declaration, a @template wiring data-* attributes, and a @style
block of @apply utilities resolved against the active style pack.
@aihu/ui is source-distributed. Its payload is the registry/** .aihu
recipe sources plus a generated registry.json index — NOT a bundled runtime
dependency. You install it as a devDependency and aihu add <name> copies the
recipe source into your project (you own the copy). Because nothing from this
package is bundled into your runtime from the package, it carries no
.size-limit.json row — your own build measures the copied recipes. See
.size-limit.README.md.
Phase 1 recipes
| Recipe | Kind | Notes |
|---|---|---|
| button | styled | extends the headless AihuButton from @aihu/primitives/button (class-extension model) |
| card | styled | presentational; slotted header/body/footer |
| badge | styled | presentational; variant matrix |
| separator | styled | presentational; orientation + role="separator" |
Local development
bun run gen:registry # scan registry/** → registry.json (index-only)
bun run test # vitest (recipe-compile + runtime shadow-adoption)
bun run typecheck # tsc --noEmit (no dist; recipes are typechecked, not compiled)Install
npm install @aihu/ui
# or
bun add @aihu/uiAuto-generated against @aihu/[email protected].
Package facts
| | |
|---|---|
| Version | 0.1.0 |
| Tier | E — Held private (unmapped tier) |
| Published files | 6 entries |
| License | MIT |
Auto-generated against @aihu/[email protected].
Exports
| Subpath | ESM | CJS |
|---|---|---|
| ./registry.json | ./registry.json | — |
| ./schema | — | — |
Auto-generated against @aihu/[email protected].
Dependencies
Zero runtime dependencies (per the dep-free thesis).
Auto-generated against @aihu/[email protected].
See also
Auto-generated against @aihu/[email protected].
License
MIT — see LICENSE.
Auto-generated against @aihu/[email protected].
