Installation
One-line install (Linux, macOS)
Installs system dependencies (Linux), the ferridriver binary, and
Chromium for Testing.
Options:
FERRIDRIVER_INSTALL_DIR (default $HOME/.ferridriver/bin) controls the
binary destination.
Rust library
ferridriver-test, ferridriver-bdd, ferridriver-expect,
ferridriver-mcp, and the matching *-macros crates are published
alongside.
CLI binary
Node.js and Bun
The platform binary is pulled in via optionalDependencies:
Browsers
Download browser binaries into the local cache. Supported targets:
chromium, chromium-headless-shell, firefox, webkit.
Override the cache location with FERRIDRIVER_BROWSERS_PATH. Defaults:
- Linux:
~/.cache/ferridriver/ - macOS:
~/Library/Caches/ferridriver/ - Windows:
%LOCALAPPDATA%/ferridriver/
WebKit backend
The WebKit backend speaks Playwright's WebKit Inspector protocol over
pw_run.sh. The binary is discovered in this order:
FERRIDRIVER_WEBKIT, pointed at a Playwright WebKit checkout containingpw_run.sh, or- the Playwright cache (
npx playwright install webkit) — ferridriver picks it up automatically, or - the ferridriver cache, populated by
ferridriver install webkit.
WebKit is available on Linux and macOS only (the --inspector-pipe
transport relies on a Unix fork/dup model). It is not native WKWebView.
System dependencies
No build-time system libraries are required for the Rust crates beyond a
working linker and pkg-config (Linux).
Runtime dependencies:
- Linux video recording (
--video) — installffmpeg. - Firefox backend (
bidi) — install Firefox (apt,brew,pacman); ferridriver does not bundle it. - WebKit backend — Playwright WebKit binary as above.
Platform support
The prebuilt ferridriver CLI binary ships for Linux x86_64 / aarch64
(musl) and macOS x86_64 / arm64. There is no prebuilt Windows CLI binary
(cdp-pipe's fd 3/4 transport and signal handling are Unix-only); build
from source if you need other targets.
The @ferridriver/node NAPI binary ships for macOS arm64 and Linux
x86_64 / aarch64 (glibc).
The CDP backends (cdp-pipe, cdp-raw) and the Firefox bidi backend
run on Linux and macOS. The webkit backend runs on Linux and macOS
only.