nodejs-best-practices

Guide Node.js framework selection and development best practices.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers make informed decisions about Node.js frameworks, runtime configurations, architectural patterns, and best practices, ensuring efficient, secure, and maintainable code.

Core Features & Use Cases

  • Framework Selection: Guides choosing the right framework (Hono, Fastify, NestJS, Express) based on project needs (edge, performance, enterprise, legacy).
  • Runtime & Module System: Advises on native TypeScript, ESM vs. CommonJS, and runtime choices (Node.js, Bun, Deno).
  • Architecture & Security: Promotes layered structures, robust error handling, and security checklists.
  • Use Case: A developer is starting a new high-performance API project and needs to decide between Fastify and Express. This Skill provides a decision tree and comparison principles to guide their choice.

Quick Start

Use the nodejs-best-practices skill to help decide which Node.js framework to use for a new edge computing project.

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 a high-performance API?

To choose a Node.js framework for high-performance APIs, compare Fastify and Express using decision principles based on your project's edge, enterprise, or legacy requirements to ensure efficient and maintainable code.

What are the best practices for Node.js architecture and security?

Node.js architecture and security best practices involve implementing layered structures, robust error handling, and applying security checklists to ensure efficient, secure, and maintainable application code.

Should I use ESM or CommonJS for my Node.js project?

Choosing ESM or CommonJS for your Node.js project depends on evaluating native TypeScript support and runtime considerations to align your module system with modern application requirements.

Does this guide compare Node.js runtimes like Bun and Deno?

Yes, this guide compares Node.js runtimes like Bun and Deno by advising on runtime choices and configurations to help you make informed decisions for modern development environments.

When do I need specific architectural patterns for Node.js development?

You need specific architectural patterns for Node.js development when structuring layered applications, handling async programming, and implementing validation to ensure maintainable and robust code.