Backend
Installation
SKILL.md
Backend
First, apply all rules from the nodejs-backend-patterns skill. The rules below extend and override that baseline for Singleton SD personal projects.
When the backend is paired with a Next.js frontend, also apply next-best-practices for route handler and BFF patterns on the frontend side.
Stack Decision
| Scenario | Choice |
|---|---|
| Complex domain, multiple consumers, long-lived API | NestJS |
| Simple CRUD, single Next.js frontend, fast iteration | Next.js Route Handlers as BFF |
| Need background jobs, queues, or WebSockets | NestJS |
Default to NestJS for any project that will outlive a prototype.