Examples
Two kinds of example: full apps you can clone and run, and short recipes for individual patterns.
Example apps
Section titled “Example apps”Complete, runnable apps wired to the published client SDK:
TypeScript example (Next.js)A camera-control web UI: connect, adjust settings, live view, shoot, browse the SD card.
Python exampleA notebook / data-collection script: connect, snapshot properties, pull live-view frames.
Recipes
Section titled “Recipes”Small, focused snippets for patterns that sit outside the generated client (SSE streams, live-view polling, lifecycle handling):
SSE event consumerReact in real time to propertyChanged, downloadComplete, transferProgress.
Live-view JPEG pollingPull a frame every ~66ms and render it.
Server subprocessSpawn and supervise the native server from your own runtime.
Discovery + reconnectPoll /api/cameras, track which is connected, handle hot-plug.
Retry + backoffExponential backoff for flaky connect and SD card calls.
React hookuseCamera() — bind one camera's connection and property state.