Search across all documentation pages
7 pages in this section.
Why modularity in a Node.js backend is really about controlling the direction of dependencies rather than splitting files, and how layering domain logic away from HTTP frameworks keeps a codebase changeable as it grows.
Learn modularity basics for Node.js backends with 7 examples, including thin route handlers and use case functions with explicit dependencies.
Compare manual, Awilix, and NestJS dependency injection in Node.js. Learn when to use each pattern and see practical code examples.
Learn how to implement use cases and services in the application layer, orchestrating repositories and gateways to fulfill user intents.
Learn Node.js modularity best practices for testable codebases. Automate import rules, enforce layer discipline, and manage import direction.
A single-page roundup of every highlight bullet from the 6 pages in the Modularity section, grouped by source page so you can scan all 24 takeaways without opening each article individually.