Generates a compact lib catalog from the live crema-manifest, sorted into "wired in this project" and "available to add" tables. The development LLM (Claude Code, Cursor, etc.) reads this when answering "is there a lib for X" — saves it from re-deriving the answer or making one up. The script reads the project's tsconfig.json paths (for wired libs) and app/app.css @import lines (for the active theme), clones the manifest, and emits docs/LIBS.md with stable formatting. CLAUDE.md updated to point at LIBS.md (was pointing directly at the live manifest URL — slower for an LLM that wants a quick scan). Run after `crema add <name>` or whenever you want a refresh: npm run sync-libs Auto-detects: - Wired libs from tsconfig.json @crema/* paths - Active theme from app/app.css `@import "../../lib-theme-*/theme.css"` lines Output is intentionally compact — terse one-line descriptions, alpha sort, no front-matter. ~9KB for the current 5-wired / 50-available split. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
48 lines
1.3 KiB
JSON
48 lines
1.3 KiB
JSON
{
|
|
"name": "crema-app-aifirst-template",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "react-router build",
|
|
"dev": "react-router dev",
|
|
"start": "react-router-serve ./build/server/index.js",
|
|
"typecheck": "react-router typegen && tsc",
|
|
"sync-libs": "node scripts/sync-libs.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@base-ui/react": "^1.4.0",
|
|
"@fontsource-variable/inter": "^5.2.8",
|
|
"@react-router/node": "7.13.1",
|
|
"@react-router/serve": "7.13.1",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"d3-geo": "^3.1.1",
|
|
"isbot": "^5.1.36",
|
|
"lucide-react": "^1.8.0",
|
|
"motion": "^12.38.0",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"react-markdown": "^10.1.0",
|
|
"react-router": "7.13.1",
|
|
"shadcn": "^4.2.0",
|
|
"tailwind-merge": "^3.5.0",
|
|
"topojson-client": "^3.1.0",
|
|
"tw-animate-css": "^1.4.0",
|
|
"world-atlas": "^2.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"@react-router/dev": "7.13.1",
|
|
"@tailwindcss/vite": "^4.2.1",
|
|
"@types/d3-geo": "^3.1.0",
|
|
"@types/node": "^22",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@types/topojson-client": "^3.1.5",
|
|
"@types/topojson-specification": "^1.0.5",
|
|
"tailwindcss": "^4.2.1",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.3.1",
|
|
"vite-tsconfig-paths": "^5.1.4"
|
|
}
|
|
}
|