Guides
Eight tasks, each built on code that compiles and runs against wireframe 0.4.0-alpha1. Start with routing; the rest can be read in any order.
wireframe 0.4.0-alpha1 · samples verified 2026-12-02

New to wireframe? Getting started builds a whole server and client first. The API reference on docs.rs is generated from the same release. The roadmap records the runtime limits to plan around. For the ideas before the API, Keeping the commons tells how one connection stays fair, as a city.
- Routes, envelopes, and handlersA message ID picks the handler. The envelope carries everything else.
- Frame codecs and preamblesFraming is a trait, not a fork. Describe the wire format once; the rest of the stack stays the same.
- Middleware and lifecycle hooksA route handler observes; middleware answers. Hooks give each connection its own state.
- Streaming, push, and sessionsStream request bodies, send replies of any shape, and push frames without a request.
- Fragmentation and memory budgetsFragment large payloads and assemble protocol messages within per-connection memory budgets.
- The client runtimeThe client uses the server’s codec, serializer, and envelope, so both ends of a protocol share one definition.
- Testing at the frameNetworks deliver bytes in whatever pieces they like. Tests should too.
- Running in productionThe server is a typestate, a pool of workers, and an accept loop that backs off when the listener fails.
