@luckystack/api
v0.16.1
Published
Type-safe API request handlers for LuckyStack. WebSocket-first via socket.io, with HTTP fallback. File-based routing, generated route map, integrated rate limiting, validation, hooks, and error-tracking tracing.
Maintainers
Readme
@luckystack/api
Type-safe API handlers for LuckyStack's socket-first transport with HTTP fallback. Install with npm install @luckystack/api socket.io; add optional @prisma/client for Prisma-backed routes (see package.json). The server package normally wires the handlers; route discovery and typed maps are generated by devkit.
Keep the same authorization and validation boundary on both transports. A declared HTTP method cannot protect a WebSocket route. When route inference fails, regenerate artifacts and fix the source type instead of casting. See design context, auth rationale and generated types. For signatures and route declarations consult src/ and the generated map.
