Repository navigation
Install
There are two ways to get formcraft: install the desktop app that formcompiler builds and FormPortal delivers, or run it from a clone of the repository. The second is the way to develop it.
Installers are produced for macOS (dmg, macOS 14 or newer), Windows (NSIS, Windows 10 or newer) and Linux (AppImage and deb, glibc 2.35 or newer). FormPortal lists formcraft once a release exists, installs it, opens .fcrft files with it and can connect it to your coding agents (see Agents-and-MCP). No release has been published yet, so until then build it yourself. So far only the Linux build has been built and opened. The release pipeline produces the macOS and Windows builds, and they are newly tested.
On first start formcraft downloads the LGPL build of ffmpeg once from the Form family's formai-binaries releases and checks it file by file, unless another form app already installed one. Preferences, Rendering shows which ffmpeg is in use and can check or download it again. The first window opens a three-step welcome, and the installer carries the starter library (about 43 MB) and the demo projects, see Starter-library-and-demos.
Requirements: git, Python 3.11 or newer (the installer uses Python 3.12 when it is present, since that is the tested version), Node 20.19 or newer. For the desktop window also Rust stable, and on Linux the WebKitGTK 4.1 packages (libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libxdo-dev patchelf libssl-dev build-essential pkg-config).
chmod +x formcraft formcraft_oc_install
./formcraft_oc_install # checks the requirements, then installs the engine and the window
./formcraft boot # engine on 8290 and the window on 5290
./formcraft boot --desktop # the same, in the desktop windowOn Windows use formcraft_oc_install.bat and formcraft.bat boot. ./formcraft_oc_install --check only checks the prerequisites.
./formcraft (formcraft.bat on Windows) is the one entry point. It fans out to the scripts in setup/.
| Command | What it does |
|---|---|
boot [--desktop] |
engine on 8290 (FORMCRAFT_DEV=1) and Vite on 5290 together |
install, install-desktop
|
engine virtual environment and frontend packages; Rust and WebKitGTK checks, PyInstaller, Tauri CLI |
engine, frontend
|
one server only |
build |
production build of the window into frontend/dist
|
freeze |
freeze the engine: a folder in src-tauri/engine on macOS, a sidecar in src-tauri/binaries elsewhere |
desktop build [--config FILE] [--target TRIPLE] |
build the window, freeze the engine, then run tauri build
|
selfcheck |
engine --selfcheck and the frontend typecheck |
version |
every version site, and whether they agree (exit 1 if not) |
mcp |
the stdio server for coding agents, see Agents-and-MCP |
| Service | Address | Notes |
|---|---|---|
| Window (dev) | http://localhost:5290 | Vite with server.host false, proxies /api
|
| Window (preview) | http://localhost:5291 | vite preview |
| Engine (dev) | http://127.0.0.1:8290 | loopback only. The desktop app lets the engine pick a free port |
The data folder holds library, thumbs, downloads, db, settings and logs. Its default is the platform's application data folder (~/Library/Application Support/formcraft, %APPDATA%\formcraft, ~/.local/share/formcraft). Set FORMCRAFT_DATA_DIR or use Preferences, Library and Files to see it. The engine log is logs/formcraft-engine.log.
| Variable | Purpose |
|---|---|
FORMCRAFT_DATA_DIR |
where the library, jobs, settings and logs live |
FORMCRAFT_PORT |
engine port (0 picks a free one) |
FORMCRAFT_DEV |
1 runs the engine in dev mode with the dev window allowed |
FORMCRAFT_FFMPEG_AUTO |
1 lets a dev engine download ffmpeg; frozen builds download by default |
FORMCRAFT_FFMPEG_DIR |
a folder with ffmpeg to use before any other |
FORMCRAFT_STARTER_DIR, FORMCRAFT_DEMOS_DIR
|
where the engine looks for the starter library and the demos, before the app's own folders |
FORMCRAFT_BOOT_WAIT |
seconds boot waits for each server (default 60) |
FORMCRAFT_LOG_LEVEL, FORMCRAFT_LOG_BYTES
|
engine log level and rotation size |
FORMCRAFT_PARENT_PID |
an engine exits when this process does (set by the shell and by formcraft mcp) |
Keys are never read from the environment or from a file in the repository. See Providers-and-keys.