nodejs-best-practices

Guide Node.js architecture decisions on framework selection, async patterns, and security.

1|Updated Nov 1, 2025
One-click install
npx skills add https://github.com/carlosalberto05/perritos-refugio-frontend --skill nodejs-best-practices-carlosalberto05
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nodejs-best-practices
Source: https://github.com/carlosalberto05/perritos-refugio-frontend/tree/main/.agents/skills/nodejs-best-practices
Command: npx skills add https://github.com/carlosalberto05/perritos-refugio-frontend --skill nodejs-best-practices-carlosalberto05

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Node.js best-practices for guiding architecture decisions, framework selection, and secure patterns, enabling teams to avoid copying snippets without understanding trade-offs.

Core Features & Use Cases

  • Framework selection guidance among options like Express, Fastify, Hono, and NestJS based on project context.
  • Async patterns, error handling, and deployment considerations to improve reliability and maintainability.
  • Security and validation principles applied to Node.js services in production environments.
  • Use Case: A team deciding between Fastify and Express for a high-throughput API.

Quick Start

Evaluate your project context and select a Node.js framework and patterns that best fit your needs.

Frequently Asked Questions about nodejs-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose a Node.js framework for a high-throughput API?

To choose a Node.js framework, evaluate project context and specific throughput needs. Framework selection guidance compares options like Express, Fastify, Hono, and NestJS using structured criteria to ensure the runtime choice matches your scalability and maintainability requirements.

What are the best Node.js async patterns for reliable error handling?

Reliable Node.js async patterns require principled error handling and validation principles. Applying structured patterns to asynchronous operations ensures safe execution, improves service reliability in production, and promotes maintainable code across microservices or full-stack apps.

How do I apply security principles to Node.js services in production?

Security principles for Node.js services in production involve applying validation and safe patterns to prevent vulnerabilities. Structured guidance ensures secure deployment considerations are met, protecting services by enforcing safe architectural boundaries and reliable data handling.

Does this Node.js architecture guidance apply to microservices and full-stack apps?

Yes, this Node.js architecture guidance applies to projects of varying size, from microservices to full-stack apps. It provides decision trees and clear criteria to evaluate runtime choices, ensuring scalable design and maintainable code across different project scales.

What's the best way to decide between Fastify and Express for my Node.js project?

The best way to decide between Fastify and Express is to evaluate your project context against structured framework selection criteria. Comparing throughput needs and architectural trade-offs ensures you select the option that best fits your high-performance or maintainability goals.