Skip to main content

Runtime layers & request flow (7-layer view)

Generated from pattern-library/registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: Architecture & Request Pipeline · Tier: light · Maturity: proven (verified 2026-08-20 @ 1a130d67) · Risk: low — structural pattern, no external services

Documents v10r's seven-layer abstraction hierarchy, from tech stack down to code, anchored by the hooks.server.ts composition root and the hexagonal domain core.

When to use: Reach for it when orienting a new contributor or agent to how a request moves through the system and which layer a given file belongs to.

Docs

Code

Tests

  • src/lib/server/security/handle-chain.gate.test.ts — Pins the middleware order the layer model describes (GitHub · GitLab)

Machine-readable record: architecture-runtime-layers in pattern-library/registry.json.

← Back to Pattern Library

Think this pattern could be better? Tell us how.

Leave feedback