FujiKit releases open-source Swift SDK and CLI for Fujifilm X cameras

FujiKit is an open-source project on GitHub that bundles three things for Fujifilm X-series cameras: a Swift SDK, a macOS command-line tool called fuji, and a written wire-protocol reference. It is MIT licensed. The README describes it as safe, and builds that claim into the design.
What it does. Over USB, the tool can back up and write the camera's custom film simulation slots, C1 to C7. It can also try a look on the live camera state without touching the saved banks, inspect .dat settings backups offline, and drive the camera's own X-Processor for in-camera RAW conversion. Over camera Wi-Fi it can pull full-size photos without Fujifilm's XApp. The README's examples show the workflow: fuji info and fuji show inspect the connected body, firmware and all C1 to C7 slots (read-only); fuji backup takes a timestamped backup of all 7 custom slots; fuji load reads a recipe JSON file into the slots, backing up first, writing, then reading back every property; fuji look-live and fuji look-restore apply and undo a look on the live camera; fuji import-wifi --last 10 pulls recent photos wirelessly via a Bluetooth LE wake plus camera Wi-Fi; fuji rawconv renders a RAF file with the camera's film-simulation engine without touching C1 to C7; and fuji settings-probe inspects a backup .dat file.
The SDK. It is pure Swift 6 with zero third-party dependencies, using ImageCaptureCore, CoreBluetooth, Network and Foundation. It targets iOS 18+ and macOS 15+ and is a clean Swift Package with no .unsafeFlags, added through Swift Package Manager from version 0.1.0. The README's code example connects with CameraLink.usb(), builds a Recipe (film simulation, grain, color chrome, white balance, dynamic range, highlight, shadow, sharpness, noise reduction and so on) and calls link.load(looks:) with per-slot readback verification. For Xcode Previews, simulators and unit tests, CameraLink.usb() can be swapped for MockCameraLink(), with an identical API and no hardware. Installing the CLI from source is a git clone followed by make install, which embeds a macOS Info.plist for USB, Bluetooth and Local Network permissions. A Homebrew formula is included in Formula/fuji.rb for tap distribution. The camera must be set to USB RAW CONV./BACKUP RESTORE under MENU, NETWORK/USB SETTING, CONNECTION MODE.
The protocol spec. FUJIFILM-PROTOCOL.md documents USB PTP (slot registers D18C to D1A4, gating rules, monochrome skip sets and a quirk where Grain Off reads back as 6/7), the macOS ptpcamerad exclusive-claim behavior, Bluetooth LE GATT tables (basic 4-byte key pairing versus secure pairing in 1.30+, plus chunked zlib backup and restore framing), the FUJIFILMX-BACKUP binary layout and checksum model, and the Wi-Fi PTP/IP gallery session handshake. Every fact in the spec carries an evidence label: VERIFIED-HW, CODE, CITED or HYPOTHESIS. The README invites anyone building Fujifilm tooling in any language (Swift, Rust, Python, Go, C++) to start there.
Safety. The README warns that writing to camera firmware or settings carries real risk if done carelessly, and says FujiKit enforces four non-negotiable invariants in code, detailed in docs/SAFETY.md. First, photos can never be modified or deleted: all import transports are wrapped in ReadOnlyPTP, which throws before transmitting any destructive opcode such as DeleteObject, FormatStore or SendObject. Second, a fresh backup is taken before every write: load and qualify-usb snapshot all seven slots first and refuse to proceed if any slot fails to read. Third, a byte-level RestoreGuard checks that any settings-file restore changes only the chosen slot bytes and the 16-bit checksum relative to a fresh backup from the same serial number. Fourth, strict readback verification: a 0x2001 OK response from the camera is never trusted alone, and every written property is read back and verified. Verified slot writes are allowlisted by exact camera model and firmware, so the tool does not guess wire encodings on an untested body.
Camera qualification. Owners of other bodies can help qualify their camera in about 2 minutes with fuji qualify-usb --qualify-unverified-firmware --out my-camera-record.json. It tests only slot C7, backs up first, verifies readback and restores the original slot. The README asks users to see docs/COMPATIBILITY.md and open an Add Camera issue with the redacted output.
Other details. The README suggests dropping docs/CLAUDE-SKILL.md into a coding agent's skills directory so the agent can plan film-simulation palettes for a shoot and load them into the camera. An offline test suite of 360+ tests runs with make test and needs no camera. The protocol work builds on and credits earlier open-source Fujifilm projects: FilmKit, fuji-bridge, libfuji, furble, fffw and helios. The README states FujiKit is independent and not affiliated with or endorsed by FUJIFILM Corporation.
Key facts
- FujiKit combines a pure Swift 6 SDK with zero third-party dependencies, a macOS CLI called fuji and a written wire-protocol reference for Fujifilm X-series cameras, all MIT licensed.
- Over USB it backs up and writes custom film simulation slots C1 to C7; over camera Wi-Fi it pulls full-size photos without Fujifilm's XApp; it can also run in-camera RAW conversion through the camera's own X-Processor.
- The README says four invariants are enforced in code: read-only photo imports, a fresh backup before every write, a byte-level RestoreGuard, and strict readback verification of every written property.
- Slot writes are allowlisted by exact camera model and firmware; owners of other bodies can run fuji qualify-usb, which tests only slot C7, and submit the result as an Add Camera issue.
- The package requires iOS 18+ and macOS 15+, ships 360+ offline tests and a MockCameraLink for hardware-free development, and is not affiliated with or endorsed by FUJIFILM Corporation.
Why it matters
Fujifilm's X-series cameras keep their film simulation recipes in custom slots, and the wire protocol behind USB, Bluetooth LE and Wi-Fi is documented here in one written reference rather than scattered across community projects. FujiKit pairs that spec with a working SDK and CLI, and labels each fact in the spec with an evidence level (VERIFIED-HW, CODE, CITED or HYPOTHESIS), so a reader can tell tested behavior from guesswork. It builds on earlier open-source work (FilmKit, fuji-bridge, libfuji, furble, fffw and helios) and credits it.
Who it affects
Fujifilm owners who want to back up and load film simulation recipes, preview a look on the live camera, or import photos over Wi-Fi without XApp. Swift developers on iOS 18+ and macOS 15+ can add the package directly. The README also addresses developers building Fujifilm tooling in any language (Swift, Rust, Python, Go, C++), and mentions a skill file for people who want a coding agent to plan and load palettes.
How to use it
Install the CLI from source: clone github.com/maam00/fujikit, then run make install. A Homebrew formula is included in the repository for tap distribution. Set the camera to USB RAW CONV./BACKUP RESTORE mode and plug it in over USB, then run fuji info, fuji show and fuji backup before anything else. Load a recipe with fuji load, or try one live with fuji look-live and undo it with fuji look-restore. For the SDK, add the package through Swift Package Manager from version 0.1.0. The project is MIT licensed. Run make test for the offline suite. To check your own camera, run fuji qualify-usb as described in the README.
How solid is it
The evidence here is the project's own README. The README says the protocol spec labels every fact with an evidence level and that the safety invariants are enforced in code, with 360+ offline tests. The text does not say any independent party audited those safety claims, and it gives no user count or benchmark. The package version shown in the dependency snippet is 0.1.0. The text names no person or organisation; only the GitHub account name maam00 appears in the repository URL.
Risks and caveats
The README itself warns that writing to camera firmware or settings carries real risk if done carelessly. Writes are allowlisted by exact model and firmware, so an untested body needs the qualify-usb step first. Read-only commands (info, show, backup, settings-probe, props --read) are described as working without modifying camera state. The project is not affiliated with or endorsed by FUJIFILM Corporation, and the text does not say Fujifilm reviewed or reacted to it. The text gives no list of supported camera models; it points to docs/COMPATIBILITY.md. The CLI is described as a macOS tool, and the package targets iOS 18+ and macOS 15+.
“Writing to camera firmware/settings carries real risk if done carelessly.”
— FujiKit README