Skip to content

Getting Started

nodemode-ai edited this page Nov 20, 2026 · 2 revisions

Getting Started

Requirements

Tool Version Why
Node 20.19 or newer (22 recommended) the Vite window
Python 3.12 or newer the engine
Rust stable (1.90 or newer) the layout core, which is built from source (install-core stops with a message when Rust is missing; it downloads nothing)
git any cloning the repository; the core has no git dependencies

Linux desktop builds also need the webview packages: sudo apt install libwebkit2gtk-4.1-dev librsvg2-dev patchelf.

Install and boot

git clone git@github.com:nodemode-dev/formdesign.git
cd formdesign
./formdesign install   # engine venv, font library, layout core, frontend
./formdesign boot      # engine on 8196 and the window on 5196 together

On Windows use formdesign.bat install and formdesign.bat boot; every command below has the same name there. The first install compiles FormDesign's own layout crates in native/, which takes a few minutes. ./formdesign doctor checks the toolchain, the installs and the ports.

Every command

Command What it does
./formdesign or boot engine (8196) and window (5196) together
install [--lite] engine, fonts, core and frontend; --lite keeps a core that is already built
install-core build formdesign-core from source with cargo
install-fonts convert the bundled OFL font library into backend/app/fonts
install-desktop PyInstaller, and a check of Rust and the webview libraries
backend, frontend one side only
build, serve build the window into frontend/dist; serve it from the engine on 8196
freeze freeze the engine and copy it and the core into src-tauri/binaries
desktop dev, desktop build run or bundle the desktop app
make, templates the command-line Make pass and the template list (see Agents-and-MCP)
mcp MCP over standard input and output, for Claude Desktop and other MCP clients
mcpb check, mcpb build DIR check the Claude Desktop extension manifest, or write formdesign-VERSION.mcpb into DIR
agents install, agents sync [--check] set up Claude Code, Codex, Cursor and Antigravity (install); regenerate the harness skill's references, write agents/manifest.json and mirror the skills into .agents/skills (sync, which with --check exits 1 and names the file when one is out of date)
doctor, counts [--check], clean [--all], help checks, README code sizes, clean-up, usage

Ports

Service Address Notes
Window (dev) http://localhost:5196 Vite, host: false, strict port; proxies /api and /mcp to the engine
Engine http://127.0.0.1:8196 REST under /api, the window socket at /api/ws, MCP at /mcp
Preview http://localhost:5197 vite preview of the production build
Layout core standard input and output started and supervised by the engine

FORMDESIGN_UI_PORT and FORMDESIGN_ENGINE_PORT move the dev ports; FORMDESIGN_PORT moves the engine.

The data folder

Everything a person makes lives in ~/FormDesign (or FORMDESIGN_DATA_DIR):

Folder Holds
Projects/ saved .fdes documents; Projects/Books/ holds .fdbook books
Templates/ your own templates, any subfolder
Brands/ brand kits as JSON
Queries/ your saved Find/Change queries
Preflight/ your preflight profiles
Libraries/ your libraries as .fdlib files (or FORMDESIGN_LIBRARIES_DIR, to share a folder with others)
Workspaces/, Shortcuts/ your saved workspaces and keyboard shortcut sets
Profiles/ ICC profiles you loaded for proofing
Dictionaries/ Hunspell dictionaries for spelling in languages other than US English, which is built into the core (FORMDESIGN_DICT_DIRS adds more folders)
Intake/ content packs, uploads, PDFs a layout was made from
Exports/ exported files, book PDFs
Fonts/ fonts you add
.cache/ thumbnails, placeholder art, recovery copies

The engine reads backend/.env (never committed; backend/.env.example lists every variable).

First layout in a minute

./formdesign make article.md photo.jpg --brief "a two page newsletter for the Elm Street garden club" --out newsletter.pdf

Or open http://localhost:5196, press Make a layout, drop the same files, write the brief, press Analyse and then Make layout.

Clone this wiki locally