Skip to content
nodemode-devPublic

About

FormTxt - instead of Word & Google Docs: the word processor from the FormAI family of apps. Real pages or pageless, a ribbon, .docx & .odt round trips, & Claude Code, Codex or Cursor editing through the same commands. Runs locally, no account. Free & open-source under Apache-2.0.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

449 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

FormTxt icon: the Form family document mark

FormTxt

Word processing; the word processor of the Form family.
Real pages or pageless, a full ribbon, .docx and .odt round trips,
review, references and charts. Local-first, no account, and yours.

version 0.39.1 TypeScript and Vite Python and FastAPI macOS, Windows, Linux License: Apache-2.0 Status: released

Download FormTxt on formai.studio · Run it from source

Version 0.39.1 · Apache-2.0 · macOS, Windows, Linux (browser, or the desktop app built with ./build_app)


FormTxt showing the built-in Annual Report template on a dark page: the ribbon, an outline of headings, a harbour photo and a bar chart of revenue by quarter
The Annual Report template with a photo and a chart added, shown with the Dark Page view option.

Features · In the box · Agents · Under the hood · Download · Run from source


Real pages

Paper size, margins, headers, footers, columns and sections lay out line by line, or switch to a pageless view.

Word compatible

Open and save .docx, .dotx, .odt, .rtf, .html and Markdown, keeping comments and tracked changes.

Local-first

Documents live in a folder on your computer. The engine listens on this machine only, and no account is needed.

Agent-ready

Every editor command also runs from a terminal with ./formtxt cli, the same commands a person uses.

Features

A table of five meadow plants with an accent header row and the table design and layout tabs open
A table with an accent header, banded rows and table tabs.

Tables that behave

Merge and split cells, repeat header rows across pages, sort, and use formulas such as =SUM(ABOVE).
A bar chart of flowering stems per square metre below a bulleted packing list and a tracked insertion
A chart, a list and a suggested edit on page two.

Charts, diagrams and equations

Insert charts with live data, IntelligentArt diagrams, Mermaid diagrams and LaTeX equations.
The Review pane beside the page showing a comment thread on the sentence about closing the gate
The Review pane with a comment thread on the page.

Review with others

Comments with replies and reactions, suggesting mode that tracks every edit, and compare and combine.

Ribbon and keyboard

The ribbon has tabs, contextual tabs, Alt key tips and a command search (Alt+Q). Shortcuts follow Word and Google Docs and can be changed.

References

Tables of contents, footnotes, citations with a bibliography, captions, cross-references and an index.

Everything in the box

39 templates in 11 categories

Recent documents · Pin and duplicate · Trash with restore · Building blocks

13 chart types, 12 diagram layouts

Column · Line · Doughnut · Gauge · Heat map · Process · Cycle · Venn

Formats

Opens: .docx, .dotx, .odt, .rtf, .html, Markdown, .doc, PDF · Saves: .docx, .odt, .rtf, .html, Markdown, EPUB, PDF · Native: .ftxt

Themes: dark and light themes for the window, among them High Contrast and AMOLED Black, which is true black for OLED screens. Pick one in Preferences, under Interface, or turn on Match System Appearance to follow the computer's light or dark setting. Dark Page on the View tab darkens the page itself.

Built for agents

The editor's commands live in one catalogue, and the window and the terminal call the same ones.

./formtxt cli list                                                  # the command catalogue
./formtxt cli describe tools.stats                                  # one command and its arguments
./formtxt cli run edit.replaceAll find=draft replace=final          # run a command in the open window, as an outside agent
./formtxt mcp                                                       # MCP server on stdio for Claude Code, Codex, Cursor and Antigravity
./formtxt agents install                                            # register that server and the formtxt-driving skill for this user

Mail merge and list reports

  • Mail merge fills merge fields from a CSV file, an Excel sheet, pasted rows or a database file: in Mailings > Mail merge, pick a SQLite file, a table and one SELECT. The file is opened read-only and the query is kept with the document, so merge.refresh reads it again.
  • List reports: mark a table row to repeat (merge.repeatRow) and finish the merge as a list (merge.finish mode=list) to get one document with a row per record. Group it by a column (groupBy=order_id) for a page per group, and give a merge field a total (sum, count, average, minimum or maximum) from the Total menu.
  • report run merges a template with a database query in the engine and writes a PDF, .docx or .ftxt, with no window open:
./formtxt report run template=<id> db=/path/orders.db sql="select * from order_items" out=/path/invoice.pdf

It asks the same Allow outside agents question as the agents below, because it saves a file where it is told; an existing file is kept unless you add overwrite=true.

