nodejs-best-practices
Installation
SKILL.md
Node.js Development Principles
Node.js is not a problem — unpredictable async behavior is. Understand the event loop and half of Node.js "gotchas" disappear.
Framework Selection
| Context | Recommended | Why |
|---|---|---|
| REST API, standard patterns | Express + TypeScript | Mature, flexible, most hiring knowledge |
| REST API, speed + TypeScript-first | Fastify | 2x Express throughput, built-in validation |
| Full-stack React | Next.js API routes | Colocated API and UI, serverless-friendly |
| REST + tRPC | Next.js + tRPC | Type-safe end-to-end with no code generation |
| RPC across services | gRPC | Binary protocol, contract-first |
| Edge function / Cloudflare Worker | Hono | Tiny, Web Platform API-native, zero cold start |
| Scripts / tooling / bun-native | Bun | Built-in bundler, test runner, near-Node compat |