{"_id":"@domain-first/handlers-next","_rev":"5-a8cb7f22ff0b6c09268e0747e7324ef2","name":"@domain-first/handlers-next","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"@domain-first/handlers-next","version":"0.0.1","_id":"@domain-first/handlers-next@0.0.1","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"dist":{"shasum":"ef5ffd5de89fd61e44ee0a3246d36f1043b2c498","tarball":"https://registry.npmjs.org/@domain-first/handlers-next/-/handlers-next-0.0.1.tgz","fileCount":8,"integrity":"sha512-NydoYiea/l+98zrkHEY0n0EogYti4PfwR4R/GwqIK0hXao/1UtHlQKz3UKVNavJzzrA1H+f/AlrGXRjwd3nVMQ==","signatures":[{"sig":"MEUCICyKJLOS0ecDO/l6ygd+8DuZiyJw6gqF4d2BJQtRwwjvAiEA/f3UeawxAQfWX90LpygynwbvOxv/fRyQWAQTRWL6MdY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7581},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"0d38baa71542e087b47093235dba512511e2d779","scripts":{"dev":"rslib --watch","test":"rstest","build":"rslib","check":"biome check --write","format":"biome format --write","test:watch":"rstest --watch"},"_npmUser":{"name":"alevnyacow","email":"alevnyacow@gmail.com"},"_npmVersion":"11.9.0","description":"","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^16.3.3","typescript":"^6.0.3","@rslib/core":"^0.23.2","@types/node":"^24.13.2","@rstest/core":"^0.10.6","@biomejs/biome":"2.4.15","@rstest/adapter-rslib":"^0.10.6","@domain-first/handlers-rest":"^5.1.0"},"peerDependencies":{"next":">=13 <17"},"_npmOperationalInternal":{"tmp":"tmp/handlers-next_0.0.1_1787756584920_0.6470358206701816","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@domain-first/handlers-next","version":"0.0.2","_id":"@domain-first/handlers-next@0.0.2","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"dist":{"shasum":"e808819aba1839278a1d2fe00a99d27382a768b9","tarball":"https://registry.npmjs.org/@domain-first/handlers-next/-/handlers-next-0.0.2.tgz","fileCount":8,"integrity":"sha512-zWUGa0LpKsOtCSh4VRfpocKz+yg8nrmimvJ6QXOi2Hv39e3wZRNJiWhsvla3r7vdr0HV2ZNnSjjYfp3ihyDp4A==","signatures":[{"sig":"MEUCIQC1WTeNMsm+hBul03+XuY2n7mN+I6gB2/IKT7YlHq7s9AIgVNqN+aBq1e6lumkgDWIdYqi9hEqghvydy1jcIWTGh0Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8248},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f73c15cc9838ff421de12a2b32475a9a6a08961a","scripts":{"dev":"rslib --watch","test":"rstest","build":"rslib","check":"biome check --write","format":"biome format --write","test:watch":"rstest --watch"},"_npmUser":{"name":"alevnyacow","email":"alevnyacow@gmail.com"},"_npmVersion":"11.9.0","description":"Next Adapters for @domain-first/handlers and App router endpoints","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^16.3.3","typescript":"^6.0.3","@rslib/core":"^0.23.2","@types/node":"^24.13.2","@rstest/core":"^0.10.6","@biomejs/biome":"2.4.15","@rstest/adapter-rslib":"^0.10.6","@domain-first/handlers-rest":"^5.1.0"},"peerDependencies":{"next":">=13 <17"},"_npmOperationalInternal":{"tmp":"tmp/handlers-next_0.0.2_1787770949890_0.5268553085303775","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@domain-first/handlers-next","version":"1.0.0","keywords":["next","nextjs","adapter","domain-first"],"_id":"@domain-first/handlers-next@1.0.0","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"homepage":"https://github.com/alevnyacow/domain-first-handlers-next#readme","bugs":{"url":"https://github.com/alevnyacow/domain-first-handlers-next/issues"},"dist":{"shasum":"6b3a2d10b42085fb9ead31a25ab08fb1e01c56ca","tarball":"https://registry.npmjs.org/@domain-first/handlers-next/-/handlers-next-1.0.0.tgz","fileCount":8,"integrity":"sha512-5pCgK+cabzWL1R3QDjKmhlIVGuDjJGCbw3s86W/jubs/NGuVq0HRhv7x2yWgpG3EH9sHF4MII48PbR7Y6AEBcQ==","signatures":[{"sig":"MEUCIHpRYstYJwp9hIVXwAbPcPDd7wKziAywBhewrKpdJZCsAiEA0T3eJedsir1QRqUmZnFH09vljTZJEklsS1sLXnRtzn8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@domain-first%2fhandlers-next@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8653},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a55066776268c40aace3ba3210ee86d7ffbca8c6","scripts":{"dev":"rslib --watch","test":"rstest","build":"rslib","check":"biome check --write","format":"biome format --write","test:watch":"rstest --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0bbcbe81-6ffa-4b8c-871b-015769f2f36a"}},"repository":{"url":"git+https://github.com/alevnyacow/domain-first-handlers-next.git","type":"git"},"_npmVersion":"11.19.0","description":"Next Adapters for @domain-first/handlers and App router endpoints","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^16.3.3","typescript":"^6.0.3","@rslib/core":"^0.23.2","@types/node":"^24.13.2","@rstest/core":"^0.10.6","@biomejs/biome":"2.4.15","semantic-release":"^25.0.9","@rstest/adapter-rslib":"^0.10.6","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^13.1.5","@domain-first/handlers-rest":"^5.1.0","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"next":">=13 <17"},"_npmOperationalInternal":{"tmp":"tmp/handlers-next_1.0.0_1787772002951_0.16302092390724865","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@domain-first/handlers-next","version":"1.0.1","keywords":["next","nextjs","adapter","domain-first"],"license":"MIT","_id":"@domain-first/handlers-next@1.0.1","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"homepage":"https://github.com/alevnyacow/domain-first-handlers-next#readme","bugs":{"url":"https://github.com/alevnyacow/domain-first-handlers-next/issues"},"dist":{"shasum":"102221befff092a54a1677c8491b636467d7dfa0","tarball":"https://registry.npmjs.org/@domain-first/handlers-next/-/handlers-next-1.0.1.tgz","fileCount":8,"integrity":"sha512-ncOn8Lm3mhVcWBgnma+boggvE1n7UtyFd4cpedowz7al+rL1e9egb1ILOXR+C6cWLOAdFWnDcnkzfmSoa8c3BQ==","signatures":[{"sig":"MEQCIAlXSKoDznD5c7l7y5GPHNo2ywv97SHqM7eZw6Q3FqI0AiBBEUTX5QH1poDy7nAztM9qCssJM1peq7N4N43c7hcSyA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@domain-first%2fhandlers-next@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8675},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"d67c8598e8ce86c06f60d0fcd3defa0dba347f70","scripts":{"dev":"rslib --watch","test":"rstest","build":"rslib","check":"biome check --write","format":"biome format --write","test:watch":"rstest --watch"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0bbcbe81-6ffa-4b8c-871b-015769f2f36a"}},"repository":{"url":"git+https://github.com/alevnyacow/domain-first-handlers-next.git","type":"git"},"_npmVersion":"11.19.0","description":"Next Adapters for @domain-first/handlers and App router endpoints","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^16.3.3","typescript":"^6.0.3","@rslib/core":"^0.23.2","@types/node":"^24.13.2","@rstest/core":"^0.10.6","@biomejs/biome":"2.4.15","semantic-release":"^25.0.9","@rstest/adapter-rslib":"^0.10.6","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^13.1.5","@domain-first/handlers-rest":"^5.1.0","@semantic-release/changelog":"^6.0.3"},"peerDependencies":{"next":">=13 <17"},"_npmOperationalInternal":{"tmp":"tmp/handlers-next_1.0.1_1787772294871_0.8729184792297375","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@domain-first/handlers-next","description":"Next Adapters for @domain-first/handlers and App router endpoints","version":"1.1.0","license":"MIT","type":"module","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","types":"./dist/index.d.ts","keywords":["next","nextjs","adapter","domain-first"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/alevnyacow/domain-first-handlers-next.git"},"scripts":{"build":"rslib","check":"biome check --write","dev":"rslib --watch","format":"biome format --write","test":"rstest","test:watch":"rstest --watch"},"devDependencies":{"@biomejs/biome":"2.4.2","@domain-first/handlers-rest":"^6.2.0","@rslib/core":"^0.23.2","@rstest/adapter-rslib":"^0.10.6","@rstest/core":"^0.10.6","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^13.1.5","@types/node":"^24.13.2","next":"^16.3.3","semantic-release":"^25.0.9","typescript":"^6.0.3"},"peerDependencies":{"next":">=13 <17"},"gitHead":"a990c1d57a01e94220bf26b8860b270a29577c49","_id":"@domain-first/handlers-next@1.1.0","bugs":{"url":"https://github.com/alevnyacow/domain-first-handlers-next/issues"},"homepage":"https://github.com/alevnyacow/domain-first-handlers-next#readme","_nodeVersion":"24.14.0","_npmVersion":"11.19.0","dist":{"integrity":"sha512-rmbaxBl/WkiNujYhmUPExCHNW5aL3mQ0ic2lNR9Fgxz8QBT+7RNXg5s/10buvbNnnkgiAOKXEGSQ1/3o+Ah/XQ==","shasum":"016480eba80479028378b3de36a838caf3bd5745","tarball":"https://registry.npmjs.org/@domain-first/handlers-next/-/handlers-next-1.1.0.tgz","fileCount":8,"unpackedSize":9372,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@domain-first%2fhandlers-next@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAaSzsyBh2yDupRrFs5W6b7OYk0qw8YV7CEX4FNEYUJJAiBr/V1n0Gm/2Yn9UgacezG1+g7bpIZnXRzDjIEyBGTBHQ=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0bbcbe81-6ffa-4b8c-871b-015769f2f36a"}},"directories":{},"maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/handlers-next_1.1.0_1788253184881_0.38126942213292647"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-26T15:03:04.758Z","modified":"2026-09-01T08:59:45.397Z","0.0.1":"2026-08-26T15:03:05.055Z","0.0.2":"2026-08-26T19:02:30.013Z","1.0.0":"2026-08-26T19:20:03.114Z","1.0.1":"2026-08-26T19:24:55.013Z","1.1.0":"2026-09-01T08:59:45.025Z"},"bugs":{"url":"https://github.com/alevnyacow/domain-first-handlers-next/issues"},"license":"MIT","homepage":"https://github.com/alevnyacow/domain-first-handlers-next#readme","keywords":["next","nextjs","adapter","domain-first"],"repository":{"type":"git","url":"git+https://github.com/alevnyacow/domain-first-handlers-next.git"},"description":"Next Adapters for @domain-first/handlers and App router endpoints","maintainers":[{"name":"alevnyacow","email":"alevnyacow@gmail.com"}],"readme":"# Domain-First Handlers (Next.js)\n\n## Adapters\n\n```ts\nimport { createEndpoint } from \"@domain-first/handlers-rest\";\nimport { nextAdapter } from \"@domain-first/handlers-next\";\n\nconst endpointGenerator = createEndpoint();\nconst nextEndpoint = endpointGenerator(nextAdapter);\n```\n\n## Endpoints\n\n```ts\n// app/api/[...path]/route.ts\nimport { nextEndpoints } from \"@domain-first/handlers-next\";\n\nconst routes = []; // <- routes\n\nconst handler = nextEndpoints(routes);\n\nexport const GET = handler;\nexport const POST = handler;\nexport const PUT = handler;\nexport const PATCH = handler;\nexport const DELETE = handler;\n```\n","readmeFilename":"README.md"}