For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
FrakmentFrakment

Libraries

CLI, AI engine, and runtime engines shipped with Frakment.

Frakment ships three runtime layers beyond the component registry. Each is MIT licensed, fully in-repo, and independently installable.

Layers

LayerImportPurposeStatus
frakment CLInpx frakment@latest ...Install components + themeStable
AI engine@frakment/aiDeterministic chat engine (createChat)Stable

Design principles

  • Zero external engine dependencies. Every runtime layer is a first-party Frakment package, published on npm.
  • Deterministic. No network calls, no model invocations. Same input → same output.
  • Composable. CLI, AI engine, and React engine are independently installable.
  • Contract-first. When replacing an existing library, the public API and behaviour match the contract consumers already rely on — no surprises.

Distribution

LayerInstalled via
Components (button, card, …)npx frakment@latest add <name>
Theme (tokens + utilities)npx frakment@latest init
AI engine (@frakment/ai)npm install @frakment/ai
  • CLI — init, add, list commands and flags
  • AI engine — createChat() chainable API, transport, tools, approvals