Skip to content

About

FormLedger - instead of QuickBooks & Xero: the bookkeeper, ledger & inventory manager app from the FormAI family of apps. Sales, purchases, payments & stock as numbered documents on one double-entry ledger, w/ a CLI & HTTP API agents can drive. Runs locally, no account. Free & open-source under Apache-2.0.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

706 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

FormLedger icon

FormLedger

Books for a small company; sales, purchases, payments and stock in one ledger.
Every sale, purchase, payment and stock movement is a numbered document
that posts to shared ledgers for money and stock. Local-first, on your own machine,
and scriptable from the command line.

version v0.15.1 Go 1.26+ TypeScript and Vite License: Apache-2.0 Status: early

Download FormLedger · Run it from source


FormLedger with a posted sales invoice for a customer open: four lines with quantities, unit prices and sales tax, a subtotal of 6,672.00, tax of 533.76 and a total of 7,205.76 USD, the date and due date shown whole, one row of buttons along the foot, the menu bar along the top and the sidebar of selling, buying, ledger and setup screens at the left
A posted sales invoice: the lines, the tax and the total the server worked out, with the menu bar in the window. The page follows your GitHub theme; the app has dark and light themselves.

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


One ledger

Documents post to a general ledger and a stock ledger, and a trial balance and the stock check say whether the books agree.

Whole chains

Quote, order, invoice and payment on the selling side; order, receipt, bill and payment on the buying side.

Roles and audit

Six roles, invitations by the owner, and an audit trail the database will not let anyone edit.

Scriptable

A command line and an HTTP API drive the same books as the window.

Features

The Trial balance report as of a day, with a Balanced badge, nine accounts listed with their debit or credit and equal debit and credit totals of 185,405.84
A trial balance of a sample company: nine accounts, and debits equal credits.

The ledger core

A chart of accounts, fiscal years and period locks, and journal entries that post and cancel by reversal. A trial balance, general ledger, profit and loss and balance sheet read from it. See docs/ledger/.

Selling

Customers, items and tax rates, then a quote, an order, an invoice that posts to the ledger, payments with part payment, and receivables aging. Document templates, built-in and your own, start a quote, order or invoice from the Templates screen. See docs/selling/.

Buying and stock

Suppliers, purchase orders, goods receipts into a warehouse, purchase invoices, payments made and payables aging. A stock ledger valued at moving average cost, and delivery notes that take stock out and post its cost. See docs/buying/ and docs/stock/.

People and audit

Every user has one role, the owner invites the others, and an audit trail records who did what. See docs/ROLES.md.
The Home start screen with six cards for the first things to do, three figures for what customers owe, what is owed to suppliers and cash and bank, and the last sales and purchase invoices
Home, from 0.15.0: where to start, then the figures and the last invoices.

A start screen

Home opens with cards for a new sales invoice, quote or purchase invoice, a payment, the general ledger and a template, above what customers owe you, what you owe and your cash.
The Preferences dialog floating over the window, its section rail at the left with Appearance, Agents and Security, a wire from the Appearance tab to the panel, and the theme choices Dark, Light and Match the system with six accent colours
Preferences, from 0.15.1 a floating dialog: theme, accent, the agent dock and the app lock.

Preferences

Dark, light or the system's theme, six accents that leave debit, credit and chart colours alone, the agent dock and the app lock.

Everything in the box

Window

A list for every document type · one form with a line grid for sales and purchase documents · payments with allocation · setup lists · a dashboard of revenue, expenses, profit, cash and top customers by month · a command palette that reaches every screen · light, dark or system theme · from 0.15.0, a menu bar (in the window on Windows and Linux, the system menu on macOS), a Home start screen and Preferences (theme, accent, the agent dock and the app lock), from 0.15.1 a floating dialog opened by the gear at the top right. See docs/window/

Reports

Trial balance · general ledger · profit and loss · balance sheet · receivables and payables aging · stock balance and value

