JavaScript 384 FILES 3 FINDINGS

HOW FASTIFY
ACTUALLY WORKS

Fast and low overhead web framework for Node.js. Conventions, patterns, and architecture extracted from the fastify/fastify repository by sourcebook.

QUICK_REF:
Routing: Fastify routes Testing: Node.js built-in test runner. Test utilities in: test/logger/logger-test-utils.js.

WHAT_MATTERS

  • Uses Fastify routes for routing — follow this pattern, don't add REST routes directly

  • lib/symbols.js is a hub file (imported by 19 files) — changes here ripple everywhere

KEY_FINDINGS

API endpoints use Fastify routes. Follow this pattern for new routes.

HIGH
22 files use Fastify routes

Tests use Node.js built-in test runner. Test utilities in: test/logger/logger-test-utils.js.

HIGH
34 test files

Hub files (most depended on): lib/symbols.js (imported by 19 files); lib/errors.js (imported by 17 files); fastify.js (imported by 17 files); lib/hooks.js (imported by 7 files); lib/warnings.js (imported by 5 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