r/typescript • u/muktharhere • Jun 15 '26
I open sourced TypeScript-first Express 5 + Supabase starter I'd love feedback on
I've been refining this starter over the last few projects and finally decided to open-source it.
A few TypeScript-specific things I focused on:
- Environment variables are validated and typed at startup, so the app fails fast if anything is misconfigured.
req.useris added through Express Request augmentation, so authenticated controllers are fully typed.- Request bodies are validated with Zod, and the inferred types carry through into the controllers.
- The app follows a simple routes → controllers → handlers structure, keeping HTTP concerns separate from business logic and database access.
It also includes JWT auth, Supabase (Postgres), rate limiting, Winston logging, SQL migrations, and Vitest. It's MIT licensed.
https://github.com/muhammed-mukthar/express-typescript-supabase-starter
I'm always looking to improve the typing, so if you spot places where the TypeScript could be cleaner or safer, I'd really appreciate the feedback.
