Get Started
Components
- Accordion
- Attachment
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Card
- Checkbox
- Code Block
- Collapsible
- Dialog
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Label
- Marker
- Message
- Number Flow
- Pagination
- Popover
- Progress
- Radio Group
- Select
- Slider
- Sonner
- Spinner
- Switch
- Tooltip
- Separator
- Sheet
- Tabs
- Textarea
- Toggle
- Toggle Group
- Trace
AI Elements
Libraries
Utilities
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
| Layer | Import | Purpose | Status |
|---|---|---|---|
| frakment CLI | npx frakment@latest ... | Install components + theme | Stable |
| AI engine | @frakment/ai | Deterministic 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
| Layer | Installed via |
|---|---|
Components (button, card, …) | npx frakment@latest add <name> |
| Theme (tokens + utilities) | npx frakment@latest init |
AI engine (@frakment/ai) | npm install @frakment/ai |