Runnable examples
These examples are small projects you can operate, not isolated configuration fragments. They live under examples/ and use only a shell and Python 3. They do not contact external hosts, require credentials, or modify anything outside their own directory.
Start from the repository root after building or installing Kranz.
MoonFlight showcaseThe whole model in one project: infrastructure, migration, APIs, gateway, workers.Procfile quickstartThree commands, no YAML. Learn the interface and environment loading.Native YAMLDependencies, a one-shot setup, readiness, and runtime ports.Detached lifecycleStart, stop, observe, and reconnect external resources safely.PrerequisitesMigrations and setup that must finish before a service starts.Action parametersBuild one safe argv from choices, numbers, text, checkboxes, and static prerequisite values.Process ComposeOpen an existing compatible configuration directly.Configuration compositionCombine autonomous native, Procfile, and Process Compose sources and inspect the result.TUI dependency viewerInspect both directions, watch real health checks, and preview batch operations.Full dependency graphTwo APIs, a gateway, a worker, health gates, and recovery.Runtime portsSee how Kranz discovers listeners from processes and children.MCP shared runtimeProve that CLI and MCP operate one live session and one action-run identity.
Which example should I choose?
| If you want to learn… | Use |
|---|---|
| How everything fits together in one project | MoonFlight |
| The keyboard and basic service lifecycle | Procfile |
| Custom log processors, viewers and run-aware search | Log tools playground |
How a real kranz.yaml is structured | Native YAML |
| Docker/SSH-style resources that survive Kranz | Detached lifecycle |
| Work that must succeed before a service starts | Prerequisites |
| One action replacing copied command variants | Action parameters |
| Whether your existing Process Compose file works | Process Compose |
| How several repositories become one explainable project | Configuration composition |
| Live graph status and batch previews in the TUI | Dependency viewer |
| Dependency fan-out, fan-in, health, and recovery | Full stack |
| Declared, detected, stale, and dynamic ports | Runtime ports |
| A coding agent joining the runtime you already use | MCP shared runtime |
Safe by construction
The lifecycle and dependency viewer playgrounds use ignored marker files. Examples that need ports open only documented localhost listeners. Each page includes its cleanup instructions.