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.

  • RoutingRoute, app.add, app.use middleware, route parameters.

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

  • ResponsesWriter, cookies, streaming, compression.

  • ConfigurationSTARIO_* environment variables, ServerConfig, and RequestPolicy.

Markup and Datastar

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

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

  • Files and assetsAssets, Files, fingerprinted href(). stario.staticassets is obsolete.

The page idea is Go-to architecture. This page is the helper contract.

Operations and utilities

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

  • TestingTestClient, in-process HTTP tests, drain_tasks.

  • JSON — process-wide codec (stario.json, set_codec()).

  • ToolboxRelay.

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