{"_id":"@alt-stack/server","_rev":"7-02ed72f6cca1e135d94471c057cb91f0","name":"@alt-stack/server","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.1":{"name":"@alt-stack/server","version":"1.0.1","keywords":[],"author":"","license":"UNLICENSED","_id":"@alt-stack/server@1.0.1","maintainers":[{"name":"aaltieri","email":"anthony@timebyping.com"}],"dist":{"shasum":"53dbfff621aa3cdf463e32be5854d5cc07bf621a","tarball":"https://registry.npmjs.org/@alt-stack/server/-/server-1.0.1.tgz","fileCount":18,"integrity":"sha512-xbdhE17+PhckIJe32FH8gnEujHGj3ZGz0vJHJzJGPrVU189Urg878F8n1Mu9g8rvHM59g7eQe09ElQ3QDjILGg==","signatures":[{"sig":"MEQCIBy2N7KvzUUICeHKQhfNwaUWSFmkK227kHJgkdrsvzD5AiB8xwfFJ6cIv3/tZBRZIG6oG1gdXn3aF8wbuLfSZlFXzQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118010},"main":"./src/index.ts","type":"module","_from":"file:alt-stack-server-1.0.1.tgz","types":"./src/index.ts","exports":{".":{"types":"./src/index.ts","default":"./src/index.ts"}},"scripts":{"test":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"aaltieri","email":"anthony@timebyping.com"},"_resolved":"/tmp/864eefcb1c515cdda9853e7091d72a53/alt-stack-server-1.0.1.tgz","_integrity":"sha512-xbdhE17+PhckIJe32FH8gnEujHGj3ZGz0vJHJzJGPrVU189Urg878F8n1Mu9g8rvHM59g7eQe09ElQ3QDjILGg==","_npmVersion":"10.8.2","description":"Lightweight type-safe server framework built on Hono with Zod validation","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"oxlint":"^1.24.0","vitest":"^4.0.3"},"peerDependencies":{"zod":"^4.0.0","hono":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.1_1762392284878_0.4545747781744929","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deprecated: use @alt-stack/server-core with the appropriate framework adapter."},"1.0.2":{"name":"@alt-stack/server","version":"1.0.2","keywords":[],"author":"","license":"MIT","_id":"@alt-stack/server@1.0.2","maintainers":[{"name":"aaltieri","email":"anthony@timebyping.com"}],"dist":{"shasum":"1eba7e3092875ad51e9f232dd214d7a288e00d5e","tarball":"https://registry.npmjs.org/@alt-stack/server/-/server-1.0.2.tgz","fileCount":18,"integrity":"sha512-Ktj4l7i0++FWUZg/r2+duiL+E2AGYy2JLUTHG+CSKce3BrAz6s80wWoI8mTvWtcfqmFvpVT/nFX43DOyVUQfnQ==","signatures":[{"sig":"MEUCIQCZ78mZHdCastpzmiMF9ZSea4cYUZKRybLBEak3JnxMlAIgGst4RFvAyTSeuzSKiNWX2/K1iUyy7xQv3/Jzzcl1f8A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118003},"main":"./src/index.ts","type":"module","_from":"file:alt-stack-server-1.0.2.tgz","types":"./src/index.ts","exports":{".":{"types":"./src/index.ts","default":"./src/index.ts"}},"scripts":{"test":"vitest","check-types":"tsc --noEmit"},"_npmUser":{"name":"aaltieri","email":"anthony@timebyping.com"},"_resolved":"/tmp/08a3b81a3b223cf9b57be6b0bbb3001e/alt-stack-server-1.0.2.tgz","_integrity":"sha512-Ktj4l7i0++FWUZg/r2+duiL+E2AGYy2JLUTHG+CSKce3BrAz6s80wWoI8mTvWtcfqmFvpVT/nFX43DOyVUQfnQ==","_npmVersion":"10.8.2","description":"Lightweight type-safe server framework built on Hono with Zod validation","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"oxlint":"^1.24.0","vitest":"^4.0.3"},"peerDependencies":{"zod":"^4.0.0","hono":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.2_1762392511393_0.05517903301254745","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deprecated: use @alt-stack/server-core with the appropriate framework adapter."},"1.0.3":{"name":"@alt-stack/server","version":"1.0.3","keywords":[],"author":"","license":"MIT","_id":"@alt-stack/server@1.0.3","maintainers":[{"name":"aaltieri","email":"anthony@timebyping.com"}],"dist":{"shasum":"82a30478954b44351aecec6dd9c2c990202c41ef","tarball":"https://registry.npmjs.org/@alt-stack/server/-/server-1.0.3.tgz","fileCount":25,"integrity":"sha512-Dd/xYWgCq74mIS/imDFaGk0R2WQwsXXStgZGaF5eFkIG5Kp2brkgRrTag6/jlLsrfaefMU8Khz3C1qZPw/Gu+Q==","signatures":[{"sig":"MEUCIBM17NTPLmyE75RgL3lBeSzHmwebRIX8CrUOc8J1gjW8AiEAimXM1csEzxrGdd6K0mvVpXuKKUhbP5C0J+PKKbvTyFA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":418489},"main":"./dist/index.cjs","_from":"file:alt-stack-server-1.0.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"tsup","check-types":"tsc --noEmit"},"_npmUser":{"name":"aaltieri","email":"anthony@timebyping.com"},"_resolved":"/tmp/6ee402568c00be0c09097bc75a0cc956/alt-stack-server-1.0.3.tgz","_integrity":"sha512-Dd/xYWgCq74mIS/imDFaGk0R2WQwsXXStgZGaF5eFkIG5Kp2brkgRrTag6/jlLsrfaefMU8Khz3C1qZPw/Gu+Q==","_npmVersion":"10.8.2","description":"Lightweight type-safe server framework built on Hono with Zod validation","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","oxlint":"^1.24.0","vitest":"^4.0.3","typescript":"^5.9.2"},"peerDependencies":{"zod":"^4.0.0","hono":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.3_1762397264596_0.9500731266169269","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deprecated: use @alt-stack/server-core with the appropriate framework adapter."},"1.0.4":{"name":"@alt-stack/server","version":"1.0.4","keywords":[],"author":"","license":"MIT","_id":"@alt-stack/server@1.0.4","maintainers":[{"name":"aaltieri","email":"anthony@timebyping.com"}],"dist":{"shasum":"2ff2933ba4565645e856d804789868b65fd80c7f","tarball":"https://registry.npmjs.org/@alt-stack/server/-/server-1.0.4.tgz","fileCount":25,"integrity":"sha512-zZ6xaus9euqDu7wcyZ1NU+BR4GtXZpke5QtSAJyuAgDkeFMBlNnYogL5EYD2UY+Oi/k8Iv5xmE4vyJVhg3lQAQ==","signatures":[{"sig":"MEQCIEJqeyEBprMzu+/6lGkVFPq6e1aq6LtiehLdZQ6vd3iAAiAssFkqiTKB529ytwN7T+88HkVHbIReWorD3iAp6zpONg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":418489},"main":"./dist/index.cjs","_from":"file:alt-stack-server-1.0.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"tsup","check-types":"tsc --noEmit"},"_npmUser":{"name":"aaltieri","email":"anthony@timebyping.com"},"_resolved":"/tmp/450fcb486807364df2de1f8cb85e0ddf/alt-stack-server-1.0.4.tgz","_integrity":"sha512-zZ6xaus9euqDu7wcyZ1NU+BR4GtXZpke5QtSAJyuAgDkeFMBlNnYogL5EYD2UY+Oi/k8Iv5xmE4vyJVhg3lQAQ==","_npmVersion":"10.8.2","description":"Lightweight type-safe server framework built on Hono with Zod validation","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","oxlint":"^1.24.0","vitest":"^4.0.3","typescript":"^5.9.2"},"peerDependencies":{"zod":"^4.0.0","hono":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.4_1762397750874_0.7793344715494752","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deprecated: use @alt-stack/server-core with the appropriate framework adapter."},"1.0.5":{"name":"@alt-stack/server","version":"1.0.5","keywords":[],"author":"","license":"MIT","_id":"@alt-stack/server@1.0.5","maintainers":[{"name":"aaltieri","email":"anthony@timebyping.com"}],"dist":{"shasum":"fa8a1d9bfa9e3a7b95659d9c7159a809bdd74581","tarball":"https://registry.npmjs.org/@alt-stack/server/-/server-1.0.5.tgz","fileCount":25,"integrity":"sha512-4xWzcR6MN5vvXOIiG1HJRQqeIGmqYWOIm366Hxl2oUTOutjrioDUScFEuWuEjp9aiRQpIb+GTyq/fMHuy0VyIw==","signatures":[{"sig":"MEUCIAzBAJCfVtmHCSpiNrHWcYHJ3o2pJg5YX+cL5U5zp1wtAiEAyG1i3eI9MLZkpwcwEOKcOQOqTvPXNZE93Hst2MuS3Pg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":418489},"main":"./dist/index.cjs","_from":"file:alt-stack-server-1.0.5.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"tsup","check-types":"tsc --noEmit"},"_npmUser":{"name":"aaltieri","email":"anthony@timebyping.com"},"_resolved":"/tmp/e41eb61a103639e54b5df9009b33d2e9/alt-stack-server-1.0.5.tgz","_integrity":"sha512-4xWzcR6MN5vvXOIiG1HJRQqeIGmqYWOIm366Hxl2oUTOutjrioDUScFEuWuEjp9aiRQpIb+GTyq/fMHuy0VyIw==","_npmVersion":"10.8.2","description":"Lightweight type-safe server framework built on Hono with Zod validation","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","oxlint":"^1.24.0","vitest":"^4.0.3","typescript":"^5.9.2"},"peerDependencies":{"zod":"^4.0.0","hono":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.5_1762399510870_0.5415921427330945","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deprecated: use @alt-stack/server-core with the appropriate framework adapter."},"1.0.6":{"name":"@alt-stack/server","version":"1.0.6","keywords":[],"author":"","license":"MIT","_id":"@alt-stack/server@1.0.6","maintainers":[{"name":"aaltieri","email":"anthony@timebyping.com"}],"dist":{"shasum":"0992de0db55ee9bf1583502a488d4bfb9c1506e2","tarball":"https://registry.npmjs.org/@alt-stack/server/-/server-1.0.6.tgz","fileCount":33,"integrity":"sha512-1GS8rstENkz9lB2nv18Gech3+UKSCGoVYIYPxlkQ08uoVIDRSmhxrUj/JU5vYupF0M17zce1tkEimDTIw3UmWg==","signatures":[{"sig":"MEUCIQC6vi1G+0Sm0T5XJCA97ypMNG+8Y1hLrTgeCwJmbQ/DQQIgEpuUd7MB0oX/BIv552i9SGymT5JXisMuIGe6do4xdPU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":473023},"main":"./dist/index.cjs","_from":"file:alt-stack-server-1.0.6.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest","build":"tsup","check-types":"tsc --noEmit"},"_npmUser":{"name":"aaltieri","email":"anthony@timebyping.com"},"_resolved":"/tmp/aeb613397d85b31e1c72da34726f4b99/alt-stack-server-1.0.6.tgz","_integrity":"sha512-1GS8rstENkz9lB2nv18Gech3+UKSCGoVYIYPxlkQ08uoVIDRSmhxrUj/JU5vYupF0M17zce1tkEimDTIw3UmWg==","_npmVersion":"10.8.2","description":"Lightweight type-safe server framework built on Hono with Zod validation","directories":{},"_nodeVersion":"18.20.8","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","oxlint":"^1.24.0","vitest":"^4.0.3","typescript":"^5.9.2"},"peerDependencies":{"zod":"^4.0.0","hono":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/server_1.0.6_1763224898589_0.8792924508422604","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Deprecated: use @alt-stack/server-core with the appropriate framework adapter."}},"time":{"created":"2025-11-06T01:24:44.760Z","modified":"2026-07-09T21:50:36.766Z","1.0.1":"2025-11-06T01:24:45.037Z","1.0.2":"2025-11-06T01:28:31.594Z","1.0.3":"2025-11-06T02:47:44.797Z","1.0.4":"2025-11-06T02:55:51.097Z","1.0.5":"2025-11-06T03:25:11.088Z","1.0.6":"2025-11-15T16:41:38.845Z"},"license":"MIT","keywords":[],"description":"Lightweight type-safe server framework built on Hono with Zod validation","maintainers":[{"name":"aaltieri","email":"anthony@timebyping.com"}],"readme":"# @alt-stack/server\n\nA lightweight, type-safe server framework built on Hono with Zod validation. Inspired by tRPC's builder pattern, providing full type inference from a central router definition.\n\n## Documentation\n\n📚 **Full documentation is available at:** [Server Framework Docs](./../../apps/docs/)\n\nThe documentation website is the source of truth for all documentation. The docs include:\n\n- Getting started guide\n- Core concepts (validation, error handling, middleware, etc.)\n- Integration guides (Better Auth, CORS, etc.)\n- API examples and best practices\n\n## Quick Installation\n\n```bash\npnpm add @alt-stack/server hono zod\n# or\nnpm install @alt-stack/server hono zod\n# or\nyarn add @alt-stack/server hono zod\n```\n\n## Features\n\n- **Type-safe routes**: Full TypeScript inference from Zod schemas\n- **Builder pattern**: Fluent API for defining routes with `.get()`, `.post()`, etc.\n- **Type-safe errors**: `ctx.throw()` with automatic status code inference from error schemas\n- **Middleware support**: Router-level and procedure-level middleware with context extension\n- **Router combination**: Merge multiple routers with `.merge()`\n- **Validation**: Automatic Zod validation for inputs and optional outputs\n- **Lightweight**: Minimal abstraction over Hono - easy to audit and understand\n\nFor complete documentation, see the [docs website](./../../apps/docs/).\n","readmeFilename":"README.md"}