nodejs-best-practices

Guide Node.js teams through framework, runtime, and architecture decisions.

1|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/fnsalinas/fnsalinas.github.io --skill nodejs-best-practices-fnsalinas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nodejs-best-practices
Source: https://github.com/fnsalinas/fnsalinas.github.io/tree/main/.agent/skills/nodejs-best-practices
Command: npx skills add https://github.com/fnsalinas/fnsalinas.github.io --skill nodejs-best-practices-fnsalinas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Node.js teams often struggle to pick frameworks, runtimes, and architectural patterns that fit a project’s context. This Skill provides decision-making principles and structured criteria to reason about Node.js choices rather than memorizing fixed code templates.

Core Features & Use Cases

  • Framework selection guidance: evaluate Hono, Fastify, Express, NestJS based on deployment, performance, and team familiarity.
  • Runtime and architecture principles: guidance on Node.js, Bun, and Deno, and layered architecture concepts.
  • Error handling, async patterns, and security: centralized error handling, validation, and security considerations to build robust, maintainable systems.
  • Use Case: Ideal for starting new Node.js projects, refactoring legacy code, or aligning teams on a consistent decision process.

Quick Start

Describe your project context and requirements, then have the skill propose a tailored Node.js approach.

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 the right Node.js framework for my project?

Choosing the right Node.js framework requires evaluating deployment targets, performance needs, and team familiarity. Compare options like Hono, Fastify, Express, and NestJS using structured criteria to ensure the selection fits your specific serverless or enterprise-grade context.

What is the best way to structure Node.js architecture for maintainability?

The best way to structure Node.js architecture involves applying layered architecture concepts and centralized error handling. Reasoning through architectural layering ensures your system remains robust and maintainable across different runtime environments and project scales.

When should I choose Bun or Deno over Node.js?

You should choose Bun or Deno over Node.js after reasoning through runtime options and architecture principles. Evaluating your project context against structured criteria helps determine if alternative runtimes provide better performance or feature alignment for your specific use case.

How do I implement centralized error handling and async patterns in Node.js?

Implement centralized error handling and async patterns in Node.js by following decision-making principles for robust systems. Structured criteria guide validation and security considerations, ensuring maintainable async workflows without relying on fixed code templates.

Does this approach work for aligning teams during a Node.js legacy refactoring?

Yes, this approach works for aligning teams during a Node.js legacy refactoring by providing context-driven recommendations. Applying consistent decision-making principles helps teams evaluate architecture layering, security considerations, and framework selection systematically.