Taking figures out

CSV of every list and report · PDF of quotes, orders, invoices, purchase documents and customer statements · a read-only SQLite snapshot of the books. See docs/EXPORT.md, docs/PRINT.md and docs/SNAPSHOT.md

Built for agents

The command line is a client of the running server; it never opens the database. It prints JSON, or a table with --table, and needs an app token in FORMLEDGER_TOKEN.

./formledger cli --help     # every command: accounts, journal, sales, invoice, payment, stock, report, export, print ...
./formledger cli token      # how to make an app token
./formledger cli whoami     # the user and role behind the token

docs/ledger/cli.md walks from an empty company to a trial balance. What the app commits to do is listed in docs/BEHAVIOURS.md, and AGENTS.md is the guide for coding agents working on the repo.

From 0.15.0 the window also has an agent dock, opened from View, Agent Dock, the robot button at the top right or with Cmd or Ctrl plus J: a terminal panel beside the books with a shell tab and tabs for Claude Code, Codex, Cursor and, from 0.15.1, Antigravity when they are installed on your computer. Only the owner of the books can open it, and only from this computer. On Windows its terminals do not open yet. FormLedger has no MCP server yet; an agent drives the books through the command line above.

Network

FormLedger keeps the books on your own computer.

  • The server listens on 127.0.0.1:8340 and answers this computer only. FORMLEDGER_ADDR changes the address; an address other machines can reach is your choice to make. FORMLEDGER_TLS_CERT with FORMLEDGER_TLS_KEY, or FORMLEDGER_ACME_DOMAINS, serve it over HTTPS.
  • The desktop app starts its own copy of the server on a loopback address, which stays on this computer.
  • Nothing calls out. The window loads no font, script or image from another host, and the server makes no outbound request of its own, apart from the certificate authority when you set FORMLEDGER_ACME_DOMAINS.
  • The command line talks only to the server at FORMLEDGER_URL, with an app token.
  • The agent dock (from 0.15.0) runs a shell and agent programs on this computer. What those programs send over the network is up to them and to you.

Security reports go through SECURITY.md.

Under the hood

  • Go server: one process is the only writer to the database; amounts are whole numbers of a currency's minor unit, never floats.
  • Encryption at rest: the database is encrypted when you give the server a key (formledger keygen, then FORMLEDGER_KEY_FILE); formledger encrypt converts an existing ledger. Without a key the ledger is stored plain, and the server says so when it starts. See docs/ENCRYPTION.md.
  • Web client: vanilla TypeScript and Vite, with no UI framework, embedded into the server binary by ./build_app --server-only.
  • Desktop shell: a Tauri 2 shell in src-tauri/ around the server binary. From 0.15.0 the menu bar (File, Edit, View, Go, Window, Help) is drawn in the window on Windows and Linux, and macOS gets the system menu from the same list.
  • Checks: ./formledger check runs gofmt, go vet and the web client's type check.

Download

Pick the file for your computer from the Releases page of this repository. Each file is named formledger-<version>-<platform> with the kind of file at the end.

Your computer File to download What it is
Mac with Apple silicon (M1 or newer) formledger-<version>-macos-arm64.dmg Disk image. Open it and drag FormLedger to Applications.
Mac with an Intel processor formledger-<version>-macos-x64.dmg The same for Intel Macs.
Windows PC (64-bit Intel or AMD) formledger-<version>-windows-x64-setup.exe Installer. The one most people on Windows want.
Windows PC (64-bit Intel or AMD) formledger-<version>-windows-x64.msi The same app as an MSI installer, for IT teams that install on many PCs.
Linux PC (64-bit Intel or AMD) formledger-<version>-linux-x64.AppImage One file that runs on most Linux systems with no install.
Linux PC (64-bit Intel or AMD) formledger-<version>-linux-x64.deb Package for Debian, Ubuntu, Linux Mint and Pop!_OS.
Linux PC (64-bit Intel or AMD) formledger-<version>-linux-x64.rpm Package for Fedora, Red Hat, Rocky Linux and openSUSE.

