Node.js Backend Patterns
Unverified●30/40Claude Code◐PartialHas SKILL.md but declares no allowed-tools — Claude Code will ask for permission each time
Cursor◐PartialPlain prose you can paste in — but no Cursor rules file
Codex◐PartialPlain prose you can paste in — but no AGENTS.md
Gemini CLI◐PartialPlain prose you can paste in
Copilot◐PartialPlain prose you can paste in — but no Copilot instructions file
npx agentalley add nodejs-backend-patternsWho is stuck, and on what
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.
The whole source
Frontmatter — 2 properties
| name | nodejs-backend-patterns |
|---|---|
| description | Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures. |
| 1 | --- |
| 2 | name: nodejs-backend-patterns |
| 3 | description: Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures. |
| 4 | ---A5 — No allowed-tools declared — no way to tell what this skill may touch |
| 5 | |
| 6 | # Node.js Backend Patterns |
| 7 | |
| 8 | Comprehensive guidance for building scalable, maintainable, and production-ready Node.js backend applications with modern frameworks, architectural patterns, and best practices. |
| 9 | |
| 10 | ## When to Use This Skill |
| 11 | |
| 12 | - Building REST APIs or GraphQL servers |
| 13 | - Creating microservices with Node.js |
| 14 | - Implementing authentication and authorization |
| 15 | - Designing scalable backend architectures |
| 16 | - Setting up middleware and error handling |
| 17 | - Integrating databases (SQL and NoSQL) |
| 18 | - Building real-time applications with WebSockets |
| 19 | - Implementing background job processing |
| 20 | |
| 21 | ## Detailed patterns and worked examples |
| 22 | |
| 23 | Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient. |
| 24 | |
| 25 | ## Best Practices |
| 26 | |
| 27 | 1. **Use TypeScript**: Type safety prevents runtime errors |
| 28 | 2. **Implement proper error handling**: Use custom error classes |
| 29 | 3. **Validate input**: Use libraries like Zod or Joi |
| 30 | 4. **Use environment variables**: Never hardcode secrets |
| 31 | 5. **Implement logging**: Use structured logging (Pino, Winston) |
| 32 | 6. **Add rate limiting**: Prevent abuse |
| 33 | 7. **Use HTTPS**: Always in production |
| 34 | 8. **Implement CORS properly**: Don't use `*` in production |
| 35 | 9. **Use dependency injection**: Easier testing and maintenance |
| 36 | 10. **Write tests**: Unit, integration, and E2E tests |
| 37 | 11. **Handle graceful shutdown**: Clean up resources |
| 38 | 12. **Use connection pooling**: For databases |
| 39 | 13. **Implement health checks**: For monitoring |
| 40 | 14. **Use compression**: Reduce response size |
| 41 | 15. **Monitor performance**: Use APM tools |
| 42 | |
| 43 | ## Testing Patterns |
| 44 | |
| 45 | See `javascript-testing-patterns` skill for comprehensive testing guidance. |
| 46 |
Reviews
Installed this one?Write the first review and take the Trailblazer badge.
Alternatives
Subagent Driven DevelopmentUse when executing implementation plans with independent tasks in the current session◐◐◐◐◐●36/40Python Code Style & DocumentationPython code style, linting, formatting, naming conventions, and documentation standards. Use when writing new code, reviewing style, configuring linters, writing docstrings, or establishing project standards.◐····●35/40Competitor Price Analysis 💲Competitor pricing strategy analysis and market positioning. Price mapping, pricing gaps identification, elasticity signals evaluation, and strategic pricing optimization. Use when the user asks about competitor pricing, price analysis, pricing strategy, or co◐····●34/40Competitor Price Tracker 📊Set up competitor price tracking and monitoring workflows. Track price changes, detect promotions, analyze pricing patterns, and get alerts for competitive price movements.◐····●34/40