{"_id":"@aiendpoint/fastify","_rev":"3-290bba085faa4fdbd2cfa2eb2bdd1801","name":"@aiendpoint/fastify","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@aiendpoint/fastify","version":"0.1.0","keywords":["aiendpoint","fastify","ai","api","plugin"],"license":"Apache-2.0","_id":"@aiendpoint/fastify@0.1.0","maintainers":[{"name":"bejoyfuuul","email":"bejoyfuuul@gmail.com"}],"homepage":"https://aiendpoint.dev","bugs":{"url":"https://github.com/aiendpoint/platform/issues"},"dist":{"shasum":"5bf3696bfaedcf25e8c1071698bc5074e91598cd","tarball":"https://registry.npmjs.org/@aiendpoint/fastify/-/fastify-0.1.0.tgz","fileCount":5,"integrity":"sha512-QnteP24SCZ/1J31dQRZWhMqtN9OBWz267cQ8CIqRixse85laWfWyD7TaM/6FnZFd607ThhDkYZjjUbWvHEGpPw==","signatures":[{"sig":"MEUCIBvtUqNV0uWb1i/lIuWKFaCWqeVeiSyioGFeO5mLfYBlAiEA2h+nBUGMmzrCd8002yvxLGmiae77vwHl3iOII8Qq4Gw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4625},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","engines":{"node":">=18"},"gitHead":"c717355969004870c4a85c1143fd244158b1c6ef","scripts":{"build":"tsc","clean":"rm -rf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"bejoyfuuul","email":"bejoyfuuul@gmail.com"},"deprecated":"Use @aiendpoint/serve/fastify instead","repository":{"url":"git+https://github.com/aiendpoint/platform.git","type":"git","directory":"packages/fastify"},"_npmVersion":"11.8.0","description":"Serve your /ai endpoint from Fastify in one line","directories":{},"_nodeVersion":"24.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"fastify":"^5.8.4","typescript":"^5.7.2","@types/node":"^22.10.0"},"peerDependencies":{"fastify":">=4"},"_npmOperationalInternal":{"tmp":"tmp/fastify_0.1.0_1774712272155_0.08284835967157855","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"_id":"@aiendpoint/fastify@0.2.0","bugs":{"url":"https://github.com/aiendpoint/platform/issues"},"dist":{"shasum":"41ad43fd15f3bdce1d1cf247bf68efaae9cce29c","tarball":"https://registry.npmjs.org/@aiendpoint/fastify/-/fastify-0.2.0.tgz","fileCount":6,"integrity":"sha512-2UEhmdZgh5p5BCTI6fHKAGOIz5ja0TIYHNQPNtHww5yUcAo+zzS1x9jR6e1aHXH3d/KUe+goxpx033sencVIzw==","signatures":[{"sig":"MEQCICR2+o1H4lo/1MTpLapa3MuB77tLUOFOdy/6cgwuH1ymAiBuTmolHB8oDj3Ldjcze8KtvM5V9r5Q9RsTjnvMvdFhjg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFAa7oYg0GmSAQu5Y55ZS9R33K4IS2A8rkEs7/4at/DkAiApFRdi9JPC+EfJmySgnpXStj1TrosEL7eXtdjF4np9mg=="}],"unpackedSize":16025},"main":"dist/index.js","name":"@aiendpoint/fastify","type":"module","_from":"file:/tmp/aiendpoint-release-m362HV/aiendpoint-fastify-0.2.0.tgz","types":"dist/index.d.ts","engines":{"node":">=18"},"license":"Apache-2.0","scripts":{"build":"tsc","clean":"rm -rf dist"},"version":"0.2.0","_npmUser":{"name":"bejoyfuuul","email":"bejoyfuuul@gmail.com"},"homepage":"https://aiendpoint.dev","keywords":["aiendpoint","fastify","ai","api","plugin"],"_resolved":"/tmp/aiendpoint-release-m362HV/aiendpoint-fastify-0.2.0.tgz","_integrity":"sha512-2UEhmdZgh5p5BCTI6fHKAGOIz5ja0TIYHNQPNtHww5yUcAo+zzS1x9jR6e1aHXH3d/KUe+goxpx033sencVIzw==","repository":{"url":"git+https://github.com/aiendpoint/platform.git","type":"git","directory":"packages/fastify"},"_npmVersion":"11.16.0","description":"Serve your /ai endpoint from Fastify in one line","directories":{},"maintainers":[{"name":"bejoyfuuul","email":"bejoyfuuul@gmail.com"}],"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"fastify":"^5.12.1","typescript":"^5.7.2","@types/node":"^22.10.0"},"peerDependencies":{"fastify":">=4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fastify_0.2.0_1789447559952_0.17181183079663676"}}},"time":{"created":"2026-03-28T15:37:52.011Z","modified":"2026-09-15T04:46:00.251Z","0.1.0":"2026-03-28T15:37:52.296Z","0.2.0":"2026-09-15T04:46:00.058Z"},"bugs":{"url":"https://github.com/aiendpoint/platform/issues"},"license":"Apache-2.0","homepage":"https://aiendpoint.dev","keywords":["aiendpoint","fastify","ai","api","plugin"],"repository":{"url":"git+https://github.com/aiendpoint/platform.git","type":"git","directory":"packages/fastify"},"description":"Serve your /ai endpoint from Fastify in one line","maintainers":[{"name":"bejoyfuuul","email":"bejoyfuuul@gmail.com"}],"readme":"# @aiendpoint/fastify\n\nServe your `/ai` endpoint from Fastify in one line.\n\n## Install\n\n```bash\nnpm install @aiendpoint/fastify\n```\n\n## Usage\n\n```ts\nimport Fastify from 'fastify'\nimport aiendpoint from '@aiendpoint/fastify'\n\nconst app = Fastify()\napp.register(aiendpoint, { spec: './ai.json' })\n\napp.listen({ port: 3000 })\n```\n\nThat's it. `GET /ai` now serves your spec.\n\n## Options\n\n```ts\napp.register(aiendpoint, {\n  spec: './ai.json',  // path to spec file, or inline object\n  path: '/ai',        // route path (default: '/ai')\n  maxAge: 3600,       // Cache-Control max-age (default: 3600)\n})\n```\n\n## Generate ai.json\n\n```bash\nnpx @aiendpoint/cli init --openapi https://your-api.com/openapi.json\n```\n\n## Links\n\n- [AIEndpoint spec](https://aiendpoint.dev/docs)\n- [@aiendpoint/cli](https://www.npmjs.com/package/@aiendpoint/cli)\n- [GitHub](https://github.com/aiendpoint/platform)\n","readmeFilename":"README.md"}