Skip to main content
Get startedSlate compared with gphoto2 and the camera makers' SDKs

Slate, gphoto2 and the camera makers' own SDKs all let a program control a camera from a computer. They differ in language, in what you install, in which cameras they reach and in how a setting is named. This page sets them side by side and says when each of the others is the better choice. It also covers other JavaScript options such as tethr and node-gphoto2, and maps gphoto2 commands to their Darkgrade equivalents.

What this page says about the other products was checked against each maker's own pages on 3 December 2026, and every row links to its source. They change: follow the link for the current state.

At a glance

LanguageWhat you installRuns on
SlateTypeScript, for Node.jsOne package, @darkgrade/slate. Not on npm yet: you build it from source. Nothing from a camera maker.macOS and Linux with Node.js 22.18 or later. Not tested on Windows.
gphoto2 and libgphoto2A C library, with the gphoto2 command-line tool. Its README lists bindings for Java, Python, C#, Go, Rust, Node.js, Ruby and Crystal.The library and its tools, from your system's packages or built from source.“Most Unix-like platforms”: Linux, FreeBSD, NetBSD and macOS. Its README says Microsoft's operating systems are not supported.
Sony Camera Remote SDKA native library with an API reference and C++ sample code.The SDK, which you apply to Sony for by region. Version 2.02.00 was released on 10 June 2026.macOS, Windows 11 on Intel or AMD processors, and Linux on 64-bit x86, ARMv8 and 32-bit ARMv7.
Canon EDSDKA C-based library, used from C++ or C#.The SDK, after you register with Canon's developer programme.Windows, Mac and Linux.
Canon CCAPIAny language that can make web requests: the camera itself serves an HTTP API.Nothing on the computer; you get the API through Canon's developer programme.Any platform.
Nikon's SDKsA library module with a command specification.An SDK for your camera model (one covers the Z series), after an application to Nikon. Nikon says it gives no technical support for them.Stated with each SDK.
Brands in one APIUSB and Wi-FiNames and valuesCommand line and MCP
SlateSony, Canon and Nikon: 97 cameras. Other PTP cameras get the standard basics.USB is the complete path. Wi-Fi is partial: Canon and Nikon over PTP/IP, a Sony through Sony's SDK.One name and one spelling on every brand (setIso('ISO 800')), typed in TypeScript, and each setter resolves to the value the camera read back.Both: every operation is also a darkgrade command and an MCP tool.
gphoto2 and libgphoto2Many makers: 3,013 cameras and media players in libgphoto2 2.5.34, where supported means able to download images. Remote control is listed separately, by camera.USB, PTP/IP and serial ports.Configuration entries you list with --list-config. Their names differ by brand: the remote-control page gives entries that exist only on Canon, or only on Canon and some Nikon cameras.A command line, gphoto2. No MCP server in the project.
Sony Camera Remote SDKSony only.USB, wired LAN and Wi-Fi, depending on the camera.Sony's own.The kit is a library, a reference and sample code.
Canon EDSDKCanon only.USB.Canon's own.The package is libraries, documents, headers and sample applications.
Canon CCAPICanon only, on cameras that support it.Wi-Fi. Canon U.S.A. adds Ethernet on select cameras.Canon's own.An HTTP API.
Nikon's SDKsNikon only.Stated with each SDK.Nikon's own.A library and a specification.

When to choose the other one

gphoto2 and libgphoto2

Choose gphoto2 when your camera is not a Sony, Canon or Nikon, when it is an older or less common model, or when you need the widest reach: its list has thousands of models from many makers, against Slate's 97 from three. Choose it when you work in C, Python, Go or Rust, when you want a package your Linux distribution already ships, or when you build for a BSD system. It has also been in use for many years, and Slate is in alpha. Choose Slate when you write TypeScript, when you want one typed name for a setting on all three brands, or when you want the same operations as MCP tools for an AI app.

Sony Camera Remote SDK

Choose Sony's SDK when you build only for Sony cameras and want the maker's own interface, when you need Windows, or when you need a Sony over Wi-Fi or wired LAN as a first-class path. It also follows Sony's releases: version 2.02.00 added a new body. Slate itself uses this SDK for one thing, a Sony over Wi-Fi, through a bridge program you install yourself. Choose Slate when the same code must also run a Canon or a Nikon, or when you would rather not install a native SDK for USB.

Canon EDSDK

Choose EDSDK when you build only for Canon cameras over USB and want Canon's own library, when you need Windows, or when your application is written in C++ or C#. Canon publishes compatibility charts for it, and its developer programme answers questions. Darkgrade does not use EDSDK: Slate speaks Canon's extensions to PTP itself. Choose Slate when you want Sony and Nikon behind the same calls, or a library you add to a Node.js project.

Canon CCAPI

Choose CCAPI when the camera is on a network, not a cable, and when your program runs somewhere a USB library cannot, such as a phone: it needs only web requests. It works on the Canon cameras that support it. Darkgrade does not use CCAPI. Over a network Slate speaks PTP/IP to a Canon, with partial support.

Nikon's SDKs

Choose Nikon's SDK when you build only for Nikon cameras and want the maker's own modules, or when your camera is a Nikon DSLR: Nikon lists SDKs for bodies such as the D850 that are not on Slate's list of Z cameras. Choose Slate when you want one API across brands, or TypeScript.

Other JavaScript options

Three JavaScript projects also control a camera, and digiCamControl does the job on Windows. What this section says about them was checked against each project's README, repository and npm page on 4 December 2026.

