JavaScript 213 FILES 3 FINDINGS

HOW EXPRESS
ACTUALLY WORKS

Fast, unopinionated, minimalist web framework for Node.js. Conventions, patterns, and architecture extracted from the expressjs/express repository by sourcebook.

QUICK_REF:
Testing: Mocha. Test utilities in: test/fixtures/user.tmpl.

WHAT_MATTERS

  • index.js is a hub file (imported by 15 files) — changes here ripple everywhere

KEY_FINDINGS

Tests live in a separate test/ directory, mirroring src/ structure. New tests go there, not next to source files.

HIGH

Tests use Mocha. Test utilities in: test/fixtures/user.tmpl.

HIGH
17 test files

Hub files (most depended on): index.js (imported by 15 files); lib/utils.js (imported by 7 files). Changes here have the widest blast radius.

HIGH
GENERATED IN ~3 SECONDS WITH

npx sourcebook init

VIEW ON GITHUB star

FROM_THE_BLOG

RELATED_REPOS