{"_id":"@byronwade/ai","name":"@byronwade/ai","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@byronwade/ai","version":"0.1.0","description":"AI rules, schema summaries, and prompt generation for Fakebase","license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"dependencies":{"@byronwade/core":"0.1.0","@byronwade/migrations":"0.1.0"},"devDependencies":{"typescript":"^5.5.0","vitest":"^2.0.0"},"author":{"name":"Byron Wade"},"homepage":"https://github.com/byronwade/fakebase#readme","bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/ai"},"engines":{"node":">=20.0.0"},"sideEffects":false,"publishConfig":{"access":"public"},"keywords":["supabase","local","dev","nextjs","prototype","fakebase"],"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","typecheck":"tsc --noEmit","clean":"rm -rf dist","lint":"eslint src"},"_id":"@byronwade/ai@0.1.0","_integrity":"sha512-8jDiBBgr9/0GLHvOWkexNA6Auh/SqT5m7zWgycpguSII9KKEFtqR32k631nbQsGAu5OqV/5DF7L/AsSsVmL/Hw==","_resolved":"/private/tmp/claude-501/b8b3ef94444d2fc683afff4ede3b7300/byronwade-ai-0.1.0.tgz","_from":"file:byronwade-ai-0.1.0.tgz","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-8jDiBBgr9/0GLHvOWkexNA6Auh/SqT5m7zWgycpguSII9KKEFtqR32k631nbQsGAu5OqV/5DF7L/AsSsVmL/Hw==","shasum":"a2ebe6c8eb5c613c2c035cf1f244d41119114d70","tarball":"https://registry.npmjs.org/@byronwade/ai/-/ai-0.1.0.tgz","fileCount":19,"unpackedSize":86999,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCya7/mNZUK0sMLVH3BF9YXv/hubtABsRGJHNTMi05+4wIgIff02DJA+66R9LLeXaBjwwQhjBa3YWES5h3MPavKCwI="}]},"_npmUser":{"name":"byronwade","email":"bcw1995@gmail.com"},"directories":{},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai_0.1.0_1780452923196_0.2094880052850383"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T02:15:23.039Z","0.1.0":"2026-06-03T02:15:23.356Z","modified":"2026-06-03T02:15:23.561Z"},"maintainers":[{"name":"byronwade","email":"bcw1995@gmail.com"}],"description":"AI rules, schema summaries, and prompt generation for Fakebase","homepage":"https://github.com/byronwade/fakebase#readme","keywords":["supabase","local","dev","nextjs","prototype","fakebase"],"repository":{"type":"git","url":"git+https://github.com/byronwade/fakebase.git","directory":"packages/ai"},"author":{"name":"Byron Wade"},"bugs":{"url":"https://github.com/byronwade/fakebase/issues"},"license":"MIT","readme":"# `@byronwade/ai`\n\n> Part of [**Fakebase**](https://github.com/byronwade/fakebase) — a Supabase-shaped, **local/dev-only** development platform for Next.js prototypes. Not for production use.\n\nGenerates AI rules, schema summaries, and editor prompt files (Cursor / Claude / AGENTS) from your Fakebase schema, so coding agents understand your local backend and its capability limits.\n\n## Installation\n\n```bash\npnpm add -D @byronwade/ai\n```\n\n## Usage\n\n```ts\nimport { generateFakebaseRules, generateAgentPrompt } from \"@byronwade/ai\";\n\nconst rules = generateFakebaseRules(schema, { projectName: \"my-app\" });\nconst prompt = generateAgentPrompt(\"cursor\", schema);\n```\n\n## What's inside\n\n- Rules + summaries: `generateFakebaseRules`, `generateSchemasSummary`, `generatePoliciesSummary`, `generateCompatibilitySummary`, `generateMigrationChecklist`.\n- Prompt/file generators: `generateAgentPrompt`, `generateAgentsFile`, `generateClaudeFile`, `generateCursorRuleFile` (+ type `PromptTarget`).\n\n## Documentation\n\n- [Project README](https://github.com/byronwade/fakebase#readme)\n- [Architecture](https://github.com/byronwade/fakebase/blob/main/docs/architecture.md)\n- [Compatibility matrix](https://github.com/byronwade/fakebase/blob/main/docs/compatibility-matrix.md)\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-38818a30659b746775dd8ccfc1d19f12"}