Architecture of expressjs/express
expressjs/express is 158 source files holding 80 symbols across 4 modules, written mainly in JavaScript. The largest module is test, with 92 files, and 2 files are entry points into the dependency graph.
How express fits together
The package entry point is index.js, one of the two entry points listed for the project. The lib directory holds 6 source files that make up the framework itself. package.json declares the npm package and its dependencies, including accepts, body-parser, cookie, debug and finalhandler. The examples directory holds 43 files, such as examples/content-negotiation, which shows how to run a sample app with node. The test directory holds 92 files, and .github/workflows/ci.yml defines the continuous integration workflow. Applications built with express register their routes and handlers, and the framework routes incoming HTTP requests to them.
Largest modules
- test: 92 files and 13,880 lines of code
- examples: 43 files and 1,228 lines of code
- lib: 6 files and 1,139 lines of code
- root: 1 file and 2 lines of code
Documentation
Repowise documents express in 27 pages generated from the source, 4 of them written explanations of the repository and its modules. Module guides include:
- root: Application Bootstrap and Core API
More on express: summary and FAQ, codebase overview, code health.
Related guide: Best dependency graph tools for monorepos