Reference

Behavioral manuals for Stario types and modules: lifecycle, invariants, who constructs what, and how pieces compose. Signatures and parameter notes come from docstrings via apidoc blocks on each page.

For walkthroughs, see Tutorials. For design rationale, see Explanation.

HTTP and runtime

  • RuntimeApp, bootstrap, Server, shutdown, and task drain.

  • Routing — path patterns, app.use middleware, route parameters, UrlPath.

  • Request and contextContext, Request, query, body, c.state.

  • ResponsesWriter, cookies, streaming, compression.

  • ConfigurationSTARIO_* environment variables, ServerConfig, and RequestPolicy.

Markup and realtime

  • HTMLstario.markup trees, Attrs, baked components, SVG.

  • Datastardata / at namespaces, signals, SSE, read_signals.

  • Static assetsAssetManifest, StaticAssets, fingerprinted href().

Operations and utilities

  • Telemetry — span handles, tracers, sinks, TelemetryStats.

  • TestingTestClient, in-process HTTP tests, drain_tasks.

  • ToolboxRelay.

  • Glossary — short definitions with links into the pages above.