Agent skill · software engineering · aiskillstore

nodejs-backend-patterns

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.

Why this skill is useful

Provides specific middleware patterns, error handling techniques, and architectural patterns for Node.js applications that the AI wouldn't reliably generate on its own.

What it needs

Requires node installed locally. About 9k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

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 Core Frameworks Express.js - Minimalist Framework Basic Setup: Fastify - High Performance Framework Basic Setup: Architectural Patterns Pattern 1: Layered Architecture Structure: Controller Layer: Service Layer: Repository Layer: Pattern 2: Dependency Injection DI Container: Middleware Patterns Authentication Middleware Validation Middleware Rate Limiting Middleware Request Logging Middleware Error Handling Custom Error Classes Global Error Handler Database Patterns PostgreSQL with Connection Pool MongoDB with Mongoose Transaction Pattern Authentication & Authorization JWT Authentication `typescript // services/auth.service.ts import jwt from 'jsonwebtoken'; import bcrypt from 'bcrypt'; import { UserRepository } from '../repositories/user.repository'; import { UnauthorizedError } from '../utils/errors'; export class AuthService { constructor(private userRepository: UserRepository) {} async login(email: string, password: string) { const user = await this.userRepository.findByEmail(email); if (!user) { throw new UnauthorizedError('Invalid credentials'); } const isValid = await bcrypt.compare(password, user.password); if (!isValid) { throw new UnauthorizedError('Invalid credentials'); } const token = this.generateToken({

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/nodejs-backend-patterns--c580b7

View the source on GitHub

Browse the @skills marketplace