What it isWhat you installCameras and maturity, in its own words
tethr“A JavaScript/TypeScript library designed to control USB-connected digital cameras directly from browsers”, built on the WebUSB API.npm install tethr. Nothing else: the browser supplies USB.Vendor-specific support for the Canon EOS R5, Panasonic S5, DC-G9M2 and DC-S9, Sigma fp and fp L and Ricoh Theta S, and a webcam fallback. Other cameras get the standard PTP properties only. “The project is in the early stages of development and lacks complete documentation.”
node-gphoto2 (gphoto2 on npm)“A Node.js wrapper for libgphoto2.”libgphoto2 2.5, pkg-config and the clang compiler, then npm install gphoto2.The cameras gphoto2 supports. Its README lists Node.js 10, 12 and 13. Version 0.3.2 was published in April 2020.
@tsed/gphoto2-driver“A Node.js wrapper for libgphoto2 written in TypeScript.”libgphoto2 2.5, then npm install @tsed/gphoto2-driver.The cameras gphoto2 supports. Its README asks for Node.js 12 and says the package “isn't compatible with Node.js 13 and higher version”. Version 3.2.0 was published in April 2022.
digiCamControlA camera remote control application written in C#, with a library, CameraControl.Devices, described as a “Library to control Canon,Sony,Nikon DSLR cameras”.A Windows installer (.msi) from its releases, or the library, which targets .NET Framework 4.6.Canon, Sony and Nikon, by the library's description. Not a JavaScript project.

Slate needs no libgphoto2, but it is not free of native code: it reaches USB through the usb package, which is a native module.

tethr

Choose tethr when your code runs in a web page: it talks to the camera over WebUSB, with no library to install on the computer. Choose it when your camera is one of the Panasonic or Sigma bodies it lists, which are not on Slate's list. Choose Slate when your code runs in Node.js, when your camera is a Sony or a Nikon, or when you want the same operations as a command line and MCP tools.

node-gphoto2 and @tsed/gphoto2-driver

Choose one of these when you need gphoto2's reach, thousands of cameras from many makers, from a Node.js program, and you can install libgphoto2 and run the Node.js versions their READMEs name. node-gphoto2 reads and sets gphoto2's configuration entries, whose names differ by brand. Choose Slate when you want a current Node.js, typed methods with one name per setting, and no libgphoto2 to install.

digiCamControl

Choose digiCamControl when you build for Windows, in C# or another .NET language. Choose Slate when you build for macOS or Linux, in TypeScript.

gphoto2 commands and their Darkgrade equivalents

If you know the gphoto2 command line, this table gives the darkgrade command and the Slate method that do the same job. The gphoto2 column follows its manual and its remote control page, read on 4 December 2026. Darkgrade names a setting once for every brand, so one command stands in for a configuration entry whose name changes by camera.

gphoto2darkgrade commandSlate method
--auto-detectdarkgrade camerasCamera.discover()
--summarydarkgrade camera get-infogetInfo()
--list-config, --list-all-configdarkgrade camera get-capabilitiesgetCapabilities()
--get-config isodarkgrade camera get-isogetIso()
--set-config iso=800darkgrade camera set-iso 'ISO 800'setIso('ISO 800')
--capture-imagedarkgrade camera take-phototakePhoto()
--capture-image-and-downloaddarkgrade camera take-photo --destination computerOnlytakePhoto({ destination: 'computerOnly' })
--capture-image-and-download --keepdarkgrade camera take-photo --destination computertakePhoto({ destination: 'computer' })
--capture-previewdarkgrade camera get-live-view-framegetLiveViewFrame()
--list-filesdarkgrade camera list-medialistMedia()
--get-filedarkgrade camera download-media <id>downloadMedia(id)
--wait-event=10sdarkgrade camera watch --duration 10son('settingsChanged'), on('mediaAdded')
--set-config manualfocusdrive=…darkgrade camera nudge-focus near smallnudgeFocus('near', 'small')
Movie record: --set-config movie=1, then movie=0, on a Nikondarkgrade camera start-recording, then darkgrade camera stop-recordingstartRecording(), stopRecording()

Like --capture-image, take-photo leaves the photo on the card. gphoto2 removes a downloaded photo from the card unless you pass --keep, which is why the two download rows differ. Each command links to its page from the command reference.

Four gphoto2 features have no single Darkgrade equivalent:

  • --capture-movie to standard output. gphoto2 streams the live picture to a pipe. get-live-view-frame and getLiveViewFrame() return one frame per call, so a stream is a loop in your own code.
  • --capture-tethered in one command. gphoto2 waits for the camera's shutter button and downloads each new photo. watch reports that a new photo landed, and downloading it is a second step: Save each photo to a folder as you shoot shows it in Slate.
  • -I and -F, interval and frame count. take-photo takes one photo. Repeat it from a shell loop or your own code.
  • --delete-file and --delete-all-files. Darkgrade has no command or method that deletes a file from the card.

What Slate does not do

  • Windows. Slate has not been tested on Windows.
  • A published package. Slate is not on npm yet, and it is in alpha: names and behaviour can change between releases.
  • Other makers in full. Fujifilm, Panasonic, OM System, Leica and Sigma cameras get the standard basics only, with no live view, video, autofocus or zoom.
  • Wi-Fi in full. USB is the complete path. Studio, MCP and the CLI connect over USB only.

What Slate adds

  • One vocabulary. A Sony Creative Look, a Canon Picture Style and a Nikon Picture Control are one setting, Look, with one name and one spelling per value. The Vocabulary lists every name beside each brand's own word.
  • Capabilities before commands. getCapabilities() says what the connected camera can do right now, and why not.
  • Three error classes. A call fails as unsupported, refused or outcome unknown, so your code knows whether a retry is safe.
  • Three more ways in. The same operations are a Mac app (Studio), MCP tools for Claude and Cursor, and a command line.

Next

⌘I