Skip to content
NestJS API (Redis)
yassinos-coder
OP

24 days ago

Description: Secure, blank NestJS API with rate limiting and auto-ban on Redis

Category: Starters

URL: https://railway.com/deploy/nestjs-api-redis

1 Reply

yassinos-coder
OP

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
  • /health for healthchecks and Swagger docs in dev
  • A demo folder showing each library, plus an AGENTS.md so 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.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...