WreathBrowse
Guides

Guides · the ordinary things still matter

Find the thing you expected a framework to have.

Start with the name you already use—middleware, forms, sessions, migrations, caching or webhooks—and follow it to the Wreath owner that makes the behavior explicit.

HTTP basicsbrowser securitydata lifecycleoperations

Build one APISee the complete surface

HTTP application basics#

You are looking forStart herePublic owner
application, lifespan and stateconfiguration and lifecyclewreath.app, wreath.state, wreath.config
routes and routersbuild an HTTP APIwreath.router, Wreath.route, Wreath.include_router
path, query, header and cookie inputsbuild an HTTP APIwreath.binding
JSON, forms and file bodiesHTTP API, browser apps, objectswreath.binding, wreath.objects
validation and problem responsesbuild an HTTP APIwreath.binding, wreath.validation_errors, wreath.exceptions
response classes and streamingapplication referencewreath.response
dependenciesapplication referencewreath.binding.Depends
content negotiationprotocolswreath.negotiation
OpenAPI and generated clientsbuild an HTTP APIwreath.openapi, wreath.typegen
API versions and paginationapplication referencewreath.versioning, wreath.pagination

What other frameworks call middleware#

The standard stack is first-class HTTP policy, not a list of nested callables. That page covers proxy trust, hosts, maintenance, bot traffic, rate limits, request decompression, IDs, timing, CORS, CSRF, CSP/HSTS, WebSocket origins, sessions, idempotency, cache headers, compression, concurrency and deadlines. It also shows the custom hook protocol for behavior that is genuinely application-specific.

Browser-facing applications#

NeedGuide or referenceOwner
safe server-rendered HTMLbrowser apps and assetswreath.templates
static assets, ranges and validatorsbrowser apps and assetswreath.staticfiles
URL-encoded and multipart formsbrowser apps and assetswreath.binding.Form
uploads and resumable objectsobjects and uploadswreath.binding.File, wreath.objects
cookie or server-side sessionspolicy, identitywreath.policy.sessions, wreath.session_store
CORS, CSRF and browser headerspolicy and hardeningwreath.policy

Identity and multi-tenancy#

Identity and users starts with authentication and denial paths. The enterprise story carries the same principal through tenant resolution, Cedar authorization, SAML, OIDC, SCIM, quotas and support operations. The identity reference contains the complete users, organisations, tokens, sessions, second-factor, privacy and tenancy APIs.

Data and background work#

NeedGuideOwner
pools, models, queries and transactionsPostgreSQL and modelswreath.postgres, wreath.orm
migrations and schema generationdetect through rollbackwreath.migrations, wreath.schema
safe raw SQLPostgreSQL and modelswreath.sql
temporal and analytical queriestime-series storywreath.temporal, wreath.series
objects and uploadsobjects and uploadswreath.objects
live sockets and roomsrealtime and durable workwreath.websocket, wreath.rooms
jobs, workflows and progressrealtime and durable workwreath.jobs, wreath.workflows, wreath.progress
safe large-table maintenancechunked passeswreath.passes
retries and external effectsexactly-once effectsidempotency, jobs, webhooks

Integration and protocol boundaries#

Integration boundaries covers outbound HTTP, service clients, verified inbound webhooks, durable outbound delivery, email and notifications. Protocols covers Protobuf, gRPC and GraphQL; MCP covers tools, resources, prompts, OAuth and agent-facing authorization.

Production and proof#

Deploy Wreath is the production runbook for extras, TLS, edge topology, worker sizing, graceful shutdown, service configuration and diagnosis. Operations covers health, readiness and observability. The command-line task map connects scaffolding, migrations, preflight, capture, replay, durable work and crash evidence. Testing and evidence covers the in-process client, WebSockets, the Wreath runner, mutation confidence, recording, replay and deterministic simulation. The operations reference holds logging, metrics, telemetry, hardening and diagnostic APIs.

The version and upgrade contract states exactly which Wreath release this site documents, the supported wheel matrix and how compatibility changes before 1.0.

If a conventional term is absent from this page, the complete surface map lists every subsystem, and the generated reference imports every documentable public module during the strict build.

esc
↑↓ navigate↵ openesc close