Skip to main content
@alpha-sdk/api is the npm distribution of the Alpha Camera REST API. A single install gives you three things:
  1. The native REST API server binary (CameraWebApp) for macOS, Linux, and Windows.
  2. The camera-server CLI for installing, starting, stopping, and inspecting the server.
  3. A small ServerManager Node.js class for embedding the server lifecycle inside a Node application.
The matching platform binary (@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

After install, the Sony Camera Remote SDK License Agreement prompt appears once. Accept it to unlock the binary.

CLI

Run 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

Pair ServerManager 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.
See the auto-generated API reference for full request and response schemas.

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 at node_modules/@alpha-sdk/<platform>/CameraWebApp (or CameraWebApp.exe on Windows).

Electron-builder

Then in your main process:

Tauri

Drop the binary into src-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 ServerManager methods.
  • Major — breaking changes to the CLI surface or ServerManager API.