Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration and optional tools

What the app needs, where it keeps things, and the settings that live outside the app.

A vault on disk

A vault is a directory: notes in notes/*.md (one Markdown file each, with YAML frontmatter), media in blobs/, addressed by content hash. It becomes a git repository wherever git is available.

The vault list

Several vaults (one per audience: personal notes, a lab’s notes, a paper shared with a collaborator) are listed in a file. On Linux it is ~/.config/formicaria/vaults.json, on macOS ~/Library/Application Support/formicaria/vaults.json, and on Windows %APPDATA%\formicaria\vaults.json:

{
  "vaults": [
    { "name": "personal", "path": "~/notes" },
    { "name": "lab",      "path": "~/lab-notes", "restic": "/backups/lab" }
  ]
}

The first entry receives new notes. Each vault is its own git repository with its own collaborators. The app writes this file itself when you add a vault in Settings → Vaults & backup.

Environment variables

None is needed. They are for running the server by hand.

VariableDefaultPurpose
FM_VAULT(none: the app asks on first run)Vault directory, when no vault list is configured
FM_VAULTSper-OS config pathLocation of the vault list
FM_CONFIG_DIRper-OS config pathDirectory the vault list and the restic password live in
FM_ADDR127.0.0.1:8765Address to bind
FM_OPENonOpen the browser on start; 0 keeps it closed
FM_UI_DISTunset (the embedded interface)Serve the interface from a directory instead
FM_AUTO_SHUTDOWNonClosing the last formicaria tab stops the app, unless a reminder is waiting; 0 keeps it running
FM_RESTIC_REPOunsetRestic repository for a single-vault install (a vault list uses its own restic field)
RESTIC_PASSWORDunsetPassword for the restic repositories
FM_GIT_TOKENunsetGit token, read only where there is no git binary (the phone, Windows without git)

The server binds 127.0.0.1 and has no authentication: it is not made to be reached from a network.

Optional tools

When a tool is absent its feature is unavailable and the app says so; nothing else is affected. formicaria looks for them on PATH.

FeatureRequiresWithout it
History: versions of a notegit on Linux and macOS; nothing on Windows, which carries its ownNotes stay intact as files; no history
Backup and sharinga remote, and git except on WindowsThe vault stays local
PDF text searchpdftotext (poppler)The PDF is stored and shown, not indexed
Thumbnailsvipsthumbnail (libvips)A placeholder instead of a preview
Media backup: encrypted snapshots of notes and attachmentsrestic, and a repository per vaultNotes still back up through git; media stays local
Open in the default applicationxdg-open on Linux; built in on macOS and WindowsThat action reports an error
# Debian / Ubuntu
sudo apt install git poppler-utils libvips-tools restic
# macOS
brew install git poppler vips restic
# any OS, via pixi
pixi global install git poppler libvips restic

The study assistant, transcription, calendars and mail need nothing installed by hand: the app fetches what it needs when you turn them on, or walks you through it in their chapters.