Choose an ecosystem package
Start with plain Kitex components. Add a package when you have a specific job for it:
| I want to… | Package | Guide |
|---|---|---|
| Share application state across screens | extras/kites |
Kites |
| Fetch, cache, or stream data | extras/wind |
Wind |
| Navigate to details and back | extras/flight |
Flight |
| Validate submitted controls as a Go struct | extras/form |
Form |
Keep finished output in scrollback with <Static> while inline progress updates |
extras/trail |
Trail |
| Preview components with adjustable inputs | extras/stage |
Stage |
| Accept rich clipboard data in a terminal | extras/clipboard |
Clipboard |
| Run a Kite app in a browser canvas | backend/wasm |
WebAssembly |
Choosing where state lives
Section titled “Choosing where state lives”- One component owns the value. Keep a filter or expanded row in
kitex.UseState. UseUseStateFuncfor expensive initial values orUseReducerwhen several actions change the same local state. See Hooks. - A subtree needs the same dependency. Use
kitex.CreateContextandUseContextfor a theme, callback, or service. The nearest provider supplies it without passing props through intermediate components. - Several screens read and write application state. Put shared client data in Kites. A team badge can subscribe to just its team’s count; DevTools time-travel lets you inspect and restore earlier snapshots.
- An external source owns the data. Use Wind for cached fetches, request deduplication and cancellation, streams, and mutations. Keep the selected task ID in UI state; let Wind own the fetched task.
For a guided project that combines these ideas, start with Learn Kite.