Repository navigation
Getting Started
Node 20.19 or newer (22 recommended), Python 3.12 or newer, git. ffmpeg on the PATH for video export, slideshows and graded video. For the desktop app, Rust stable and the Tauri 2 system packages for your OS. For tethering, gphoto2 (macOS, Linux) or digiCamControl (Windows).
./formlit install # engine with ONNX Runtime, then the frontend; --lite skips the AI extra
./formlit boot # engine on 127.0.0.1:8390 and the frontend on localhost:5390On Windows use formlit.bat with the same commands.
| Command | What it does |
|---|---|
./formlit or boot
|
Boot the engine and the frontend together |
install [--lite] |
Install the engine, the AI extra and the frontend |
install-ml |
Install the optional AI runtime extras |
install-desktop |
Install PyInstaller and check the Rust and Tauri toolchain |
backend, frontend
|
Boot one side only |
build |
Production build of the frontend into frontend/dist
|
serve |
Serve the built frontend from the engine on 127.0.0.1:8390 |
freeze |
Freeze the engine into the Tauri sidecar binary |
desktop dev, desktop build
|
Run or bundle the desktop app |
mcp |
The MCP server over stdio (starts the engine if needed) |
claude [args] |
Claude Code in this terminal with formlit's MCP tools attached; it is an outside agent and goes through the access prompt |
agents install |
Register formlit with Claude Code, Codex, Cursor and Antigravity |
agents sync [--check] |
Regenerate the driving skill's tool, preset and template references, write agents/manifest.json (the tools, which are read-only, the skills and the dock) and mirror the skill into .agents/skills; --check exits 1 when any of them has drifted |
cli <command> key=value ... |
Run any engine command from the terminal; ./formlit cli list lists them. Running one goes through MCP as an outside agent, so it follows Agent access in Preferences (with Ask me it waits for Allow in the window) |
doctor |
Check the toolchain, the installs and the ports |
counts [--check] |
Print the product code sizes (tests excluded); --check compares them with a sentence in the README, which the README does not carry now, so it exits 1 |
preflight FILE.pdf ... |
Check book PDFs against PDF/X-1a with the open-source preflight Ruby gem, installed on first use into backend/build (needs Ruby) |
i18n export LANG FILE.csv, i18n import LANG FILE.csv
|
Hand a language's strings to a native reviewer as CSV (english, current, corrected, note) and load their corrections; they go to keys9.json and locales9, which load last |
clean [--all] |
Remove build output (--all also the venv and node_modules) |
| Service | Address |
|---|---|
| Frontend (dev) | http://localhost:5390, bound to localhost only, strict port |
| Engine |
http://127.0.0.1:8390 (FORMLIT_PORT; 0 picks a free port, and the desktop sidecar uses one only when 8390 is already taken) |
| Preview | http://localhost:5391 |
~/Formlit by default (FORMLIT_DATA_DIR). It holds Catalog/formlit.fldb (SQLite) with its Previews/ and Masks/ beside it, Presets/, Profiles/ (imported .cube and Adobe .xmp looks and .dcp camera profiles, each with a small JSON file for its name), Plugins/ (publish plug-ins), Models/ (local AI models, each pinned to its SHA-256) and Exports/. File > New Catalog and Open Catalog switch catalogs; each keeps its previews and masks in its own folder.