Skip to content
tannaye.dev
All work

Clean API Foundation

A production-ready Express + TypeScript starting point built on Clean Architecture.

Category
Products
Year
2026
Role
Author · Open source

01The problem

Every new backend service used to start with the same week of setup: auth, errors, validation, logging, caching, encryption. Done differently each time, it drifted.

02The approach

  • Domain, use cases, adapters and infrastructure in strict layers, with dependencies pointing inward.
  • Auth built in: JWT with encrypted payloads, token caching in Redis, password reset flows.
  • Typed HTTP errors, a generic paginated repository, a lightweight DI container, Winston logging.

03The impact

  • New services start from a consistent, secure baseline.
  • Engineers spend their first day on the product, not the plumbing.