nodejs-backend-patterns
Installation
Summary
Production-ready Node.js backend patterns with Express/Fastify, middleware, authentication, and database integration.
- Covers layered architecture (controllers, services, repositories), dependency injection, and microservices design with TypeScript
- Includes middleware patterns for authentication, validation, rate limiting, and request logging with practical examples
- Provides custom error handling, global error handlers, and async error wrappers for robust error management
- Supports PostgreSQL (connection pooling, transactions) and MongoDB (Mongoose) with caching strategies using Redis
- Demonstrates JWT authentication, refresh tokens, API response formatting, and best practices for production deployments
SKILL.md
Node.js Backend Patterns
Comprehensive guidance for building scalable, maintainable, and production-ready Node.js backend applications with modern frameworks, architectural patterns, and best practices.
When to Use This Skill
- Building REST APIs or GraphQL servers
- Creating microservices with Node.js
- Implementing authentication and authorization
- Designing scalable backend architectures
- Setting up middleware and error handling
- Integrating databases (SQL and NoSQL)
- Building real-time applications with WebSockets
- Implementing background job processing
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.