Workspace; documents, databases and realtime editing for people and agents.
Pages, database views, comments, sharing and publishing,
in one Go binary with one SQLite file. Self-hosted, no account elsewhere.
Download form.md on formai.studio · Latest release · Run it from source

An original report page: a cropped photo cover, a callout and a live database view, in the editor.
Features · In the box · Agents · Under the hood · Download · Run from source
| A static Go binary with the web client embedded and one SQLite file beside it. No database server. | Every page is a CRDT the server applies itself, so an API edit merges into what a person is typing. | Many database views on one query engine, with relations, rollups and formulas. | An MCP server with OAuth, a REST API and a command line drive the same workspace. |
| Block editor · slash menu · callouts · toggles · tables · columns · code · mentions · backlinks | Table · board · list · gallery · calendar · timeline · form · heatmap · graph · charts · automations | Opens: Markdown · HTML · CSV · ENEX · OPML · Word · Excel · Saves: Markdown · HTML · PDF · CSV |
The window's commands, the REST API and the MCP server all act on the same pages and databases.
./form-md cli list # every command in the open window
./form-md cli describe ID # one command with its typed parameters
./form-md mcp # MCP server on stdio for Claude Code, Codex, Cursor and Antigravity.mcp.json and .cursor/mcp.json are already wired in this repo. The server also answers MCP over HTTP at /mcp and publishes its REST reference at /api/docs. See AGENTS.md.
form.md is a server you sign in to, so what an agent may do is set by its credential, not by a question in the window. A personal API token or an OAuth grant is either read and write or read only, and can be limited to chosen workspaces; a read-only credential sees the tools that change nothing and is refused anything that changes the workspace. ./form-md agents install registers form.md with Claude Code without putting the token on a command line: the setting it writes names ${FORMMD_MCP_TOKEN}, which Claude Code reads from its own environment when it connects, so keep that variable exported where you start claude. agents/manifest.json lists every MCP tool, which ones are read-only, the skills and the transports; ./form-md agents manifest rewrites it and ./form-md agents manifest --check says when it is out of date.
form.md loads Form extensions (Form Extension Contract, API 1): install them with FormPortal, or run a folder from form.ext. They appear under Extensions in the sidebar (and the desktop menu bar), in the Extensions panel on the right and in Find a Command; each runs in a sandboxed frame and changes the page only through form.md's own doc.* commands, as one undo step, after you allow it. Extensions are installed, allowed and run only by the person in the window; agents and scripts are refused the extension commands. The API for extension authors is docs/EXTENSIONS.md; the wiki page is Extensions.
- Go server: pure-Go SQLite, a Yjs-compatible CRDT in Go, one writer connection and a query-only reader pool.
- Web client: vanilla TypeScript and Vite with ProseMirror and Yjs, no UI framework, embedded into the binary.
- Encrypted at rest: an XTS-AES-256 SQLite VFS and AES-256-GCM uploads, with a key kept outside the data directory.
- Tested: Go tests beside the code they cover (
go test ./...), plus a TypeScript check (./form-md check). - Themes: dark and light profiles with accent, density and high contrast in Preferences, including AMOLED Black, a true-black dark theme for OLED screens.
| Platform | Download | Release |
|---|---|---|
| macOS | Download form.md for macOS | form.md releases on FormCompiler |
| Windows | Download form.md for Windows | form.md releases on FormCompiler |
| Linux | Download form.md for Linux | form.md releases on FormCompiler |
All form.md builds are compiled and released from FormCompiler; this repo holds the source.
The desktop app signs you in as the owner by itself, with no password. To open the same workspace in a browser at http://127.0.0.1:8750, first set a password in the app under Settings, Profile (no current password is asked the first time), then sign in with the email shown there, owner@localhost until you change it.
Three offline browser demos, each a double click on its index.html, on real public-domain and freely licensed material or your own files. No server, no network.
demo/, editor and databases: edit Markdown pages in the real editor core and work a database in table and board views (credits indemo/CREDITS.md).demos/views/, database views: one dataset of US crewed spaceflight as table, board, gallery, list, calendar, timeline, chart and heatmap, with relations, rollups and formulas (credits indemos/views/CREDITS.md).demos/publish/, writing and publishing: the whole window on a long illustrated page with comments, page history, a published page view and Markdown and HTML export (credits indemos/publish/CREDITS.md).
Prefer it in your browser, or want to contribute? Run the web UI straight from this repo.
Requires: Go 1.26 or newer and Node.js 22 or newer.
git clone git@github.com:nodemode-dev/form.md.git
cd form.md
./form-md_oc_install # installs Go modules and the web client's packages
./form-md # server at http://127.0.0.1:8750, web client at http://127.0.0.1:5750./form-md desktop dev opens the desktop window instead, and ./build_app --server-only compiles bin/form-md. On Windows use form-md_oc_install.bat and form-md.bat. The first visit shows a set-up screen that creates the owner account.
| Variable | Purpose |
|---|---|
FORMMD_ADDR |
Listen address, default 127.0.0.1:8750 |
FORMMD_DATA |
Data directory for the database and uploads, default ./data |
Important
Status: released. form.md is built and bundled for macOS, Windows and Linux and has been tested on all three. Instance-wide settings such as mail and single sign-on live in the app's Instance settings, and the wiki in .docs/wiki covers install, TLS, backups and operations.
Host it yourself: .docs/SELF_HOSTING.md takes your own copy of form.md to your own domain for a small team, step by step: one VM, automatic HTTPS, encrypted data, accounts by invitation, with the scripts in deploy/gcp.
Contributing: branch from main, keep changes to source here, and leave packaging and releases to FormCompiler. See BRANCHING.md and AGENTS.md.
| Path | What it is |
|---|---|
cmd/form-md/ |
Entry point and subcommands (serve, backup, restore, doctor, encrypt, keygen, admin, mcp, cli) |
internal/ |
The Go server: pages, documents, databases, search, auth, sharing, MCP, transfer |
web/ |
The TypeScript and Vite client |
src-tauri/ |
The desktop shell around the server binary |
| Maintainer | Role |
|---|---|
| @nodemode-ai | Owner |
| @gbarnai | Co-owner |
Code owners are set in .github/CODEOWNERS.
form.md is licensed under the Apache License 2.0 (LICENSE, SPDX Apache-2.0). Copyright 2026 NodeAgentc, Inc. Third-party notices: NOTICES.md, which the binary also serves at /notices.
Screenshot content: a cropped CC0 photo from Poly Haven; the page and data are original.


