@alpha-sdk/api is the npm distribution of the Alpha Camera REST API. A single install gives you three things:
- The native REST API server binary (
CameraWebApp) for macOS, Linux, and Windows. - The
camera-serverCLI for installing, starting, stopping, and inspecting the server. - A small
ServerManagerNode.js class for embedding the server lifecycle inside a Node application.
@alpha-sdk/darwin-arm64, @alpha-sdk/linux-arm64, @alpha-sdk/linux-x64, @alpha-sdk/win32-x64) is pulled in automatically as an optionalDependency.
ServerManager is a Node.js convenience class, not a separate SDK. Python and Swift clients do not ship a ServerManager equivalent. From those languages, run camera-server start, spawn the binary as a subprocess, or connect to a server already running elsewhere on the network.Install
CLI
camera-server with no arguments to launch the interactive TUI.
ServerManager (Node.js)
A small class for embedding the server lifecycle inside a Node, Electron, or Tauri application.Constructor options
Methods
End-to-end example
PairServerManager with the TypeScript Client SDK — start the server, connect to a camera, change a setting, fire the shutter, list and download the resulting photo, then disconnect:
Integration patterns
Health and control endpoints
For TypeScript projects, use
ServerManager plus the published client and example patterns instead of calling these endpoints directly in application code.Server status
GET /api/server/status returns server version, uptime, platform, and camera counts. ServerManager uses this endpoint to confirm the server is ready.
Server logs
GET /api/server/logs returns buffered server log output. Query params: lines (default 100), level (default info).
Shutdown
POST /api/server/shutdown initiates graceful shutdown: disconnects all cameras, closes open SSE streams, then exits. ServerManager.stop() calls this before falling back to SIGTERM.
Embedding in Electron or Tauri
The bundled binary lives atnode_modules/@alpha-sdk/<platform>/CameraWebApp (or CameraWebApp.exe on Windows).
Electron-builder
Tauri
Drop the binary intosrc-tauri/binaries/CameraWebApp-<triple> and declare it as a sidecar in tauri.conf.json:
Versioning
@alpha-sdk/api follows SemVer.
- Patch — bug fixes, bundled-binary updates, playground bundle refreshes.
- Minor — new CLI commands, new
ServerManagermethods. - Major — breaking changes to the CLI surface or
ServerManagerAPI.

