claude-home/development/nodejs-CONTEXT.md
Cal Corum 4b7eca8a46
All checks were successful
Reindex Knowledge Base / reindex (push) Successful in 3s
docs: add YAML frontmatter to all 151 markdown files
Adds title, description, type, domain, and tags frontmatter to every
doc for improved KB semantic search. The description field is prepended
to every search chunk, and domain/type/tags enable filtered queries.

Type values: context, guide, runbook, reference, troubleshooting
Domain values match directory structure (networking, docker, etc.)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 09:00:44 -05:00

1.3 KiB

title description type domain tags
Node.js Development Patterns Node.js coding patterns and conventions for Express.js APIs, middleware, event-driven architecture, and microservices. Covers error handling, security, and dependency management. context development
nodejs
javascript
express
patterns
microservices
security

Node.js Patterns

Project Setup

  • Use package.json with proper scripts
  • Implement environment-based configuration
  • Use ES modules or consistent CommonJS
  • Proper dependency management (dev vs prod)

Application Architecture

  • Express.js patterns for REST APIs
  • Middleware chains for request processing
  • Event-driven architecture for scalability
  • Microservices with proper service boundaries

Error Handling

  • Centralized error handling middleware
  • Proper async/await error catching
  • Process-level error handling
  • Graceful shutdown patterns

Performance & Security

  • Connection pooling for databases
  • Rate limiting and input validation
  • Environment variable management
  • Dependency vulnerability scanning
  • Examples: /examples/nodejs/express-api.md
  • Examples: /examples/nodejs/microservices.md
  • Examples: /examples/nodejs/package-management.md
  • Reference: /reference/nodejs/debugging.md
  • Reference: /reference/nodejs/security.md