API Route Builder standardizes the creation and maintenance of backend serverless endpoints using unified wrappers and conventions. It streamlines developing Node and Bun handlers by enforcing consistent CORS configuration, robust Bearer/X-Username authentication resolution, Zod schema validation, Redis integration, and proxy-aware rate limiting. Whether adding new collection and item endpoints, configuring SSE streaming, or enforcing SSRF-safe URL fetching, this skill ensures backend routes remain secure, performant, and maintainable.
主な機能
01Standardized apiHandler wrapper for CORS, error handling, and method routing
021 GitHub stars
03Multi-level authentication supporting public, optional, required, and admin roles
04Tiered IP rate limiting with reverse-proxy and retry-after support
05Integrated Redis client injection, structured logging, and SSRF-safe utilities
06Declarative payload validation powered by Zod schemas
ユースケース
01Securing API handlers with role-based authentication and abuse-prevention rate limits
02Creating SSE streaming endpoints and safe external fetching handlers
03Scaffolding new REST endpoints with automated request validation and response formatting