{"_id":"@alephmatic/aleph0","_rev":"1-636a55d2fbc309b72ff58bd2f32b75df","name":"@alephmatic/aleph0","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@alephmatic/aleph0","version":"0.0.1","private":false,"main":"index.js","type":"module","bin":{"a0":"dist/index.js"},"scripts":{"build":"tsup"},"dependencies":{"commander":"^11.1.0","consola":"^3.2.3","lodash":"^4.17.21","openai":"^4.19.0","ora":"^7.0.1","zod":"^3.22.4"},"devDependencies":{"@types/lodash":"^4.14.201","@types/node":"^20.9.2","tsup":"^8.0.0","typescript":"^5.0.0"},"publishConfig":{"access":"public"},"license":"MIT","keywords":["cli","aleph","nextjs","ai"],"gitHead":"7b850234e6a3ef601a2d7ab263bb50f2224cb51a","description":"To install dependencies:","_id":"@alephmatic/aleph0@0.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-ovmHvwdAoILm2qBijDTnu0gJyQWdbMGNbFadsPr+64/XTXHcmd+BVM4CHjLK7rPt8ph2rMMeYxGx9W3lMGZorA==","shasum":"64f4b0c1cbdb9b0546049b9dc42edf9c029f189d","tarball":"https://registry.npmjs.org/@alephmatic/aleph0/-/aleph0-0.0.1.tgz","fileCount":32,"unpackedSize":57809,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDemE0M7q5wSmVdJ01fkjLT6vHVCUliMeHHa/gJzkrrAiA3nKspd260SWcs1fJ4pseJdugQTjgB1kFDDQfT2K+oSg=="}]},"_npmUser":{"name":"elie222","email":"hi@elie.tech"},"directories":{},"maintainers":[{"name":"elie222","email":"hi@elie.tech"},{"name":"funerr","email":"agam@agam.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aleph0_0.0.1_1700852660224_0.3146303366508434"},"_hasShrinkwrap":false},"0.0.2":{"name":"@alephmatic/aleph0","version":"0.0.2","private":false,"main":"index.js","type":"module","bin":{"aleph0":"dist/index.js"},"dependencies":{"commander":"^11.1.0","consola":"^3.2.3","lodash":"^4.17.21","openai":"^4.19.0","ora":"^7.0.1","zod":"^3.22.4"},"devDependencies":{"@types/lodash":"^4.14.201","@types/node":"^20.9.2","tsup":"^8.0.0","typescript":"^5.0.0"},"publishConfig":{"access":"public"},"license":"MIT","keywords":["cli","aleph","nextjs","ai"],"scripts":{"build":"tsup"},"description":"To install dependencies:","_id":"@alephmatic/aleph0@0.0.2","_integrity":"sha512-lilpWj94CgvbdnsGWOiuZp8dZ8MRBNDLhP2C7E5Dsvz1ns2vgtA8+9CfFfPRdqx5R3o2IAvunLZIlX1KYwuJ2A==","_resolved":"/private/var/folders/rj/vt0v038944z6y4513jphr8bc0000gr/T/1fba8e71f581aae539fce076d7e902ad/alephmatic-aleph0-0.0.2.tgz","_from":"file:alephmatic-aleph0-0.0.2.tgz","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-lilpWj94CgvbdnsGWOiuZp8dZ8MRBNDLhP2C7E5Dsvz1ns2vgtA8+9CfFfPRdqx5R3o2IAvunLZIlX1KYwuJ2A==","shasum":"08be126d39152f417aa246ea7daa0a712defd144","tarball":"https://registry.npmjs.org/@alephmatic/aleph0/-/aleph0-0.0.2.tgz","fileCount":32,"unpackedSize":57792,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKj77fLetG+Tq9pyjMGfRcMGC/jHlgOEI4GSo3jw2qhgIhAL1hngCbDP4hHsiHfC6QBmP+gZd4QFvs1G0t7g4TRp6W"}]},"_npmUser":{"name":"elie222","email":"hi@elie.tech"},"directories":{},"maintainers":[{"name":"elie222","email":"hi@elie.tech"},{"name":"funerr","email":"agam@agam.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aleph0_0.0.2_1701048255488_0.938224370132086"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-24T19:04:20.139Z","0.0.1":"2023-11-24T19:04:20.483Z","modified":"2023-11-27T01:24:15.844Z","0.0.2":"2023-11-27T01:24:15.658Z"},"maintainers":[{"name":"elie222","email":"hi@elie.tech"},{"name":"funerr","email":"agam@agam.me"}],"description":"To install dependencies:","keywords":["cli","aleph","nextjs","ai"],"license":"MIT","readme":"# aleph0\n\nTo install dependencies:\n\n```bash\npnpm install\n```\n\nTo run:\n\n```bash\npnpm run src/index.ts\n```\n\n## Test cases\n\n```bash\nCONSOLA_LEVEL=4 pnpm src/index.ts gen \"add a form that creates a blog post\" -p ../examples/next\nCONSOLA_LEVEL=4 pnpm src/index.ts gen \"create a prisma schema file with a blog model\" -p ../examples/next\n```\n\n## Debug\n\n```bash\nCONSOLA_LEVEL=4 pnpm run src/index.ts gen \"add a file named agam.ts in the app/ folder\" -p ../examples/next -rd false\n```\n\n## Snippets in aleph0\n\n### Overview\n\nSnippets are key components in aleph0, providing valuable context to the AI. They offer insights into how various frameworks are used and demonstrate our coding conventions and patterns.\n\n### Snippet Structure\n\n- **Location**: Snippets are located in the `snippets` folder.\n- **Types of Snippets**:\n  - **General Technology Snippets**: These explain general aspects of a framework. For instance how `page.tsx` is a special file in Next.js.\n  - **Metadata.ts**: This file contains details about the snippet, like its purpose, file paths, and references to framework-related files. It helps the AI understand the snippet's context.\n  - **Code Examples**: Other files in the snippets directory typically contain raw code examples showing how to implement the snippet.\n\n### Example Structure\n\nHere's how snippets are organized:\n\n```\nsnippets/\n  next14/\n    metadata.ts - Metadata for Next.js general tech snippets.\n    route.ts - Example of a route in Next.js version 14 (general tech snippet).\n    toaster/\n      metadata.ts - Metadata for the toaster snippet.\n      toaster.tsx - Example of a toaster in Next.js version 14.\n```\n\n## Example metadata.ts\n\n```ts\nexport const metadata: Metadata = {\n  name: \"Toaster\",\n  description:\n    \"A toast component example - A short message that is displayed temporarily.\",\n  // comment\n  path: \"toaster\", // directory path for the snippet\n  long: `multiline\n  \nmultiline`,\n  files: [\n    {\n      name: \"Toaster Component\",\n      file: \"toaster.tsx\",\n      explanation:\n        \"The toaster should be placed on the frontend in a `toasters/<TOASTER>.ts` file.\",\n      references: [\"page.tsx\"], // extra information related to the snippet like next.js's `page.tsx` conventions.\n    },\n  ],\n};\n```\n","readmeFilename":"README.md"}