Web framework for Koru.
Orisha is a web framework built on Koru. It supports traditional REST endpoints, but its killer feature is accepting Koru source code over the wire - clients send entire flows instead of making multiple round trips. The server executes them within budget constraints, with automatic resource cleanup.
Pre-compute HTTP responses at build time. Files read, headers formatted, ETags computed - all before deployment. Runtime just writes bytes to the socket.
Accept Koru flows from clients. One request replaces multiple round trips. Error handling is part of the flow, not client-side retry logic.
Operations have semantic costs. Clients have budgets. When budget runs out mid-flow, resources clean themselves up via auto-discharge.
Static binaries with no runtime dependencies. FROM scratch Docker images. Runs on edge, lambda, embedded - anywhere binaries run.
Semantic cost metering, not request counting. A lookup costs 1, an export costs 500. Clients know their budget. Servers enforce it.
Phantom types track resource obligations. The interpreter knows how to release them. Budget exhausted mid-flow? Open handles are auto-discharged.
Different scopes expose different capabilities. Handles can't cross scope boundaries. Untrusted code runs in constrained scopes.
Static binaries with no runtime dependencies. FROM scratch Docker images. Runs anywhere binaries run.
Events, types, and patterns for building web services
Compile-time route collection and response generation
Scopes, costs, handle pools, auto-discharge
Docker, edge, configuration
Real-world patterns and recipes
What's done, what's next