wshobson avatar

Nodejs Backend Patterns

Solid patterns for building Node.js backends that don't fall apart in production. Covers the essentials like proper layered architecture with controllers, services, and repositories, plus error handling middleware that actually catches things. Shows both Express and Fastify setups with TypeScript, authentication flows, and database integration patterns. The code examples are practical, not toy demos. You'll get structured approaches for REST APIs, input validation, password hashing, and SQL query organization. Good reference when you're past the tutorial phase but need proven patterns for real applications that handle traffic and don't leak memory.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
17
skills.sh installs
49.8K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill nodejs-backend-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Best Practices

Sponsors

Details

Repository
github.com/wshobson/agents
Categories
Backend & APIs, Security, DevOps & CI/CD, Debugging, Design & UI/UX, Databases

More from wshobson/agents

All 174
1samber avatargolang-databasesamber/cc-skills-golangComprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connec42.5Kskills.sh installs
2neondatabase avatarneon-ai-gatewayneondatabase/agent-skillsOne API and one credential for frontier and open-source LLMs and embedding models, built into your Neon branch and powered by Databricks. Use when a user wants 39.8Kskills.sh installs
3better-auth avatartwo-factor-authentication-best-practicesbetter-auth/skillsMulti-factor authentication with TOTP, OTP, backup codes, and trusted device management for Better Auth.36.5Kskills.sh installs
4wshobson avatarapi-design-principleswshobson/agentsMaster REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewin31.3Kskills.sh installs
5better-auth avatarcreate-authbetter-auth/skillsScaffold and implement authentication in TypeScript/JavaScript apps with Better Auth framework detection, database adapter setup, and OAuth integration.29.3Kskills.sh installs
6google-gemini avatargemini-live-api-devgoogle-gemini/gemini-skillsUse this skill when building real-time, bidirectional streaming applications with the Gemini Live API. Covers WebSocket-based audio/video/text streaming, voice 10.8Kskills.sh installs