README.md
ComposerKit
ComposerKit is a React component library for chat interfaces and data-dense workspaces, built on Tailwind CSS v4 and Base UI. It ships message composers, conversations, tool calls, code diffs, a virtualized data grid, SVG and WebGL charts, calendars and resource timelines, tree views, date and time pickers, and shared UI primitives.
Documentation, live demos, and the theme editor are served at https://composerkit.dynd.ai.
Install
ComposerKit distributes source through the shadcn registry at https://composerkit.dynd.ai/r/{name}.json. Installing an item copies its TypeScript source, internal dependencies, and CSS tokens into your Next.js app's src/ folder.
| 1 | npx shadcn@latest init --defaults --yes |
| 2 | npx shadcn registry add '@composerkit=https://composerkit.dynd.ai/r/{name}.json' |
| 3 | npx shadcn add @composerkit/composer --overwrite --yes |
Replace the starter src/app/globals.css with the ComposerKit stylesheet:
| 1 | @import "../styles/globals.css"; |
Install workspace subsystems with the same registry namespace:
| 1 | npx shadcn add @composerkit/data-grid --overwrite --yes |
| 2 | npx shadcn add @composerkit/charts --overwrite --yes |
| 3 | npx shadcn add @composerkit/scheduler --overwrite --yes |
| 4 | npx shadcn add @composerkit/tree-view --overwrite --yes |
| 5 | npx shadcn add @composerkit/date-time-picker --overwrite --yes |
See the quickstart for a complete end-to-end Next.js example.
Repository layout
| 1 | packages/composerkit/ # component source copied by the registry |
| 2 | ├── src/components/ # chat, data-grid, charts, scheduler, tree-view, date-time-picker, ui |
| 3 | ├── src/lib/ # shared helpers (excel, css-properties, geometry, utils) |
| 4 | ├── src/styles/ # globals.css and generated design-tokens.css |
| 5 | ├── harness/ # headless browser verification harness for data-grid |
| 6 | └── DESIGN.md # single source of truth for all light and dark design tokens |
| 7 | apps/docs/ # Fumadocs site, component gallery, theme editor, and registry output |
| 8 | ├── content/docs/ # quickstart, guides, theme editor, and component reference MDX |
| 9 | ├── app/(gallery)/gallery/ # isolated live demo pages |
| 10 | ├── examples/ # demo components shared between gallery and docs |
| 11 | ├── registry.json # generated shadcn registry manifest |
| 12 | ├── public/r/ # built registry JSON items served at /r/{name}.json |
| 13 | ├── public/_headers # Cloudflare Workers Static Assets headers for /r/* and /llms*.txt |
| 14 | └── cloudflare.config.ts # Cloudflare Workers Static Assets deployment config |
| 1 | flowchart LR |
| 2 | design["packages/composerkit/DESIGN.md"] -->|export:design| tokens["src/styles/design-tokens.css"] |
| 3 | src["packages/composerkit/src"] -->|pnpm registry:build| registry["apps/docs/public/r"] |
| 4 | tokens --> docs["apps/docs"] |
| 5 | src --> docs |
| 6 | registry --> docs |
| 7 | docs -->|GitCafe Actions cf deploy| edge["https://composerkit.dynd.ai"] |
Develop locally
Requires Node.js 26 and pnpm 12 (pinned in mise.toml).
| 1 | pnpm install |
| 2 | pnpm dev |
Open http://localhost:3003/docs for documentation and http://localhost:3003/gallery for the isolated component gallery.
Verify and rebuild
| 1 | mise run ci |
mise run ci runs frozen install, export:design, Ultracite + workspace lint, typecheck, static next build, registry:build, and verifies zero drift on design-tokens.css, apps/docs/registry.json, and apps/docs/public/r.
Pushes to main run .github/workflows/docs.yml on the self-hosted runner and deploy apps/docs/out to https://composerkit.dynd.ai via cf deploy.
License
MIT