Loading project...
A collection of RESTful API patterns and middleware implementations for Express.js applications.

A reusable set of Express.js middleware, authentication patterns, and API architecture templates. Includes rate limiting, request validation (Zod), error handling, and JWT auth flows. Designed as a production-ready boilerplate that I use as a starting point for all new backend projects. The toolkit is fully typed with TypeScript and includes a comprehensive test suite via Vitest.
Built a composable middleware pipeline with typed request/response contexts
Integrated Zod for runtime schema validation on all route inputs
Implemented sliding-window rate limiting without Redis dependency
Added comprehensive error normalisation — all errors map to RFC 7807 Problem Details
Wrote 94% test coverage with Vitest and Supertest integration tests
Building a rate limiter without Redis that still works correctly under concurrent load required implementing an atomic in-memory sliding window using a Map with mutex-like semantics in Node.js's single-threaded environment — no race conditions, no external dependencies.
Problem Space
Built a composable middleware pipeline with typed request/response contexts
Integrated Zod for runtime schema validation on all route inputs
Implemented sliding-window rate limiting without Redis dependency
Our Approach
Added comprehensive error normalisation — all errors map to RFC 7807 Problem Details
Wrote 94% test coverage with Vitest and Supertest integration tests
Explore More
Check out more of my work or reach out to collaborate on something exciting.