Needs macOS 12 or newer on a Mac, and a Linux system with glibc 2.35 or newer (Ubuntu 22.04 has it). SHA256SUMS.txt on the same page lists a checksum for every file, to confirm that a download arrived whole.

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

Run it from source

Requires: Go 1.26 and Node 22, the versions the checks use. The desktop shell also needs Rust and the Tauri 2 system packages.

git clone https://github.com/nodemode-dev/formledger.git
cd formledger
./formledger_oc_install    # Go modules and the web client's packages
./formledger               # server at http://127.0.0.1:8340, web client dev server at http://127.0.0.1:5340
./build_app --server-only  # compiles bin/formledger with the web client inside
./formledger help          # every launcher command

./formledger desktop dev opens the desktop window instead, with the server just compiled.

On Windows use formledger_oc_install.bat and formledger.bat.

Port What listens Change it with
8340 the server, on this computer only FORMLEDGER_ADDR
5340 the web client's dev server
5341 the web client's preview server
Variable Purpose
FORMLEDGER_ADDR Listen address of the server, default 127.0.0.1:8340
FORMLEDGER_DATA Data directory for the database, default ./data
FORMLEDGER_URL Server the command line talks to, default http://127.0.0.1:8340
FORMLEDGER_TOKEN App token for the command line
FORMLEDGER_KEY_FILE Key file that turns on encryption at rest; unset means the ledger is stored plain
FORMLEDGER_KEY_HOME Folder where the server makes and keeps its own key (formledger.key) when no key file is given. The desktop app sets it to its app data folder. Losing that key loses the books: back it up (docs/ENCRYPTION.md)

Important

Status: early. The ledger, selling, buying and stock work from the command line and over the server's routes. The window's screens for them are new and only partly checked in a browser; see CHANGELOG.md.

Contributing: branch from main, keep changes to source here, and leave packaging and releases to FormCompiler. See CONTRIBUTING.md, CODE_OF_CONDUCT.md, BRANCHING.md and AGENTS.md. Report security issues privately as SECURITY.md describes.

Demos and templates

What Where How it opens
3 demos: Larkspur Lane Cafe, Halftone Field Design Studio, Ironbark Hardware and Supply demos/ each is a data folder with three months of posted selling, buying, stock and payments; copy it and start FORMLEDGER_DATA=<the copy> ./formledger, then sign in with the about.json email and the password formledger-demo
48 document templates: 20 sales invoices by trade, 8 quotes, 5 sales orders, 6 purchase orders, 9 supplier bills templates/ each file is posted to /api/templates as it is, then shows on the Templates screen, where Use opens a new draft

Every company, person and address in them is invented. They are Apache-2.0, as FormLedger.

Repository

Path What it is
cmd/formledger/ Entry point: the server and the cli subcommands
internal/ The Go server: ledger, selling, buying, stock, reports, printing, roles, audit
web/ The TypeScript and Vite client
src-tauri/ The desktop shell around the server binary
docs/ What each part does and the behaviours the app commits to
formledger · build_app The launcher (./formledger help) and the build script behind it

Docs: docs/ · Agents: CLAUDE.md, AGENTS.md · Contributing: BRANCHING.md



Maintainers

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

Code owners are set in .github/CODEOWNERS.

License

FormLedger is licensed under the Apache License 2.0 (LICENSE, SPDX Apache-2.0). Copyright 2026 NodeAgentc, Inc. Third-party notices: NOTICE.md.

About

FormLedger - instead of QuickBooks & Xero: the bookkeeper, ledger & inventory manager app from the FormAI family of apps. Sales, purchases, payments & stock as numbered documents on one double-entry ledger, w/ a CLI & HTTP API agents can drive. Runs locally, no account. Free & open-source under Apache-2.0.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages