What problem does it solve?
This Skill helps developers build, review, and refactor Node.js backends efficiently, ensuring best practices and performance.
Core Features & Use Cases
- Framework Guidance: Provides setup and configuration details for Express and Fastify.
- Architectural Patterns: Implements layered architecture, dependency injection, and more.
- Middleware Patterns: Includes authentication, validation, rate limiting, and logging.
- Database Patterns: Offers PostgreSQL and MongoDB patterns with connection pooling and transactions.
- Authentication & Authorization: Implements JWT-based authentication and authorization.
- Caching Strategies: Utilizes Redis for caching and method-level caching with decorators.
- API Response Format: Standardizes response formats with error handling and pagination.
- Use Case: A developer is tasked with creating a Node.js backend for a web application. This Skill provides a comprehensive guide to implement middleware, authentication, and database patterns efficiently.
Quick Start
Apply the 'nodejs-backend-patterns' skill to your Node.js project to follow best practices for backend development.