Repository navigation
Quick Start
Hamroqulovv edited this page Oct 8, 2026
·
2 revisions
Get your first animated component installed in about five minutes.
| Requirement | Notes |
|---|---|
| Node.js >= 20 | To use the CLI. Repo development needs Node >= 22 + pnpm. |
| A React project | Next.js, Vite, Remix, or similar — with TypeScript and Tailwind CSS. |
tsconfig.json with path aliases |
e.g. @/*. init reads them; it never modifies them. |
Windows? The CLI itself runs anywhere, but repo shell scripts expect WSL2 or Git Bash with LF line endings (see FAQ).
# One-shot, no install:
npx @framebits/cli initinit detects your package manager (pnpm/yarn/npm/bun), framework (including
Next.js app/pages router), TypeScript setup, Tailwind version (v3 config file
vs v4 @import "tailwindcss"), src/ layout, and existing import aliases —
then writes framebits.json. Running it twice never corrupts anything.
# Non-interactive (CI-friendly):
npx @framebits/cli init --yesnpx @framebits/cli add aurora-textWhat happens, in order:
- The component JSON is fetched from the registry and validated.
- Its SHA-256 hash is recomputed — any tampering aborts with exit 4 and nothing is written.
- Registry dependencies resolve recursively (
aurora-textpulls incn). - Files land under your configured aliases (e.g.
@/components/ui). - Tailwind keyframes/animation and CSS variables are merged into your CSS.
- Missing npm packages are installed with your package manager.
-
framebits.jsonrecords the installed version + hash.
Preview first, change nothing:
framebits add aurora-text --dry-run# The files exist where your aliases point, e.g:
ls src/components/ui/aurora-text.tsx src/lib/cn.ts
# Your CSS gained a managed block:
grep "framebits:begin aurora-text" src/index.css| Symptom | Fix |
|---|---|
init hasn't been run |
Run framebits init first — add exits 2 without framebits.json. |
| File conflicts | Re-run with --overwrite, or answer per-file when prompted. |
404 component not found |
Check the spelling — the CLI suggests the closest match. |
| Hash/integrity error (exit 4) | Do not bypass. Re-run; if it persists, report it. |
| Offline / DNS / timeout | Exit 3. Check connectivity or point --registry at a local mirror. |
Next: CLI Reference for every flag and exit code · FAQ for the rest.
The normative spec lives in the repo:
docs/MASTER_PROMPT.md. If this wiki contradicts the repo, the repo wins — please open an issue.