Examples Overview
Every downloadable project continues Larkfield's pricing service, one command away, in the framework and language you already run.
On this page
The projects here are the pricing service from the Quickstart, rebuilt the way real services are built: inside a framework, behind a sidecar, as native tools, as an MCP server, and as a small internal desk. Each one shows a decision the kernel signs and the effect it leaves behind.
Every project starts with the same command. chio new fetches the published bundle, checks its digest against the signed index, and unpacks it into a directory of that name.
chio new pricing-desk --example pricing-deskfetched pricing-desk, 134 KB, sha256 3b7e…c41a verifies index chio.computer/examples, signature verifies against the key in chio 0.2.0 created pricing-desk, owned by did:chio:z6Mkf3…Qp9 next cd pricing-desk, then the entry point in README.md
chio new --list-examples lists every published project with its languages and what it runs. Each page below also offers the same bytes as a download.
What will you build?
The projects
| Project | What it runs | Languages | Walkthrough |
|---|---|---|---|
pricing-service | The pricing functions from the Quickstart as a FastAPI, Express, and axum service and an MCP server | Python, TypeScript, Rust | |
pricing-tools | quote and refund as native tools behind an embedded kernel, with a two-quote grant | Rust | |
pricing-api | A plain HTTP pricing API behind the sidecar, and the same API as MCP tools through the OpenAPI bridge | Python, Rust | |
pricing-rust | The pricing service with ChioLayer linked into axum, signed HTTP receipts, and a load harness | Rust | |
pricing-python | The pricing service in FastAPI and Django behind framework middleware | Python | |
pricing-node | The pricing service in Express, Fastify, and Elysia | TypeScript, JavaScript | |
pricing-go-cpp | The pricing service in Go with chi and in C++ with Drogon | Go, C++ | |
pricing- | The pricing service in Spring Boot and ASP.NET Core | Kotlin, C# | |
pricing-desk | Mara's approval desk, an ordered price change, two customers' quotes, and a metered repricing service | Rust, Python |
The repository face has its own projects: the Quickstart computer, the Megastart Rust project, the security labs, and the swarm proofs, each on its own page.
Follow one application through its lifecycle
The pricing desk carries one set of state through several guides:
- Approvals: a deep discount that waits for Mara, then an ordered price change.
- Customers: Harbor Goods and Ostrander, with their own quotes and receipts, then application CI.
- Repricing: outcomes and cancellation, a shared USD 2.00 allowance, and traces tied to receipts.
One contract in every HTTP stack
Every framework project serves the same contract: POST /v1/quote needs a grant and records the quote, and GET /v1/quotes lists them. A request with no grant is refused, a granted one returns the price, and sku-999 is admitted and then rejected by the handler. What differs is where each framework lets the adapter read the body and where the handler finds its receipt.
| Stack | Project | Boundary to understand |
|---|---|---|
Rust / axum | The evaluator is embedded; HTTP receipts carry the handler's final status. | |
Python / FastAPI, Django | Middleware asks a sidecar for each decision. | |
Node / Express, Fastify; Bun / Elysia | Body parsing and middleware order are framework- | |
Go / chi; C++ / Drogon | The C++ build links the Rust FFI from the released tag. | |
JVM / Spring Boot; .NET / ASP.NET Core | Both bound request bytes before admission. |
An adapter's receipt can record status 200 for a request the handler later rejects with 400: read the response and the receipt together. HTTP Framework Middleware explains what the OpenAPI document controls.
Keep one project through the journey
For a Rust tool, run pricing-tools, change its grant, then audit its receipts. For an HTTP API, start with Protect an API and keep the same quotes when you serve them over MCP. You do not need every language.
Build a project
Each project pins its Chio dependencies: Rust projects through the git revision in Cargo.toml, and the others through their registries' lockfiles. Projects that start a sidecar use the installed CLI. Building Chio itself from source is covered in Contributors.
Check the project's prerequisites
Each walkthrough names its toolchain and framework dependencies. The Rust hosts use Unix file locking. The C++ project builds Drogon and the Rust FFI into its own .deps directory, so it needs CMake, a C++17 compiler, and Rust as well.