24 days ago
Description: Secure, blank NestJS API with rate limiting and auto-ban on Redis
Category: Starters
1 Reply
24 days ago
Hey everyone, I built this template for people who build their backend with AI coding agents (Claude Code, Codex, Cursor) and want something secure and cheap to run.
What it deploys: a NestJS API + Redis. No database service, so you only pay for what you use. Bring your own Postgres (Supabase, Neon) with DATABASE_URL, or run without one.
What's in it:
- Rate limiting + auto-ban for abusive clients and scanners (nestjs-shield), Redis-backed with an in-memory fallback
- Input sanitization + strict validation on every request
- Helmet, validated env vars, structured logs with auth headers redacted
/healthfor healthchecks and Swagger docs in dev- A
demofolder showing each library, plus anAGENTS.mdso your coding agent knows how the project works
It's blank on purpose: no auth or users table, so it fits whatever you use (Supabase Auth, Clerk, etc.).
Source: https://github.com/Yassinos-coder/nestjs-api-railway-template
I'd love feedback: what would you want pre-wired that isn't? A Supabase token guard is next on my list.