Core concepts
Learn the small set of primitives used to compose typed applications.
The core is intentionally compact. Effect describes a better-result workflow and its Service
requirements, Layer describes implementations, Runtime executes work, and Scope closes what
the application owns.
Declare dependency tokens that are also yieldable handles.
EffectsCompose Result workflows while carrying typed requirements.
LayersDescribe providers and compose the application environment.
RuntimeExecute programs and own graceful shutdown.
Scope and resourcesGive resources a clear owner and a deterministic cleanup boundary.
Errors and ResultsKeep typed failures and unexpected exceptions at explicit boundaries.
A useful order
Read Mental Model first, then Services, Layers, and Runtime. Return to Scope and Resource when you add clients, files, or other owned resources.