Complete, runnable Ctron programs. Run any of them with the toolchain, e.g.:
ctron run examples/ctwc/src/main.ct
| Example |
What it shows |
| ctwc |
wc-style line/word/byte counter — the smallest end-to-end CLI |
| ctgrep |
grep-style substring search |
| ctwf |
word-frequency counter with deterministic output |
| Example |
What it shows |
| ctecho |
thread-per-connection TCP echo server (scope / spawn concurrency) |
| todo_api |
REST CRUD + JWT auth + CORS + rate limiting + OpenAPI + graceful shutdown on the http framework |
| web_todo |
server-rendered todo app — the web framework's first live example |
| ctslink |
self-hosted URL shortener built on the web.* packages |
| Example |
What it shows |
| gui_counter |
the smallest GUI app: the view in app.ctml, the logic in Ctron |
| gui_calc |
calculator with decimal-string arithmetic and a state machine |
| gui_cjk |
CJK text rendering (FreeType textures) with a live click counter |
| gui_zitie |
Chinese copybook: the Thousand Character Classic, vertical layout, 50 pages |
| gui_files |
file browser — the first example with real I/O |
| gui_dash |
metrics dashboard: cross-file components + content projection |
| gui_snippets |
snippet manager: list props, model capture, Select / WList / Dialog |
| gui_themes |
theme showroom: eight switchable themes |
| gui_widgets |
widget showroom: every interactive widget |
| todo |
todo app on the gui package facade (spec §10) |
| todo_app |
the full todo application — the largest GUI example |
| todo_v10 |
todo per spec §10.3, final-anchor form |