Repository navigation
Examples and Tutorials
Lee Yunjin edited this page Oct 7, 2026
·
1 revision
tutorials/ holds 30
self-contained modules. Each has a runnable main.c, a CMakeLists.txt and a
README; later modules assume the earlier ones.
cd tutorials/01-hello-world
mkdir build && cd build
cmake .. && make
./tut01make tutorials-check compiles every tutorial against the current library;
CI runs it in the sanitizer job.
- Tutorial (single page; also in Korean)
- Build a CRUD blog
- NATS integration
- OpenAPI and Swagger UI
- WebTransport server
- Wasmtime appliance deployment
Runnable demos under example/:
| Example | Demonstrates |
|---|---|
| simple-server | minimal HTTP server |
| http | step-by-step HTTP features |
| db, db-crypt | SQLite and encrypted database blobs |
| jwt | issuing and verifying tokens |
| othello-web | multiplayer WebSocket game over HTTPS |
| rps-showcase | static caching and throughput |
| json-builder, html, template | rendering helpers |
| micro, mem, siphash, sstring | core utilities |
| cde-json-viewer | JSON viewer app |
| webtransport | WebTransport (experimental) |
| webrtc | WebRTC DataChannel echo |
| wasm-service-worker | CWIST compiled to WASM in a Service Worker |
| wasip2-kv | WASI 0.2 key-value service |
| rust-hello | Rust bindings |
| zig-hello | Zig bindings |
A production deployment built on CWIST: fly.board.
CWIST wiki, written against the dev branch of c4punks/CWIST. Pages marked "Source:" are generated from files under docs/; fix those in the repository. Questions: Discord.
Getting started
- Installation
- Quick Start
- Linking
- Server Modes
- Configuration and Environment
- Project CLI
- Tutorial / Korean
- Examples and Tutorials
Guides
Core
- API Reference
- Application
- Routing
- Middleware
- Requests and Responses
- Async Handlers
- Streaming Responses
- Error Handling
- Graceful Shutdown
- Multiport
Protocols
- HTTPS and TLS
- HTTP/2
- HTTP/3 and QUIC
- WebTransport
- WebSocket
- Server-Sent Events
- gRPC Server
- gRPC Client
- Protobuf and Codegen
- GraphQL
- WebRTC DataChannels
- HTTP Clients
Web features
- Static Files and Assets
- Big Dumb Reply Cache
- Compression
- Cookies
- Sessions and Flash
- Query Maps
- Multipart Uploads
- HTML Components
- Templates
- JSON
- Validation
- OpenAPI
Security
Data
Runtime
- Memory Management
- Full GC
- Async GC Ownership
- SString
- Reactor and I/O
- Metrics and Health
- Logging
- Testing
Platforms
Performance notes
- Benchmark Methodology
- C1M File Limits
- Reactor Fairness
- Cooperative Queuing
- Classic Pool Starvation
- Reactor Wakeup
- wrk Dual Histogram
- FIXED Endpoint Cache
- ADR-0001
- Durable Queue Gate
- Mux References
Project