Cookbook¶
Practical recipes for building real programs with Kaappi. Each recipe is a self-contained guide that solves one problem end-to-end.
Recipes¶
Web & API¶
- Build a REST API — full CRUD API with PostgreSQL, Redis caching, validation, and error handling
- Call HTTP APIs — GET/POST requests, JSON decoding, error handling, retries, and downloads
- Serve HTML with Templates — dynamic HTML pages with the template engine, layouts, and auto-escaping
Data Processing¶
- Process JSON Data — read, transform, filter, and write JSON from files and APIs
- Parse and Generate CSV — read CSV files, process rows, write results, and handle edge cases
- Store Data in SQLite — local persistence with schemas, CRUD helpers, transactions, and streaming
Application Patterns¶
- Read Configuration Files — TOML/YAML config with defaults, environment overrides, and validation
- Run Concurrent Tasks — fibers, channels, pipelines, and worker pools
- Write Tests — test organization, assertions, error testing, and CI integration
- Build a CLI Tool — argument parsing, subcommands, and help generation
Each recipe assumes you have installed Kaappi and know the basics from the tutorial. If a recipe uses ecosystem libraries, installation commands are shown at the top.