Examples
The example/ directory is the source of truth for runnable Kaede samples.
Included samples
calculatorA small interpreter-style program that exercises enums, parsing, and evaluation.http_serverA compact HTTP and WebSocket server.http_kv_storeA larger service that uses structs, methods, maps, routing, and request parsing.comment_appA fuller demo with frontend assets, a live comment feed, and Rust helper code.rust_interopThe smallest end-to-end example of importing a Rust crate from Kaede.
Recommended order
If you are new to Kaede:
- Start with
http_server - Read
calculatorfor enums and parser-style code - Move to
comment_apporhttp_kv_store - Inspect
rust_interopwhen you need native integration
Running an example
Most examples follow the same shape:
cd example/http_server
kaede run
If you do not have an installed kaede binary yet, build from the repository root first with ./install.py.