Skip to main content

Examples

The example/ directory is the source of truth for runnable Kaede samples.

Included samples

  • calculator A small interpreter-style program that exercises enums, parsing, and evaluation.
  • http_server A compact HTTP and WebSocket server.
  • http_kv_store A larger service that uses structs, methods, maps, routing, and request parsing.
  • comment_app A fuller demo with frontend assets, a live comment feed, and Rust helper code.
  • rust_interop The smallest end-to-end example of importing a Rust crate from Kaede.

If you are new to Kaede:

  1. Start with http_server
  2. Read calculator for enums and parser-style code
  3. Move to comment_app or http_kv_store
  4. Inspect rust_interop when 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.