Nodejs Starter Template banner
isSubham isSubham

Nodejs Starter Template

DevOps community

Description

Production-grade REST API starter — TypeScript, Express, PostgreSQL + Prisma, JWT auth, Zod validation, Vitest, Docker. AI-agent ready (AGENTS.md/CLAUDE.md included).

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Node.js Starter Template

**A production-grade REST API boilerplate built the way senior engineers actually build things.**

TypeScript · Express · PostgreSQL · Prisma · JWT · Zod · Vitest · Docker

[![CI](https://github.com/isSubham/nodejs-starter-template/actions/workflows/ci.yml/badge.svg)](https://github.com/isSubham/nodejs-starter-template/actions/workflows/ci.yml) ![Node.js](https://img.shields.io/badge/Node.js-%3E%3D20-339933?logo=nodedotjs&logoColor=white) ![TypeScript](https://img.shields.io/badge/TypeScript-5.x-3178C6?logo=typescript&logoColor=white) ![Prisma](https://img.shields.io/badge/Prisma-5.x-2D3748?logo=prisma&logoColor=white) ![License](https://img.shields.io/badge/license-MIT-blue)


Why this template?

Most Node.js starters are either too minimal (a bare Express setup) or too opinionated (a full framework). This one sits in the sweet spot — it's what you'd build on day one at a serious company.

Every decision here has a reason:

  • TypeScript strict mode — catch bugs at compile time, not in production
  • Zod for everything — env validation, request validation, same tool, same mental model
  • Feature-module architecture — files live next to what they belong to, scales without restructuring
  • Repository pattern — DB queries are isolated, controllers never touch Prisma directly
  • JWT rotation — refresh tokens are stored, rotated on use, and revocable
  • Zero-debt error handling — one error class, one error catalog, one handler
  • Agent-ready`AGENTS.md` documents the module pattern and conventions so Claude Code, Cursor, Copilot, etc. generate code that fits the codebase instead of fighting it

Stack

Concern Choice Why
Language TypeScript 5 (strict) Type safety end-to-end
Framework Express 4 Stable, well-understood, minimal magic
Database PostgreSQL + Prisma Type-safe queries, great migration story
Auth JWT