📄️ Node.js Best Practices: Overview
A field guide to building Node.js services that survive contact with production — covering structure, errors, style, testing, deployment, security, performance, and containers.
📄️ Project Structure
How to lay out folders, components, and layers so a Node.js codebase stays navigable as it grows past a handful of files.
📄️ Error Handling
Patterns for raising, propagating, centralizing, and recovering from errors in Node.js services without leaking bugs into production.
📄️ Code Style
Conventions for consistent, readable, and maintainable JavaScript/TypeScript in Node.js codebases, from automated formatting to naming, structure, and module boundaries.
📄️ Testing & Quality
Conventions for writing readable, isolated, and trustworthy tests, plus lightweight static-analysis habits that keep a Node.js codebase healthy over time.
📄️ Going to Production
Runtime, process, logging, and monitoring practices for running Node.js services reliably in production.
📄️ Security
An OWASP-aligned checklist for hardening Node.js and Express applications.
📄️ Performance
Practices for keeping the Node.js event loop responsive under load — recognizing what blocks it, what to offload, and how to profile before optimizing.
📄️ Docker for Node.js
Building small, secure, cache-friendly, and signal-aware Docker images for Node.js services.