The commands need the window open, and the first one an outside agent runs asks you in the window: Allow outside agents? Allow lets outside agents run commands from then on; Don't Allow refuses. Only the FormTxt window can change that choice, with the question or with Allow outside agents in Preferences, under Privacy. Agents and other programs follow it, and ./formtxt cli run and ./formtxt report run count as outside agents. If the saved choice is changed outside the app, FormTxt asks again (the check uses your system password store; without one it is skipped). The terminal, Claude Code, chat and cloud storage commands stay yours and are refused to agents. A script that drives FormTxt uses ./formtxt cli run, ./formtxt report run or the MCP server, because every other route that changes something answers only the window. Details in SECURITY.md.

.mcp.json, .codex/config.toml and .cursor/mcp.json are already wired in this repo. See AGENTS.md and CLAUDE.md.

Under the hood

  • Frontend: vanilla TypeScript and Vite, with ProseMirror editing and its own page layout.
  • Engine: Python and FastAPI own the .ftxt model, file exchange, proofing and exports.
  • Desktop: a Tauri 2 shell around the same UI, with the engine frozen as a sidecar.
  • Format: .ftxt is a zip of document.json and media/; the contract is docs/FORMAT.md.
  • Tested: backend tests in backend/tests (library, exchange, versions, format, boot) and a window test in frontend/tests/window.

Download

Platform Download Release
macOS Download FormTxt for macOS FormTxt releases on FormCompiler
Windows Download FormTxt for Windows FormTxt releases on FormCompiler
Linux Download FormTxt for Linux FormTxt releases on FormCompiler

All FormTxt builds are compiled and released from FormCompiler; this repo holds the source.

Demo

demo/index.html is an offline demo that opens from file:// or any static server and runs the real FormTxt window: A report under review, an annual report with suggested edits by two people, comments, a chart and a table. The document lives in the page for that tab; what needs the engine (new documents, templates, other formats, export, proofing, versions, sharing, the assistant and the terminal) says so. See demo/README.md.

The same three demos open inside the app from Home, from Help > Demos, or with the demo.review, demo.paper and demo.newsletter commands, each as a new document in your library.

Run it from source

Prefer it in your browser, or want to contribute? Run the web UI straight from this repo.

Requires: Python 3.12 or newer and Node 20.19 or newer.

git clone git@github.com:nodemode-dev/formtxt.git
cd formtxt
./formtxt_oc_install      # backend venv and frontend packages
./formtxt                 # engine on 127.0.0.1:8210, web UI at http://localhost:5210

./formtxt desktop dev opens the desktop window instead, and ./build_app builds the installable desktop app.

On Windows use formtxt_oc_install.bat then formtxt.bat. The engine listens on 127.0.0.1:8210 only; FORMTXT_UI_PORT, FORMTXT_ENGINE_PORT and FORMTXT_DATA_DIR (default ~/FormTxt) override the ports and the library folder.

Important

Status: released. FormTxt is built and bundled for macOS, Windows and Linux and has been tested on all three.

Contributing: branch from main, keep changes to source here, and leave packaging and releases to FormCompiler. See AGENTS.md and CLAUDE.md.

Repository

frontend/ is the web UI, backend/ the FastAPI engine and its tests, src-tauri/ the desktop shell, setup/ the install, boot and build scripts, and docs/ the format contract and images. Agents: CLAUDE.md, AGENTS.md.

Maintainers

Maintainer Role
@nodemode-ai Owner
@gbarnai Co-owner

Code owners are set in .github/CODEOWNERS.

License

FormTxt is licensed under the Apache License 2.0 (LICENSE, SPDX Apache-2.0). Copyright 2026 NodeAgentc, Inc. Third-party notices: NOTICE.md (what each component is and why) and THIRD-PARTY-NOTICES.txt (their full licence texts).

Screenshot content: a CC0 photo from Poly Haven and an original sample document.

Microsoft, Word and Office are trademarks of the Microsoft group of companies. Google Docs and Antigravity are trademarks of Google LLC. FormTxt is not affiliated with or endorsed by Microsoft or Google; the names describe file formats, key sets and compatibility only. Claude Code, Codex and Cursor are trademarks of Anthropic, OpenAI and Anysphere respectively; they and Antigravity are named only as MCP clients FormTxt works with.

About

FormTxt - instead of Word & Google Docs: the word processor from the FormAI family of apps. Real pages or pageless, a ribbon, .docx & .odt round trips, & Claude Code, Codex or Cursor editing through the same commands. Runs locally, no account. Free & open-source under Apache-2.0.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages