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

formicaria

formicaria is a library for research, writing and daily life that runs on your own computer and phone.

Your notes are ordinary text files in a folder you own. You can read them in any editor, copy them to a USB stick, or open them in ten years on a computer that has never heard of this app. There is no account, no subscription, and nothing is uploaded anywhere.

On a computer it opens in its own browser, and on a phone it is an app. It is not a website: the whole thing runs on your device, and it works with the internet switched off.

What you can do with it

  • Start from Home. Today’s journal entry, ready to write in, and the things you keep an eye on, arranged as you like. See Getting around.
  • Write and find notes. Search looks inside every note, not just titles. (Searching the text inside PDFs needs one extra program on your computer — Settings tells you whether this one has it.)
  • Plan with them. Give a note a status or a date and the same notes become a board or a calendar. Nothing is a separate kind of thing: a task is a note with a date on it.
  • Be reminded. A note with a date can tell you when its time comes. See Reminders.
  • Keep a food log and a training log. What you ate and what you trained are notes too, with diets and training regimes from published sources to follow and be measured against. See Food and training.
  • Keep a health diary, music and videos. See Health, Music and Save media.
  • Browse and keep pages. formicaria’s browser keeps trackers out, and any page can become a note. See The browser.
  • Bring your notes with you. A Logseq or Obsidian folder becomes notes, links kept. See Importing.
  • Keep pictures, PDFs and drawings alongside the writing, including whiteboards you draw yourself.
  • Go back in time. formicaria keeps a history of every change, so you can see how a note looked last week.
  • Work with someone else. Two people can keep the same notebook in step, each on their own machine. If you both edit the same note, formicaria merges the changes rather than making you choose between them.
  • Ask a local assistant. Optionally, a small AI model that lives on your own computer can answer questions in a note’s discussion, look something up on the web, read a photographed page, and draft edits for you to approve. It is off until you turn it on, and your notes never leave the machine. See the study assistant.

How your notes are organised

Notes live in a vault — a folder. You can have more than one: personal, a lab, a paper you are writing with someone. Each vault is separate, and which vault a note is in decides who can see it. Nothing is shared by accident, because sharing is set up one vault at a time.

The name is the plural of formicarium, an ant colony’s nest: a set of vaults, each its own place.

Where to go next

  1. Set up formicaria — unpack it, start it, and where your notes are kept.
  2. Your first ten minutes — write a note, find it again, keep it safe.
  3. Food and training — if a food log or a training log is what you came for.

Working on formicaria itself? Start at Architecture, then How to add a feature.

Set up formicaria on Linux

formicaria runs in your browser, from a folder on your own computer. Nothing is installed, there is no account, and nothing you write leaves this machine.

1. Unpack it

Extract the file you downloaded — formicaria-…-linux-x86_64.tar.gz — somewhere real, such as your home folder or Documents. Your file manager can do this, or:

tar xzf formicaria-*-linux-x86_64.tar.gz

2. Start it

Open the folder and double-click:

Start formicaria.sh

If your file manager asks what to do with it, choose Run. (Some ask every time; some open scripts in a text editor instead — if that happens, open a terminal in the folder and run ./Start\ formicaria.sh.)

Your browser opens by itself. That is the app — you are ready to write.

3. Stop it, and start it again

Close the browser tab. formicaria shuts down about a minute and a half later (with reminders on and one waiting, it stays running quietly until that has been said).

To come back — tomorrow, or in five minutes — double-click Start formicaria.sh again. Your notes are still in the vault folder, exactly as you left them.

Where your notes are kept

In the vault folder, inside the folder you unpacked.

That is what makes this portable: copy the whole folder to a USB stick or another computer and your notes travel with it. Nothing is left behind on the machine you were using.

Your notes are the files in vault/notes/ — one plain text file per note, which you can open in any editor. This app is not needed to read them.

What else is in the folder

Only four things are for you:

  • Start formicaria.sh — starts it.
  • Manual.html — this manual.
  • vault — your notes.
  • Update from an older folder.sh — formicaria normally updates itself from Settings; run this only when you download a newer version; it copies your old notes across. See Updating.

program holds the application itself and manual holds this manual’s pages. You never need to open either.

If something goes wrong

Double-clicking opens it in an editor. That is a file-manager setting. Open a terminal in the folder and run ./Start\ formicaria.sh.

It says the port is already being used. Another program is using the address formicaria wants. If it is another copy of formicaria, it will simply open your browser at the copy already running.

A blank page. Close the tab and start it again.

The study assistant

formicaria has an optional local AI assistant, and on Linux this download can run it. Turn it on in Settings → Assistant → Study assistant. The first time, it asks which model you want, tells you how large it is and under what licence, and downloads it — between 0.7 and 2.5 GB depending on your choice, once, kept on this computer and used offline afterwards. Letting it read photographed pages adds a further 0.84 GB, and is offered as its own choice. You can stop part-way; what has arrived is kept.

Turning recordings into text is a further switch beside it, and a further ~170 MB download, which it also fetches for you.

It is off by default and costs nothing while off. Everything else — your notes, search, boards, backup and sharing — works normally whether or not you ever turn it on. The study assistant chapter explains what it can do.


Next: Your first ten minutes.

Your first ten minutes

formicaria is open in your browser. Here is how to start using it.

The first screen

formicaria may ask for your name and email before anything else. It uses them to stamp each saved change, so that later you can tell who wrote what — nothing is sent anywhere.

There is also a box for a backup repository. Leave it empty; you can set that up later under Back up.

The two buttons differ in one thing only: Start writing saves the name and email you typed, Skip for now goes in without saving them. Either way you land in the same place, and you will be asked again the first time it actually matters.

Then you land on Home. Your first notebook has five short tutorials among its notes, tagged tutorial — what to do first, how to find things again, how to keep them safe, how to ask the assistant — even if it had notes before you updated. They are the same pages as this manual’s Tutorials, with its pictures, and an update brings them up to date unless you have changed them. Tap one to read it. They are ordinary notes: change them, or delete them when you are done. A deleted one stays deleted, on every device; Help → Put the tutorials back brings them back. Whenever you are lost, open the list of views (on a phone, the stacked-squares button in the bottom bar) and choose Notes — it always opens on its Timeline.

Write a note

Click the + button at the start of the sidebar — make something new — and choose New note. Or just press c.

A blank note opens with the cursor in it. Type.

That is the whole thing. There is no Save button, because there is nothing to save: what you type is already a file on your disk, and formicaria writes it as you go.

Give it a title. The first line is the title. A note called Reading list is one you will find again; a note called Untitled is one you will not.

To change it later, click it. The note opens as a page to read; a click or tap on its text turns it back into the editor, and clicking its header — or pressing Escape — puts the pen down again. There is no Edit button to look for.

Find it again

Two ways, and you will use both:

Search — on a computer, the Search notes field at the top right of every page, or Ctrl+K (⌘K on a Mac) or / from any page, a note’s included; on a phone, the box at the top of the sidebar. Enter opens the best match, and Escape puts the search away. It looks inside every note, not just titles, so searching for a phrase you half-remember works. The best matches come first: a note with your words in its title or tags before one that only mentions them. It finds part of a long word too (beratung finds Ernährungsberatung), and Chinese words anywhere in a sentence.

Just look — open Timeline from the sidebar and your notes are listed under the day you wrote them, newest first. For the first few weeks this is usually enough on its own.

Give a note a date, or a status

Notes can carry a few facts about themselves, and this is what turns a pile of notes into something you can plan with:

  • A status — something to do, doing, done.
  • A date — when it is due, or when it happens.

Set them from the note’s own header. Once notes have them, the Board and Agenda views show the same notes arranged by status, or laid out on dates. Neither is required — notes work perfectly well without them.

Keep them safe

Your notes are files in the vault folder, so the simplest backup is the one you already know: copy that folder somewhere else.

formicaria can also keep a history of every change, so you can go back to how a note was last week. On Windows nothing needs installing. On Linux and macOS it needs git, which most machines already have. Either way, click the back up button — the cloud, near the bottom of the sidebar — and formicaria records everything. If you do not, nothing breaks — you just have no history to step back through.

Setting up backup to another computer, and sharing a notebook with someone else, are covered in Backup & versioning.

Where things are

Everything lives in the sidebar: down the left of a wide window, and along the bottom when the window is narrow (a phone, or a split screen). Same buttons, same order, wherever it is.

  • + at the start — make a note, a board, anything new.
  • Search, just below it — find any note by what is inside it.
  • ☁ near the end — back up.
  • ? — a short How this works, and this whole manual, at any time. Where the ? is not shown (a phone, or a narrow window), the same two are in ⚙ → Do something → Help.
  • ⚙ — settings.

Coming back tomorrow

Closing the browser tab stops formicaria — that is how you quit it. (If you have turned reminders on and one is waiting, it stays running quietly until that has been said.) To start again, double-click the same file you used the first time, in the folder you unpacked. Your notes are still in vault, exactly as you left them, and they are still there whether formicaria is running or not. From the second time on, formicaria opens on Food → Day, its most used screen; the notes you had open are still open.

More, when you need it

Most screens in the app also have a How this works link beside them, which opens this manual at the part about that screen — on every device, without a connection.

Getting around: the rail, Home and the Journal

On a computer, formicaria’s pages share one frame. Down the left is the rail. Next to it is the place you chose, and on a wide screen a note you open appears beside it rather than in a new tab. The note beside has two buttons at its top: ⤢ Full screen, to give it the whole page (Back returns), and ✕, to close it and give the page its full width again.

The rail

From the top:

  • All vaults ▾, when you have two or more vaults: tick the vaults you want to see. A vault you untick leaves every page here: its notes are out of the sections, Home, the search and the counts. Nothing is deleted, and ticking it brings it back. Your choice is remembered by this browser.
  • + New: a note, a board, a discussion, a paper (from a DOI, an arXiv link or a BibTeX entry), or a note from one of your templates.
  • « beside it folds the rail away, and the page takes the whole width. A slim strip stays at the left, with ☰ to bring the rail back. Ctrl+\ (⌘\ on a Mac) does either from any page, and this browser remembers your choice.
  • Find or do (Ctrl+K, ⌘K on a Mac, or /): search every note, or type a web address to open the page. Search the web for … is always the first line. The line Enter will use is highlighted: the best note when notes match, or the web search when none do. ↑ and ↓ move the highlight, and Ctrl+Enter (⌘↵) always searches the web.
  • Home and the Journal (below).
  • Your library: each section with how many notes it holds. Hover over one for its own +, which makes what that section holds: a task in Tasks, an entry in Food journal. Web’s + opens Find or do, to open a page. Its ⋯ has Hide from the rail, for a section you never use; Show hidden sections at the end of the list brings it back. Its notes are not touched.
  • Back up now, and a note when something wants a look: notes that could not be read, notes not yet in history, notes the merge decided for you. Each opens a short panel that explains.
  • Settings, in any other browser. In formicaria’s browser it is the ⚙ at the top right of every tab instead, so there is only one.

A small red dot beside Collaboration, on the rail and in the phone’s list of views, says the assistant has proposals you have not looked at yet. Looking at one, or accepting or declining it, takes it away.

Moving between places stays in the same tab: Back returns to where you were. Alt+Home goes Home from any page, and pressing Home while you are on Home puts you in today’s journal entry.

Home

Home is where formicaria opens. It shows how things stand, and you choose what is on it.

  • At a glance, along the top: a few figures, such as notes written this week (with an arrow when it is more or less than the week before), tasks open in a board, what is due today.
  • Kept an eye on: a row of links to notes, sections and views you pinned.
  • Today’s journal entry, ready to write in (below). Click or tap anywhere in its box to write: below the last line, the caret goes to the end of the entry.
  • Cards, each showing one thing at the size you choose:
CardSummaryFull
Due and plannedwhat is due or planned todayeverything due, with what is overdue
A boardhow many cards are in each column, and the ones that need a look: overdue, blocked, or unmoved for a weekthe whole board, column by column
A section or a saved viewits newest notesmore of them
A figurethe last seven days, day by daythe last thirty
A heatmapa square for each day of the last six months, darker for more notes made that day, as on GitHubthe last year
Came inpages, songs and meetings brought in this weekmore of them
Continuethe note you were in last—
A noteits first linesthe whole note

What counts as overdue. Only a task: a note with a status, or with a due date and no start. A meeting’s end and a plan’s last day are not deadlines, so a meeting that ended or a training plan you replaced is simply over; it is never overdue, and it is not in Tasks.

Any card can also be at glance size: a small card with just its figure, or a link. A card’s title opens its whole place, and Back returns to Home.

Arranging Home where it is

Every card, the journal and the figures included, sits on a grid of twelve columns and rows, and you choose where it goes and how much room it takes:

  • Move a card by its ⠿ in the top left corner (hover over the card to see it): drag it anywhere. The other cards make way while you drag, and everything settles upward when you let go, so nothing overlaps and nothing floats. With the keyboard, focus the ⠿ and use the arrow keys.
  • Size a card by dragging its right edge (width), its bottom edge (height) or its corner (both), a column or a row at a time. The cards around it make way.
  • ⋯ on any card has the same choices for anyone who would rather not drag: what it shows (glance, summary, full), a width (narrow, half, wide, full width), a height (short, medium, tall), Move ←↑↓→, whether it is on the phone, and Remove from Home.
  • Tidy up (in Edit Home) closes the gaps: every card moves up and to the left as far as it fits, in reading order.

A change shows at once and is saved straight after. If it cannot be saved, Home puts it back and says why.

Before you change anything

Home is made from what you use: the journal, figures for your busiest sections, what is due, your task board, what came in, and the note to continue. Until you change it, it keeps up as you use formicaria differently.

Pin to Home

The quickest way to add something is from where it is:

  • in a note, ⋯ → Pin to Home;
  • on a section’s or a saved view’s page, Pin to Home in its bar.

It appears on Home as a small card, in the first gap it fits; move it from there. Once pinned, the same place offers Remove from Home.

Edit Home

Edit Home lists the cards on Home. For each one you can:

  • choose what it shows: glance, summary or full; and its width and height;
  • choose whether to show it on the phone. On the phone, a card you change or add there is shown there; one that is not is marked not shown on the phone in the list;
  • move it with its arrows, or drag it (this order is the phone’s; on a computer, place it on the grid itself);
  • remove it with ✕.

Add offers everything that can be on Home, grouped: Today, Figures, Boards, Sections, Views and Notes. Your own words at the top of Home is a few lines of your own, such as this week’s aim. Reset to the default goes back to the Home made from use.

Home is kept as a note tagged home, so it syncs to your other devices and keeps its history like any note.

The Journal

Today’s entry is on Home and on the Journal page. Just start typing. The entry becomes a note titled with the day (2026-11-23) and tagged journal, the same as journals brought in from Logseq or Obsidian, and it is saved as you write. A day you never write in leaves no empty note behind. Open as a note gives it everything a note has: links with [[, the / menu, pictures.

The Journal page holds only the journal: the day’s entry, then the earlier days; choose one to read it or write in it. Go to a day opens any day, and writing in it makes that day’s entry. What is planned and due is in the agenda and Tasks, and Home can show it beside the entry.

Web

Web in the rail is every web page you kept, as a table or a gallery. To open a page, type its address in Find or do, or press Web’s +.

A section, the same way each time

Every section’s bar has View as:

  • As usual: the section’s own view (Music’s player, Food’s day, the task board).
  • Table: one row per note, a column per property. A column’s header sorts by it.
  • Gallery: a tile per note, with its first picture.

The table and the gallery have a Filter field above them.

On a phone

The phone keeps its own bar of tabs, and Home opens first. It is the same Home, kept calm:

  • only the cards marked show on the phone, each the full width, at the height you chose;
  • at most three figures;
  • nothing at full size except the journal;
  • the links kept an eye on in one row you can scroll sideways;
  • to move a card, hold its ⠿ for a moment and drag it up or down; it goes where you let it go. A swipe that does not wait still scrolls the page.

Under Home’s title is a box to jot a line into today’s entry or go to the web. Once you type, it lists what you can do with it, and the first choice, marked ↵, is what Enter does: words are added to today’s entry, with Search the web beside it; a web address opens the page, with Add to today beside it.

Writing in the journal on the phone, the entry takes the screen: Home glides until the entry is at the top, and the entry fills the room above the keyboard, the jot box out of the way. Leave the entry and Home glides back to where you were.

While you type anywhere on the phone — the journal, a note, a search, a sheet — the bar of tabs slides away so the keyboard has the room, and it comes back when you put the keyboard away. The bar’s own search keeps the bar.

+ offers Home and the Journal before the sections.

Start here

This is your notebook. Everything you write in it is a note, and every note is a plain text file of your own, on your device. You can open them with any other program, and they stay readable whether this app is running or not.

Where you are

Your notes are in Notes, on its Timeline: every note under the day you wrote it, newest first. These short guides are notes too, tagged tutorial.

Tap or click a note to open it. To find one again, search: type a few words from its title or its text. To come back here from anywhere, open the list of views (on a phone, the stacked-squares button in the bottom bar; on a computer, the sidebar) and choose Notes.

Write your first note

  1. Press + — at the start of the sidebar on a computer, in the bottom bar on a phone.
  2. Choose New note.
  3. Type. The first line is the title.

There is no Save button: what you type is written to the file as you go.

Read them in order, or whenever you need one:

These guides are ordinary notes: change them, or delete them when you are done. Help → Put the tutorials back brings back any you deleted. The whole manual is in Help too, and works without a connection — start with Your first ten minutes.

Write, and find it again

Make something new

Press + to make a note, a board, a discussion, or a note from one of your templates. On a computer, the c key makes a new note straight away.

Give it a title that you will search for later. Reading list is a note you will find again; Untitled is not.

Change a note

A note opens as a page to read. To change it, click or tap its text: the editor opens with the cursor where you touched. To stop, tap the title, press Escape, or just leave the note. Nothing needs saving.

Undid something by mistake? The ↶ button takes back the last thing you did.

Add a photo, a recording, a file

  • On a phone, while you write, a row of buttons sits above the keyboard: the microphone, which writes down what you say where the cursor is; record, which keeps the recording in the note; and add a photo or file.
  • On a computer, use the note’s own ⋯ → Add media: a photo, a video, a recording or any file.

To turn a recording into text later, ask Myrme in the note’s discussion: @Myrme /transcribe.

Find anything

Search looks inside every note, not only at titles, so a phrase you half remember is enough. It also reads the text of PDFs you have added. On a computer the search field is in the sidebar; on a phone, it is the magnifier in the bottom bar.

Pick a result to open it. More on all of this in Creating & organizing notes.

Next: See your notes your way.

See your notes your way

There is one set of notes and several ways to look at it. Nothing is copied: a view only arranges the same notes differently. Pick one from the list of views.

Notes: the timeline

  • Timeline — every note under the day you wrote it, newest first. To find one, search: type a few words from its title, its text or its tags.

To give a note a tag: open it, press its ⋯ → Details, and write the tag in Tags (several tags are separated by commas). Search finds a note by its tags as well as its words.

Tasks: a board and an agenda

Give a note a status (to do, doing, done) or a date, and it also shows up here:

  • Board — notes as cards in columns, one per status. Drag a card to change its status.
  • Agenda — notes with a date, on a calendar or as a list of what is due.

Set the status and the dates in the note’s Details. Neither is required: a note without them is still in the Library.

More in Views.

Next: Keep them safe.

Keep them safe

Your notes are files

Every note is a Markdown file in your notebook’s folder. Copying that folder somewhere else is already a backup, and any text editor can read what is in it.

Back up

Press Back up — the cloud button, near the end of the sidebar, or in the phone’s bottom bar. It records every change, so you can see how a note was last week, and, once your notebook has a place to go, sends your notes there and brings your other devices up to date.

That place is set up once, in Settings → Vaults & backup: another computer, or a private repository online.

Deleted something?

Open the ↶ menu (beside Settings, or in the phone’s bottom bar):

  • Undo takes back the last thing you did, a deletion included.
  • Recently deleted… lists the notes deleted in the last 30 days, on this device or another one that shares the notebook. Bring back restores one exactly as it was.

Nothing leaves without you

Your notes stay on your devices. Nothing is sent anywhere you did not choose: no account, no cloud of ours. The assistant runs on this device too.

More in Backup & versioning and getting back a deleted note.

Next: Ask Myrme.

Ask Myrme

Myrme is a small assistant that runs on this device. What you ask it, and the notes it reads, never leave it.

Turn it on

Open Settings → Assistant → Study assistant and switch it on. It shows each model it can use, with its download size, and downloads the one you pick. You can keep working while it does.

Ask it something

Every note has a Discussion below its text. Open it, write @Myrme and what you want, and send. Myrme answers in the discussion, signed with the device that answered.

You do not have to remember any commands: the buttons under the discussion add them, each with a line saying what it does. A few:

  • /transcribe turns the note’s recordings and photos into text.
  • /recipe makes a recipe of what you said or wrote.
  • /propose drafts a change to the note.

You decide

Myrme never changes a note by itself. What it would write comes as a proposal: accept it, change it first, or turn it down.

More in The study assistant.

Back to Start here.

Creating & organizing notes

Making something new

  • New note — creates a blank note and opens it straight in the editor, so you can write a body and set properties. A note you leave as it came is not kept: close it — or leave the app — with nothing written, no title and no property set, and it is gone, on every device. Anything at all in it keeps it.
  • New board — creates a whiteboard: a note whose body is a freeform canvas. It is a note in every other way, so a dated board shows up in the Agenda and a statused one groups on the Board.

There is no “type” to pick. Everything is a note, and you tell them apart with tags — the only surviving distinction is asset, which the app sets itself when you ingest a file. With more than one vault, the + menu ends with a Create in list — pick the notebook, then pick what to make.

Templates

If you keep writing the same kind of note — a meeting, a task, a weekly review — make one note shaped the way you want and tag it template (in the editor’s Tags field). It then shows up in the + “make something new” menu as New from “…”, once per template.

A note made from a template arrives with the template’s structure:

  • its body (headings, checklists);
  • its tags, except template itself;
  • its status, and any properties you gave it.

It does not get the template’s title, its dates, or anything that says which note the template was. So a template tagged meeting makes notes tagged meeting, and a template with a status makes notes that land in that column of the board.

A template is nothing special: just a note with the template tag. Untag it and it stops being one. It is still an ordinary note you can search for and edit. What it is not is one of the things it makes: a template with a status is not a card on the board or the agenda, and a template for a diet program does not set your targets.

Add starter templates, in the same + menu, writes three ordinary notes into your vault — Task, Meeting, Recipe — which you can change or delete like any other. Each has a heading and its sections to fill in, a tag, and the property a view reads. None holds a target or a suggestion. The item disappears once you have all three.

Editing a note

Click any card to open it. It shows the rendered read view, under a header that is just the note’s title and a ⋯. To edit, click or tap anywhere in the note’s text: the editor opens with the cursor where you clicked. A tick box, a table cell, a link, a chip to another note or a player does what it does instead of opening the editor, and selecting text to copy it is not a click. From the keyboard, press Enter with the note in focus.

There is no Done button. To finish, tap the title, press Escape or Ctrl+S — or simply leave the note: switch to another window, close it, or press Back on a phone. Your typing is autosaved throughout, so none of these can lose work.

Everything else a note offers is under the same ⋯: Add media (a photo, a video, a recording or a file — from reading too, in which case it opens the editor and adds at the end), Full screen for a whiteboard, Copy to… another vault, Delete and Close. At the bottom of that window you can see which vault the note is in and who last edited it.

The editor also gives you a properties form:

FieldWhat it setsFormat
Startwhen it beginsa date picker, with an optional time
Statusany labelfree text (autocompletes known values)
Duea deadlinea date picker (YYYY-MM-DD)
Harda hard deadlinea checkbox
Titlean optional titlefree text
Tagstagscomma-separated (a tag may contain spaces)

Status has a shortcut. The status chip on every board and timeline card rotates through the statuses your vault already uses, then through “no status”, one tap at a time — the fast way to nudge a card along. To jump straight to a distant status (or clear it) without stepping through the rotation, long-press the chip (or right-click on a laptop) for a picker of all your statuses. Use either to set a status you already have without opening the editor; use the form’s Status field to invent a new one (it joins the rotation as soon as a note carries it).

Every change writes back to the note’s YAML frontmatter immediately. The body is plain Markdown, and the editor draws it finished while you write: a heading looks like a heading, bold is bold, a link shows its words, a list has its dots and a task its tick box. The line you are writing on shows its Markdown marks, so what you type is always in view; move to another line and it is drawn finished. Pictures and formulas are drawn too, and so are recordings, videos and embedded notes: on the line you are writing on they show as their Markdown, and once you move off it they are drawn. Diagrams, tables and a formula written over several lines still show as their Markdown while you edit, and are drawn when you leave the editor.

Formulas are LaTeX between dollars: $x^2$, or $$x^2$$. Either can sit in a sentence and is drawn in the line; a $$…$$ with a line to itself is drawn larger, centred, on its own. \* in a formula is a star, as it is in the rest of the note. For an arrow write \to (-> is a minus and a greater-than).

To put a screenshot in a note, paste it. A screenshot tool that copies to the clipboard (the Snipping Tool, PrtScn, GNOME’s or macOS’s screenshot with copy) leaves the picture there; in the note press Ctrl+V, or use Paste from the right-click menu. The picture is added exactly as a dropped file is, named for when you pasted it, and drawn as soon as you move to the next line. Dragging a file onto the note does the same. Nothing is ever rewritten behind your back — the file is exactly the Markdown you wrote, byte for byte.

The usual keys format text (⌘ instead of Ctrl on a Mac): Ctrl+B bold, Ctrl+I italic, Ctrl+E code and Ctrl+Shift+H highlight. They do what the buttons under the note do: on selected words they add the mark, or take it away if it is there; with nothing selected they put the marks in with a word to type over. Bold and then italic gives both. Ctrl+K is not a link here: it opens Settings, as it does everywhere in the app; the 🔗 button makes a link. All four can be changed in Settings → Keyboard.

In the editor a link works. One press on a finished link opens it (another note opens in its place, and Back returns; in the Tiled layout it opens beside this one); a double press puts the cursor in it to change it. A tick box is pressed in place.

To link words you have already written, select them and paste the address: they become the link’s text.

Undo, and getting back a deleted note

On a computer, formicaria’s browser shows each page in a tab of its own:

  • After you delete a note, Deleted “…” · Undo appears at the bottom of the tab you land on. Choose Undo to put the note back.
  • Ctrl+Z (⌘Z) on any page, outside the text, undoes that page’s last change. If there is none, it puts back the last note you deleted in the last half hour.
  • Recently deleted… is at the bottom of the menu under the page’s name (Notes ▾).

On a phone or a paired tablet, the ↶ button (beside Settings, or in the bottom bar) opens a small menu:

  • Undo names the last thing you did, for example deleted “Lab meeting”, changed the due date of “Lab meeting”, moved a card to “doing”, edits to “Lab meeting” or created a note. Choose it to undo that. On a computer, Ctrl+Z does the same and Ctrl+Shift+Z redoes. Inside a text field or a whiteboard, those keys undo your typing or drawing instead, as usual.
  • While you are writing in a note, Undo takes back your typing first, a little at a time (typing in “Lab meeting”), then goes on to the things you did before. On a phone, this is how you undo typing.
  • Redo puts back what you just undid.
  • Recently deleted… lists the notes deleted in the last 30 days, on this device or another one that shares the notebook, even after formicaria was closed. Bring back restores a note exactly as it was.

Undo never overwrites a change made after it. If the date you want to undo was changed again since, on this device or another, formicaria says so and leaves it as it is.

Going back

The Back button undoes your last step, one at a time. On a phone that is the Back key or gesture; on a computer it is ← at the start of the tab row (or Alt+←, or a mouse’s back button).

  • A menu or panel that is open closes first — a note’s ⋯ window, the / menu while writing, Settings, Help.
  • A level inside something goes back up one level: a Settings category to the list of them (on a phone), a recipe in the food sheet to the list it was chosen from, a diet or an exercise to the list, a theme being edited (the change is cancelled). A panel opened from another — New vault from Settings, the manual from Help — goes back to that panel.
  • While you edit a note, Back stops editing, then takes you back.
  • A note you closed stays closed: Back goes to what was before it, not into the note again.
  • A day picked from Trends is a step: Back returns to Trends. Moving between a group’s own tabs is not.
  • In the manual, following its links does not add steps: Back or Done closes it.

From the first screen, Back closes the app, as usual on Android.

Reminders

A note with a date can remind you. Open Settings and turn on Remind me of events and deadlines on this device; the first time, your browser asks whether formicaria may show notifications. It is off until you turn it on, and it is a choice for each device.

  • A note that has a start or a due date, and is not finished, is reminded of at its time. A date with no time is reminded of at nine in the morning of that day.
  • To be told earlier, give the note the property remind with a number of minutes: remind: 30 tells you half an hour before. remind: off leaves that note out.
  • Finishing a note, or changing its date, changes its reminder: nothing else has to be done.

On an Android phone a reminder shows as a line at the top of the app while it is open. It does not arrive when the app is closed: from 0.24.5 the phone app sets no alarms and does not start when the phone does. Those came with a Play Protect warning against the app and did not work reliably, so they were taken out. Keep a computer’s formicaria, or your phone’s own calendar, for reminders that must reach you.

On a computer, while formicaria is open in your browser, a reminder shows as a line at the top of the app, and as a notification from the browser if you allowed it. When you close formicaria and a reminder is still waiting, it stays running quietly and tells you through your system’s own notifications; once the last one has been said, it stops by itself.

  • The assistant does not stay: its model is stopped when you close the app and starts again when you open it.
  • To stop formicaria staying, turn reminders off in Settings.
  • After the computer has been restarted, open formicaria once to be reminded again: it does not start by itself.
  • A reminder that came due while the computer was asleep is said when it wakes, if that is within twelve hours.
  • On Linux this uses the notify-send program, which most desktops have.

On an iPhone or iPad a reminder shows as a line in the app while it is open; nothing arrives when it is closed.

This is new, and has not yet been tried on a phone, on Windows or on a Mac.

Ticking things off

A task list — - [ ] milk — renders with a real checkbox in the read view, and you can tap it to toggle without opening the editor. A tap flips just that one [ ]↔[x] in the file (the same one byte a text editor would change — nothing else moves), strikes the line through when done, and saves. It’s the quickest way to work a checklist on a phone. Checkboxes shown inside an embedded note stay read-only — you tick those off by opening that note itself.

Formatting text

A note’s body is Markdown, so bold, italic, lists, tables, headings, code, and fenced ```mermaid diagrams / $math$ all render in the read view. For a mind-map or tree, a Mermaid flowchart (graph TD) draws the hierarchy — no plugin and no extra download.

You don’t have to type the syntax. The format options are Bold · Italic · Highlight · Code · Colour · Link, and a ¶ block menu for headings, bullet and numbered lists, and quote.

  • With a mouse and keyboard they are one line under the note, always there. They work where the cursor is: with nothing selected, a mark is opened and closed around the cursor and you type inside it; a block style applies to the line you are on.
  • On a phone select some text and the same options appear below it, where the phone’s own Cut/Copy menu leaves room.

Inline options wrap the selection in the plain-Markdown (or […]{.token}) form; the block menu re-formats the whole line or lines. Press an option again over the same text to remove it.

On a phone or tablet, a row of six buttons sits just above the keyboard while you write, for the things you reach for mid-sentence:

ButtonWhat it does
Dictate (the microphone)listens; press Stop & write and what you said is written where the cursor is — see Dictating
Record audiostarts recording; the clip lands in the note where the cursor is
Add a photo or filetake a photo, record a video, or pick one from the library or your files
Checklist itemturns the line you are on into a tick-box line; again to turn it back
Bulletturns the line you are on into a bullet; again to turn it back
Text styleheadings, a numbered list, a quote or a callout for the line you are on

The keyboard stays up when you press one, and the cursor stays at the end of the line so you can keep typing. On a phone or tablet this row is where media is added: the + there has no Add media, since the row does it in one tap. The line styles are also on the selection toolbar. With a mouse and keyboard there is no row: the marks are quick to type and there is no on-screen keyboard to put it above.

Dictating

Say it instead of typing it. On a phone, Dictate — the microphone above the keyboard — listens until you press Stop & write, then writes what you said into the note where the cursor is, as ordinary text you can change. It understands any language and writes it down in that language; up to five minutes at a time.

On a computer, record it instead: the note’s ⋯ → Add media → Record audio, then write @Myrme /transcribe in its discussion. The recording stays in the note, and the words come back as a proposal you accept or change.

It uses the speech-to-text of the study assistant, on this device — nothing you say leaves it — so Audio transcription has to be on; until it is, Dictate says so. On a computer it takes a few seconds per minute spoken; on a phone longer. What was said is never lost: if it cannot be written down, the recording is kept in the note instead, where @Myrme /transcribe can read it later. For more exact words, turn on Better listening.

On top of standard Markdown there are three light additions, each chosen so the raw text stays readable in any Markdown editor (nothing here is app-only HTML):

  • Highlight — ==important== renders as a highlight. Elsewhere it reads as ==important==.

  • Callouts — a quote whose first line is [!type] becomes a coloured callout (GitHub/Obsidian style). Make a quote from the format options, then type [!note] after its >; pressing a callout’s label in the reading view changes its kind. The types are note, tip, info, warning, danger, quote:

    > [!warning] Heads up
    > this stands out.
    

    An unrecognised type is just an ordinary blockquote. In the read view each callout shows its kind as a small badge — tap the badge to change the type from a picker, which rewrites just that [!type] word in the file (a badge inside an embedded note is a plain label, not a picker).

  • Coloured text — [some words]{.token} colours a phrase. The token is a meaning, not a colour: accent, info, ok, warn, muted — so the note stays readable when you switch light/dark or change theme. An unknown token is left as the literal text.

Editing tables. In the read view, tap a table cell to edit it in place — a little box opens over the cell, prefilled with its text; Enter or tap-away saves, Escape cancels. It rewrites only that one cell (a typed | is escaped so the table can’t break), and only works on plain pipe-bordered tables — an unusual cell is simply left to the full editor. It’s far kinder than lining up pipes by hand, especially on a phone.

Colours come from the theme, never a raw colour or hex code — a deliberate limit so a note written today still looks right under a theme designed years from now, and so a note body can never carry arbitrary HTML/styles (which would be both unportable and a security hole in a shared vault).

Linking notes together

A note can reference another note. While editing, type / and search — the menu lists your notes and assets together, labelled by type. Pick a note and it inserts an ordinary Markdown link:

Follow-up on [the clipping ablation](note:01KXGCF248QC70Z7NB4E22A9QJ)

That is deliberately plain Markdown, so your note stays readable — and still renders as a link — in any other editor. The link points at the other note’s id, not its title, so renaming that note never breaks the reference.

In the read view the reference becomes a chip showing the target’s current title and status, so you can see what a note points at without opening it. A reference whose note no longer exists shows as a dashed placeholder rather than disappearing.

Places & maps. A geo: link opens a place in your device’s own map app — [tap to open](geo:1.2807,103.8720) (latitude, longitude). formicaria loads no map itself (nothing phones home — the app stays true to that); the link just hands the coordinates to Google Maps / OSMand / Apple Maps. Ordinary https://openstreetmap.org/… links work too and open in a browser. Put both in a note and a saved spot is one tap from directions. An in-app interactive map is deliberately not provided: live tiles would mean the app reaching out to a server on every note you open, which is exactly what formicaria refuses to do.

Embed a whole note straight from the picker. Two ways in, so it works on a phone as well as a keyboard:

  • Type // (two slashes) instead of / — the menu opens in embed mode (an accent frame), and a plain tap/Enter inserts an embed. No modifier key needed.
  • Or in the ordinary / menu, press Shift+Enter (or Shift-click) to embed the highlighted result instead of linking it.

Under the hood an embed is just the reference written as an image — ![](note:<id>) — so you can also type it by hand, or turn an existing link into an embed by adding a ! in front. Instead of a chip, the target note’s content is rendered inline, in a card, so a hub note can pull several others together on one screen. It is always the whole note (never a fragment — the file is the unit), a missing target degrades to a placeholder, and a note that embeds itself (or a loop) stops with a small marker rather than recursing forever.

Click a chip and that note opens; Back returns to the one you came from. In the Tiled layout it opens in a pane to the right instead, with the note you came from still on screen, so a chain you follow stays visible; closing a pane there also closes everything to its right (you reached those through it).

Open a note and, below its content, a Linked from panel lists every note whose body references this one (a note: link or an embed) — the backlinks, so you can walk the connection in either direction. It appears only when something links here, and is derived by scanning (no index to keep in sync).

Discussion

Every note has a Discussion panel below its read view — collapsed, showing a count, opened with a click. It is where the conversation about a note lives: questions, second opinions, “why did we drop the second arm?” — the reasoning that used to end up in a chat app where it is unfindable in a year.

Reply posts a message (Ctrl/Cmd+Enter sends it). Reply to the note, or to a particular message — either way it joins the same discussion, indented under what it answers. Each message carries who wrote it and, when the note is shared, a badge for the vault (audience) it belongs to.

The design is the same one the rest of the app uses: a message is just a note.

  • One message is one Markdown file, ULID-named, living in the same vault as the note it is about — so the conversation shares exactly the audience the note does, and travels with it to collaborators through git like everything else. Two people replying at once are writing different files, so there is nothing to conflict.
  • Because messages are notes, they are fully searchable — a decision recorded in a reply is as findable in five years as one in a note body.
  • But they are kept out of the planning views: a reply never appears on the Board, the Agenda or the Timeline, and is never offered as a / link target, so a busy thread cannot bury your real notes. (This is why thread_of / reply_to are managed for you and cannot be set by hand — see the frontmatter reference.)
  • Deleting a note does not delete its discussion: the reasoning about a decision outlives the note that prompted it.

Standalone discussions

A discussion does not have to hang off one note. New discussion (in the + menu) starts a discussion that stands on its own — a place to talk about a topic, or about several notes and whiteboards at once. Give it a title, then talk; as the conversation goes, link whatever notes or whiteboards are relevant inside your messages (a note: link renders as a chip), rather than fixing the subject up front.

All your standalone discussions are listed in the Discussions view, most recently active first, showing each one’s title, its vault, and who has posted — so you can see at a glance where the conversation is happening. Open one and it is the conversation (there is no document body to edit; the messages are the content).

Under the hood a discussion is still just a note — one that is the root of its own thread — so it is searchable, travels through git, and stays out of the Board and Timeline like any other message. There is no new “type”; the same reply mechanism carries it.

Organizing

There are no folders to manage. You organize by properties and see the results through views: a status board, an agenda of due dates, tag-based boards, custom properties like project. Add any property you like — a new key in a note’s frontmatter flows straight through to grouping with no configuration.

Every property is editable in the app. Open a note’s + options window and pick Details: below the fields formicaria knows about (status, dates, title, tags) you get a row for every other property the note carries — project, author, whatever you have added — and an Add row for a new one. Leaving a value empty removes that property.

A few properties are shown but not editable, greyed out: those are ones formicaria sets itself to keep track of where a note belongs, and typing into them would strand the note.

A value keeps its kind. Typing 2017 stores a number, so a board grouped by it sorts sensibly; typing 007123 stores exactly that text, because a code with leading zeros is not the number 7123. You get whatever you would have got by typing it into the file yourself.

Papers

If you read research papers, formicaria will keep them as ordinary notes.

Press + → New paper and paste whatever you have: a citation copied from a publisher’s page (a BibTeX entry), a DOI, an arXiv link, or just the title. Formicaria fills in what it can — title, authors, year, journal — and makes a note tagged paper that you can then annotate, schedule, put on a board and search like anything else.

Nothing is looked up online, ever. Everything comes from what you pasted, or from the paper itself: when you attach a PDF, formicaria reads the first page for a DOI or arXiv number and records it without asking.

To cite one, open its + options and pick Copy as BibTeX.

To collect them, make a view: write <vault>/views/Papers.view with view: board and a - tag: paper filter. Views has the format; there is no screen for authoring one yet.

(Reading and highlighting a PDF inside formicaria is not built yet — for now a PDF opens in your browser’s own viewer, and a link can point at a page of it.)

A note’s place, and where it can go

formicaria is a library: every note is of a kind (a study note, a saved web page, a paper, a recipe, a song, a meeting, a mail conversation, a discussion…), and each kind has the views that show it. A note’s + (Options) holds what you can do with it beyond writing:

  • Bring into another note…: the passage you selected (or a link to this note; for a mail, its latest message) goes into a note you choose, quoted, with a link back here.
  • Send by mail…: Gmail opens a new mail with the note’s title and the selected passage (or the whole note); you send it there. formicaria never sends mail itself.
  • Reply in Gmail (a mail conversation): the conversation opens in Gmail; the passage you selected is copied, ready to paste in your reply.
  • Add to calendar (a note with a date): Google Calendar opens a new event with its title, time and text; Save as calendar file (.ics) gives the same event for any other calendar.
  • Share…: on the phone, Android’s share sheet (any app); on a computer, the text is copied.
  • Open as a tab (in formicaria’s browser), Copy to…, Delete, Close.

The Mail view and the Agenda say on one line where their notes come from and when they were last read, with Read now.

Export, and a note’s history

The note’s ⋯ has:

  • Export:
    • Markdown (.md), the note’s own file as it is kept;
    • PDF (print), the browser’s print, which offers Save as PDF;
    • Web page (.html), one page with its pictures inside.
  • History…: the note’s versions from its notebook’s history, newest first. Choose one to read it, and Put this version’s text back to make it the note’s text again. That is a new change, so Undo takes it back, and nothing in the history is lost. A notebook without history (git) has none to show yet.
  • Pin to Home: the note as a link on Home, in the row of things kept an eye on (Getting around).

Linking with [[

While writing, type [[ and the start of a note’s name, as in Obsidian. The same list as / appears, and Enter puts in the link.

Highlights, quotes and review

Reading, writing from what you read, and coming back to it later take four gestures in formicaria.

WhenDo thisWhat happens
Reading a noteselect words → Highlightthe words are marked in the note
Reading a PDF or a web pageselect words → right-click Highlight in formicariaa PDF: a line with the page in the PDF’s note; a page: the words marked in its kept copy
Writingtype ((your highlights are listed; Enter puts one in as a quote with a link back
Writingpress a quote’s source linethe note it came from opens at those words
Studying⋯ → Recall, then Again · Good · Easyyour highlights are covered; tap to see; the note comes back on Home when it is due

Everything is ordinary Markdown in your notes. A highlight is ==the words==, the same as in Obsidian. A quote is a > block with a link. A review date is a property of the note. They sync and merge like any other text, and they still read without formicaria.

Highlight while reading

Select some words in a note you are reading (not editing). Beside formicaria’s icon, a Highlight button appears. Press it, or press Ctrl+Shift+H (the editor’s highlight key; you can change it in Settings). The words are marked in the note’s own text, as ==the words==. The line that says Highlighted has Undo, and Ctrl+Z or the ↶ menu also take it back.

  • A selection that starts or ends inside a word takes the whole word.
  • A selection over several paragraphs or list items marks each one.
  • A highlight that touches one you already made joins it.
  • Tap a highlight for Remove highlight or Edit here.

When formicaria cannot tell for sure where the words are in the note’s text, it says so and marks nothing. This can happen inside code, or when the same words appear in an embedded note. It never puts a highlight in the wrong place. Edit the note and type == around the words instead.

Highlight a PDF

Open a PDF from your notes; it opens in formicaria’s browser, in Firefox’s PDF viewer. Select some words, right-click, and choose Highlight in formicaria. A line is added to the PDF’s note:

- ==the words you selected== — [p. 4](asset:sha256-…#page=4&search=the%20words…)
  • The PDF’s note is the note that already points at the PDF (a paper note first). If there is none, one is made: Highlights: followed by the file’s name, tagged paper, with a link to the PDF.
  • The page is found from the PDF’s own text, which formicaria read when the PDF was added. A scanned PDF has no text, so its highlights are kept without a page, and formicaria says so.
  • formicaria says Highlighted, p. 4, in “…”. To undo it, remove the line from the note.

The PDF itself is not changed, and the highlight is not drawn inside it: it lives in the note. A quote’s link (see below) opens the PDF on its page with the words found.

Highlight a web page

On a web page in formicaria’s browser, select some words and either press formicaria’s icon beside the selection, then Highlight, or right-click and choose Highlight in formicaria.

  • The first time, the page is kept (as Save page does) and the words are marked in its copy: Page kept, and highlighted.
  • After that, the words are marked in the same kept note: one note per page, never a new copy for each highlight.
  • The bubble that says so has Undo.

Quote a highlight while writing: ((

While writing a note, type ((. A list of your highlights opens under the caret, from every note, with those in the note open beside you first. Type a few words to narrow it down. Press Enter, or tap one, and it goes in on lines of its own:

> the highlighted words
>
> — [Field notes](note:01J…#:~:text=the%20highlighted%20words), 2026-11-29

It is a copy, so you can trim it or bold part of it without changing the note it came from. Esc leaves (( as you typed it.

Bringing a selection into a note with formicaria’s icon (Bring into a note) makes the same kind of quote.

Back to the place

Press a quote’s source line. The note it came from opens at those words, scrolled to the middle and marked for a moment. If the words have since been changed or removed, the note still opens and says These words are no longer in this note.

The link names the place by its words, not by a hidden id. This is the same way a quote from a web page links to its passage: the words, or their first five and last five.

Recall and review

In a note you have highlighted, open ⋯ → Recall. Every highlight is covered, and so is the answer of each line written as question :: answer:

- What do leafcutter ants farm? :: a fungus

Tap a cover to see what is under it. Use One by one to go through them in order, or Show all. In Recall a tap never opens the editor. Back (or Done) leaves it.

Done asks how it went:

Next time
Againtomorrow
Goodin 3 days the first time, then twice as long as last time
Easyin 7 days the first time, then three times as long
Not nownothing is written

The note keeps its next day in two properties, review (a day) and review_gap (days). On that day, Home’s To review card lists it, and opening it from there opens it in Recall. The card only appears on a Home you have not set up yourself while something is due; on a Home you have set up, add it with Edit Home (under Today). A review is never overdue and never appears in the Agenda: only a task is overdue.

Not yet

  • On the phone, a PDF opens in the phone’s PDF app and a web page in formicaria’s page, where Highlight is not offered yet. ((, Recall and review of everything highlighted on the computer work on the phone.
  • Highlights have one colour.

Bringing notes in from another app

If you already keep notes in Logseq or Obsidian, formicaria can read that folder and turn it into notes of its own.

Your original notes are never touched. The folder you point at is only ever read — nothing in it is changed, moved or deleted. What you get is a copy, in formicaria’s own format. The two do not stay in step afterwards: this is a move, not a sync.

Doing it

  1. Open Settings → Import and press Import from Obsidian or Logseq…. (It is also under New vault… → Import from another app.)
  2. Type the folder your graph or vault lives in — for example ~/Documents/my-logseq-graph.
  3. formicaria looks at it and tells you what it found: how many pages, how many daily notes, how many attachments. If the folder isn’t a Logseq graph or an Obsidian vault, it says so and the button stays off. If you have imported this folder before, it tells you which vault holds it and offers to update that one instead of making a second copy.
  4. Choose where the notes go — a new vault (the default) or one you already have.
  5. Choose which attachments come over (see below). All of them, unless you say otherwise.
  6. Press Import notes.

Afterwards you get a summary: how many notes arrived, how many links now work, and — just as importantly — anything that didn’t come across cleanly.

A new vault is the easy thing to undo. If you don’t like the result, forget the vault and nothing else in formicaria changes. Importing into an existing vault is recorded as a single entry in that vault’s history, so it can be undone in one step too.

What comes across

In Logseq / ObsidianIn formicaria
A pageA note — one page, one file
[[Another Page]]A real link you can click through — by the page’s file name, its title::, an alias::, or a day like [[Oct 14th, 2026]]
[[A page nobody wrote]] (an author, [[journalArticle]], …)A tag on the note, so you can still find everything that names it
#tag, #[[two words]]A tag on the note, so you can filter and group by it
An image, PDF, slide deck, notebook or any other linked fileStored with your other attachments, and searchable if it has text
A highlight in a PDF (hl-page::)The highlight, with a link that opens the PDF at that page
A YouTube or other {{video}}A link to the video
A Zotero attachment ({{zotero-imported-file}})The file, if it is in the graph; otherwise its name, saying it is kept in Zotero
A drawio drawing ({{renderer :drawio}})The drawing, as an image
An Excalidraw drawing (draws/)A whiteboard note
A daily note / journalA note dated the day it was written, tagged journal
TODO / DONE itemsCheckboxes you can tick
Page properties (key:: value, or frontmatter)Note properties you can sort and group by
A Logseq block referenceThe words that block actually said, with its links and images working

Your Logseq outline stays an outline — the bullets and their nesting come across as they are.

What doesn’t, and why

  • Pages that were never written do not become notes. In Logseq a page exists the moment you link to it, so a graph usually has a lot of these — authors, kinds of paper, section names. Each becomes a tag on the note that links to it instead, so searching or filtering by it still finds every note that named it. (A link to a day with no daily note stays plain words.) If you’d rather have a note for each one, tick “Make a note for pages that are only linked to” — but be aware every one of them will then show up in your board, calendar and timeline.
  • Individual bullets are not separately addressable. In formicaria a note is the smallest thing that has an identity — that’s a deliberate design decision, and it’s what keeps your notes readable as plain files. So a TODO bullet becomes a checkbox in the note rather than an item in your calendar. To schedule something, make it its own note.
  • Logseq whiteboards, Canvas files and plugin data. These are specific to the app that made them and have nowhere to go here. The preview counts them so you know what’s staying behind. (Excalidraw drawings are the exception: they become whiteboard notes.)
  • Queries. A {{query …}} is shown as the query it was, not run.
  • Org-mode graphs. Markdown only.

Attachments: all of them, or not

By default every file a note links to comes over. You can choose Leave some out instead, and then leave out files larger than a size you pick, and/or whole kinds of file — the form lists each kind with how many there are and how much space they take, so you can see that, say, your robot recordings are most of the folder. Anything left out is still named in the note that mentions it, with the reason, so nothing disappears silently.

Disk space. Every attachment that comes over is copied into the vault — a vault holds all of its own files, so it never depends on the folder you imported from, and that folder stays exactly as it was. The preview shows how much space the attachments take, kind by kind, before you press the button; leaving out large files or whole kinds is how you spend less of it.

Doing it again later

Import the same folder into the same vault again and formicaria adds what it hasn’t seen before. What it brought across last time is left as it is — unless you tick Replace what an earlier import of this folder wrote. Then those notes are brought up to date from the folder (useful when formicaria’s importer has improved), with one firm rule: a note you have changed or deleted since is kept exactly as you left it. The summary names any such notes. The whole replace is one entry in the vault’s history, so it can be undone in one step.

If you start an import of a folder that is already in one of your vaults, the preview tells you and offers Update that vault instead, so you don’t end up with two copies by accident.

A note on size

A few thousand notes is fine. A very large graph — tens of thousands of pages — will make lists slower to draw, and the app will be busy while it works. The preview tells you the size before you commit to it.

Importing reads a folder on the computer running formicaria, so it isn’t available from a phone or from a paired tablet.

Views

Every view is the same data seen a different way — “a query plus a renderer”. Open a group from the sidebar — down the left of a wide window, along the bottom of a narrow one. There is always one view, the place you are: choosing another view changes it, it does not open a window beside it. Only notes open as windows, over the view: each has a ✕ at the top right of its header that closes it and takes you back to the view (Back does the same). If you would rather see a note beside the view, choose Tiled under Layout in Settings.

Search is not a view. Type in the search field and the notes that match drop down from it, over whatever you are looking at; pick one to open it. ✕, Escape, Back or a tap outside puts the list away.

The groups

The views are gathered into sections of the library, and they are all ways of looking at the same notes:

GroupWhat it is forIts views
Notes (called Library before 0.38)everything you have written, newest firstTimeline
Tasksnotes with a status or a dateBoard, Agenda
Foodmeals, recipes, targets, a menu for the days ahead, a diet to followDay, Menu, Trends, Diet
Fitnesssessions, a week’s timetable, how each exercise is done, a regime to followWeek, Exercises, Regime
Healtha diary of what you track, looking back with a page for a doctor, cards to follow (Health)Diary, Over time, Guidance
Musicyour songs, each filled in from its own file (Music)Songs
  • A group’s views are tabs across the top of its window: in Tasks, Board and Agenda; in Food, Day, Menu, Trends and Diet. On a touch screen, a swipe left or right steps to the next or previous one — except over something that scrolls sideways itself, such as a board’s columns.
  • On a wide window the groups head the sidebar.
  • On a phone the bar along the bottom is the same on every screen: the +, search, the menu of views, your open notes (a numbered button, there while a note is open), backing up, settings. The menu of views lists the same places, by the same names, as the sidebar of a wide window.
  • The + is one control, and what it makes follows what you are looking at. In Food it logs a food; in Fitness, an exercise or an activity; in Health, something new to track; anywhere else it opens the list of things to make — a note, a board, a discussion, a paper, and one entry for each of your templates.
  • Back returns to where you came from. Stepping between a group’s own views does not add a step to walk back through; a day picked from Trends does (see Going back).

Notes open on their Timeline: every note under the day you wrote it, newest first, and nothing above it. To find a note, search — words from its title, its text or its tags find it. Every notebook starts with five short guides tagged tutorial, the same pages as this manual’s Tutorials. (Notes had Shelves and a row of tags to pick from until 0.63; tags such as shelf:Web that notes already carry stay ordinary tags.) The board and the agenda in Tasks are the ones described below.

  • Board — a Kanban board, grouped by status. It can group by any property (project, tags, or a custom key) — but that is chosen in a saved view’s file, group_by:, not from a control on screen; see Saved views. Drag a card to a column to set that property; the change writes straight back to the note’s frontmatter. Drop it where you want it in the column — cards stay in the order you arrange them, which is remembered in this browser rather than written to your notes. Drag a column header to reorder the columns the same way.

  • Agenda — dated, unfinished items. Three layouts via the sub-toggle:

    • Month — a calendar grid; items land on their due day, tinted by urgency (overdue / soon / this week / later), hard deadlines marked ◆.
    • Week — the seven days as columns and the hours down the side. An item with a time sits in its slot, as tall as it is long; one with only a date, or one that runs across days, is a bar above the hours. A line marks the time now. On a narrow screen the days scroll sideways and open on today.
    • List — a sorted, soonest-first list.

  • Settings (the gear) is a short list of categories: Look, Keyboard, Vaults & backup, Food & reminders, Assistant, Connections, About & updates. Each says what it is set to beside its name; pick one to see only its options, or type in Search settings to find an option wherever it is (it understands “update”, “backup”, “shortcut” and the like). A longer explanation is under More. On a phone the list is the first screen and a category the second.

  • Timeline — a journal: every note grouped under the day it was created, newest first.

  • Collaboration — the open proposals across your vaults: notes that propose a change to a git branch, newest first. Open one to read it and its discussion. Notes still in conflict after a merge are listed at its top, under Needs resolution.

  • Discussions — every discussion across your vaults in one place, so a thread you replied to last week is not lost inside the note it hangs off.

Two more are real views but are not in the sidebar, and that is deliberate:

  • Activity — who changed what, and when, read straight out of each vault’s git log. Nothing is stored for it: git already knows, so this is a view of history rather than a record of its own. It is genuinely useful and genuinely rare, so it lives in Settings rather than costing a permanent row of attention. It is not the same as the Timeline: the Timeline is your notes by the day you wrote them; Activity is every edit, including other people’s.

  • Search — full-text search across every note — its title, its text, its tags and the values of its properties (an author, a venue) — and the extracted text of ingested PDFs. Reached by typing into the search box at the top of the sidebar, never from the list: clicking an empty search view produces a blank pane, so there is nothing to click.

The Board, Agenda and Timeline show notes only — which excludes three kinds of note that are not things you plan. An asset is a file a note refers to, so it never gets a card of its own — open one from the note that references it. A discussion message (a reply, see Notes) belongs to the note it is about, not to your board, so it stays in that note’s discussion panel. A proposal (see Collaboration) is a note that proposes a change to a git branch; it lives in the Collaboration view, not on your board. All three still turn up in Search — a message or a proposal you cannot find in five years would defeat the point of keeping it in the vault at all.

Urgency and grouping are derived, never stored — there is no priority field; nudging a note’s due date is the whole reprioritization gesture.

Saved views

A view is an arrangement you keep — “my board grouped by status”, “this week’s lab agenda”. It is a small file in your vault, at <vault>/views/<name>.view, and every one of them appears alongside Board / Agenda / Timeline in the sidebar. Because it lives in the vault it is git-tracked and travels to collaborators — a shared view is shared exactly like a note.

Views are written by hand at the moment, not from a screen. There were Save view, Rename and Delete view buttons; they were withdrawn on 2026-08-31, because views are settled for now and authoring them deserves its own design rather than a box bolted to a pane header. Nothing about reading a view changed: a .view file you write yourself, or one a collaborator pushes to you, still lists and still opens, on the desktop and on the phone. To remove one, delete its file and let git carry the deletion; to rename one, rename the file.

Writing a view

The simplest view is two lines:

name: All my notes
view: timeline

A filtered, grouped board:

name: Lab board
view: board          # board | agenda | timeline  (see the note below)
group_by: status     # board only
filter:              # every entry is ANDed onto the renderer's own filter
  - tag: lab

The filter

A view can also filter what it shows — a Papers view of the notes tagged paper, a Reading view for reading. filter is a list; a note must satisfy every entry. Each entry is one of:

EntryMatches
prop: <key> + eq: <value>the property equals the value (status, vault, or any frontmatter key)
prop: <key> + ne: <value>…does not equal it
prop: <key> + exists: truethe property is set (use exists: false for unset)
tag: <name>the note carries that tag
tags_any: [a, b] / tags_all: [a, b]any / all of the tags
text: <words>full-text match (the same engine as Search)
date: <key> + from: / to:a date property within an inclusive window
not: + one entrythe negation of it
any: + a list of entriesat least one of them (an OR)

Use board, agenda or timeline. Those are the three that draw differently. A view asking for gallery is listed as broken and says to change it to timeline or board. Full-text search is the box at the top of the sidebar, and images are reached from the notes that use them.

name: Lab, due this fortnight, still open
view: agenda
filter:
  - prop: vault
    eq: lab
  - date: due
    from: 2026-07-14
    to: 2026-07-27
  - not:
      prop: status
      eq: done

Two things are deliberate. Dates only compare through date: — there is no prop: due, gt: …, because a text/date mix-up there would return a confident wrong answer; a date window parses real dates and cannot. And a board/agenda/timeline view always shows notes only — your filter narrows within that, it cannot widen it to include assets.

If a .view file has a mistake it is still listed, with its parse error rather than quietly dropped — a broken view tells you why. Running it surfaces the same error instead of returning an empty result, so “no matches” never masquerades as “your file is wrong”.

A view says what it leaves out

A view draws through the same renderer as the built-in it shadows: a view: board and the Board are the same screen. So a filter that removes a whole column removes it silently — and a missing column reads as missing notes.

The view’s menu therefore shows what the view narrows to, in the words of the file itself — filtered: status is not done — and clicking it opens the plain, unfiltered Board (or Agenda, or Timeline) with the same grouping, so the rest of your notes are one click away. The sidebar takes you back.

Renaming and deleting a view

Both are file operations, because there is no screen for either (see the note under Saved views). Rename <vault>/views/<name>.view, or delete it. The notes a view was showing are untouched either way — a view is a way of looking, and removing one removes only the looking.

Each device has its own clone of the vault, so a view you delete on the laptop is still on the phone until the change has been pushed from one and pulled by the other.

Two ways to read the timeline

The timeline opens as a feed: each note as a post, with its picture, its first line, the notebook it belongs to and who last touched it. In a shared vault that is one stream of everything happening — your notes and your collaborators’, newest first.

Switch to List in the view’s menu for the original one line per note. That is the faster view when you are hunting for a note you half-remember rather than catching up. The choice is per window and is remembered, so you can keep one of each open.

And the same notes as a list — one line each, for hunting rather than catching up:

The feed loads thirty posts at a time; Show more at the bottom loads the next thirty and says how many are left.

Layout and the keyboard

How the app arranges what you have open, and the keys that move around it. All of this is a preference of this device — nothing here changes your notes or travels with them.

One view or several

Settings → Look → Layout has two answers:

  • One view — the default, on every device. You see one thing at a time: a view, or the note you opened from it. The strip of buttons (along the side of a wide window, or behind Views on a narrow one) moves between them, and Back returns to where you were.
  • Tiled — several views side by side in a grid, each with its own header you can drag to rearrange. Useful on a large screen when you want a board and a note open together.

A note is always a window of its own: it closes with × in its header, and the view you opened it from is still there behind it.

Columns

Only for Tiled. Settings → Look → Columns sets how wide the grid is. Automatic follows the number of open views — opening one widens the grid, closing one lets the others take the room back. A number pins the grid at that many columns, however many views are open.

Keyboard shortcuts

Settings → Keyboard lists every shortcut and lets you change it: click the shortcut, then press the keys you want (Esc cancels). A shortcut already in use says so, and so does one the browser would take before the app sees it. Reset to defaults puts them all back.

ActionKeyWorks while typing in a note?
Settings and the actions listCtrl+K (⌘K on a Mac)yes
Next viewCtrl+.yes
Previous viewCtrl+,yes
New noteCno
Search/no
UndoCtrl+Zno — inside a note it undoes your typing
RedoCtrl+Shift+Zno
New view, Close this view, Back upnot set— set one if you want it
Bold, in a noteCtrl+Bonly there
Italic, in a noteCtrl+Ionly there
Code, in a noteCtrl+Eonly there
Highlight, in a noteCtrl+Shift+Honly there

The four in a note keys format the words you are writing, and do nothing elsewhere. Each needs Ctrl or Alt, since a bare letter would type itself instead; Settings says so if you try.

Next view and Previous view work even while you are writing, which is why they exist: without them a note had to be closed before anything else could be reached.

On a phone or tablet there is no keyboard to speak of: the same actions are in Settings → Do something.

Food and training

formicaria can keep a food log and a training log beside your notes: what you ate against a target, how a week went, and the sets of a session. What you log is kept as notes in your own notebook — plain files, like everything else.

Early. New in 0.7.0, and used so far by one person on Linux and on an Android phone. On an iPhone, a Mac or a Windows computer it has not been tried. Following a diet or a regime (0.7.1), weight as a trend and routines (0.7.2), and meal times, the menu, packaged foods and the nutrient list (0.7.3), and the barcode look-up, the kitchen and the recipes that come with the app (0.7.4), and the week’s timetable, the exercise cards and their films (0.7.5), and the three-tab Fitness, the pick-from-a-list add sheet and the weeks and days to start from (0.7.6), and labels from any country and millilitres (0.7.10), and a label read from a photograph, kept pictures, recipes that save as you go and forms that keep what you typed (0.8.0, 0.8.1) were released before being tried on a phone.

Hiding it

Food and Fitness are two of the app’s groups and are shown unless you hide them:

Settings → Food & reminders → Food and training → Show Food, Fitness, Health, Music and Videos on this device.

The choice is this device’s own, like the theme that is on: hiding them at your desk does not hide them on your phone. Nothing you logged is touched either way.

The food list

To look a food up — its energy, protein, vitamins and minerals — formicaria uses a list of about 18,300 foods that comes with the app: there is nothing to get and no connection is needed. It takes about 11 MB on the device.

It is made from four European food tables:

  • Ciqual 2025, the French table, from Anses;
  • BLS 4.0, the German table, from the Max Rubner-Institut;
  • the Swiss Food Composition Database 7.1, from the Federal Food Safety and Veterinary Office, which has many Italian dishes;
  • the Tabelle di composizione degli alimenti (2019 update) of CREA, Italy’s research centre for food and nutrition: about 830 foods, the Italian cheeses, cured meats and breads by their own names, each with CREA’s portion to pick.

You can search in the table’s own language. Each food is named in English, and also by the name its table gives it: French for Ciqual, German for BLS, Italian for CREA, and Italian, German and French for the Swiss table. Type prosciutto crudo, jambon sec or Haferflocken and the food is found; the name it was found by is shown under the English one. Nothing is translated by formicaria, so a French-only name is not found by its Italian word.

A fifth, FoodData Central from the U.S. Department of Agriculture, is used only for what those four do not have: foods they do not list, and household portions (“1 cup”, “1 medium”), which neither European table gives. A search shows European foods first, and each result says which table it is from — two tables may both list a banana, and they are two measurements, not one.

The plain food comes first. Type water and drinking water leads, not watermelon; beer gives beer before beer ham, egg a raw egg before egg nog, lait milk before coconut milk. The word you typed as a whole word comes before a word it only begins, the food before a dish named after it, and the food as it comes — raw, plain, or a table’s average of its kinds — before what was done to it. A word typed without its accents (biere, cafe) finds the same foods. A word hidden inside a longer German or Italian one (wasser in Trinkwasser) is not found by itself.

What you have logged before comes first, marked Logged before with the amount you had: the second time you log a food, it is the first thing the search offers, and the list does not show it a second time. Not while choosing an ingredient for a recipe: that is a food from the list, in the amount its line names.

A value a food’s table did not measure is borrowed, and says so. No European table measures choline, CREA measures few vitamins, and every table leaves some foods unanalysed. Where a food has no value for a nutrient, it is taken from the closest food of another table that has one — the same food, or a very near one, by its name and its protein, fat, carbohydrate and water: from the U.S. table first, then from the other European tables. Logging the food says which values were borrowed and from what (“choline — taken from USDA: Egg, whole, boiled or poached”). A value is never invented: where no table has the nutrient for a close enough food — choline for many foods, since only the U.S. table measures it — there is no value, and the day says so rather than counting it as nothing. U.S. foods enriched by law (flour, bread, rice) and U.S. milk do not lend the vitamins and iron they were enriched with.

The same food is one food, whatever table or language you find it by. Macadamia nuts appear in the German, French, Italian and U.S. tables; they are offered once, with one set of values: each nutrient from the first of these tables that measured it — the German, the Swiss, the French, the Italian, then the U.S. one.

Some values are estimates, marked ≈. Where no table measured a nutrient for a food or a close one, it is estimated from the most similar foods of the same kind — but only for nutrients and kinds of food where the estimate was tested against real measurements and came out close (choline in meat, for instance, typically within a fifth). Selenium, iodine, folate and vitamins A, E and K are never estimated: tested, the estimates were too far off. The nutrients sheet says estimated from 5 similar foods (meat) beside such a value.

A food from a European table is logged by weight. If you want to log “1 cup”, pick the food from the U.S. table, which is offered when the European ones leave room in the results.

Branded products are not in the list: a packaged food is written down from its label or looked up by its barcode (see A packaged food below). Anything else can still be logged by name — see Quick add below.

Logging a food

Open Food among the views: it starts on Day, today. The strip of days under the date runs from six days back to a week ahead; ‹ and › step one day, and ‹ keeps going back past the strip’s first day, as far as you like. Press the date to come back to today. On a phone or tablet, swipe left or right to go to the group’s next or previous view (Day, Menu, Trends, Diet). The view follows your finger; let go early, and it goes back. Search a food to log, at the top, or the + beside a meal, opens the search with the keyboard up: type the first letters of a food straight away. You can also press the bar’s +. From the search or the bar’s + you say which meal it belongs to; the app does not guess one from the time of day.

  • Search — a food from the list. Choose one, then say how much: the − and + change the amount. Where a table gives portions for the food they are offered as chips: CREA’s Italian standard portions (a glass of wine, 125 g; a beer, 250 g; a glass of milk, 125 g) and USDA’s household ones (“1 cup”, “1 can”). A food whose own table gives none offers the same food’s from the table that does, and the chip names it (1 portion · CREA (Italy)). formicaria makes up no portion of its own, so a food no table gives one for — water among them — has none. Under the search are the buttons for a packet: scan its barcode, photograph its label, or type the label in.
  • Recent — what you have logged before, most often at this meal first. The + on a row logs it again with the amount it had. Tapping the row lets you change the amount first.
  • Quick add — any name and its energy. Protein, carbohydrate and fat are optional.

Tap a logged entry to change its amount. To take one entry out on its own, press the ✕ at the end of its row — the rest of the meal stays. Removing one offers Undo at once; undo also works from the ↶ menu, one step for each thing you did.

An empty meal offers Same as yesterday when yesterday had something there.

Recipes

The fourth way to add is Recipes. A recipe is a name, the number of servings it makes, and foods from the list by weight.

  • New recipe — give it a name and its servings, then Add an ingredient: search for a food and set how many grams go in. What one serving comes to is shown as you go. It is saved from the moment it has a name, and every ingredient, amount and picture after that is saved as you add it: there is no Save button, and leaving half-way loses nothing. You find it under Recipes and carry on.
  • Log it — tap a recipe, choose how much of a serving (in quarters), and add it to a meal. Every value the ingredients carry is logged, not only the ones on the day screen.
  • Change it — tap a recipe and it is all there to change: the servings it makes, Add an ingredient, and each ingredient — tap one to change its amount or Take out. Each change can be undone. What you already logged from the recipe stays as it was.
  • Write the method, times and notes — opens the recipe as an ordinary note. Write anything there: the method, how long it takes, the oven temperature, where it came from, what to do differently next time; add pictures; format it as you like. None of it is counted — only the ingredients are — and all of it is found by search.
  • Save a recipe from a link — paste the address of a recipe page (GialloZafferano, Cucchiaio d’Argento, Fatto in casa da Benedetta, Misya, Sale&Pepe, Cookist and most recipe sites) and it becomes a recipe of your own: its ingredients as the page lists them, the method, the times, and a link back to the page and to its photo. On a computer or a phone — not from a device paired to a computer, which cannot ask the computer to read a page.
  • Dictate a recipe — say it: its name, what goes in and how it is made, as you would tell someone. It is a recipe straight away, here under Recipes, with what you said in its notes; and Myrme is asked to sort it into ingredients and method in that same recipe — a proposal in Collaboration to accept or change. Needs the assistant with Audio transcription on (Dictating); if what you said cannot be written down, the recipe keeps the recording, and nothing is lost.
  • Choose the food for each ingredient — a recipe whose note lists its Ingredients (saved from a link, made from one that comes with the app, or typed in yourself) shows those lines here until each is matched. Tap one: the food search opens on what it names, and the amount on the grams it gives. Pick the food, check the amount, Add to the recipe — and that line counts. A line you leave, such as salt to taste, is simply not counted.
  • Remove this recipe takes the recipe and its ingredients away in one step, and can be undone.

A recipe is a note, and the same one from both sides. It is in your notes, tagged recipe, so searching the library finds it by anything you wrote in it, and you can tag it further like any other note. Opened as a note, it has Ingredients and servings at the top, which takes you here, to that recipe. Started here or from the template, it begins the same way: a Method, Times and Notes for you to fill in. You can also start one from the Recipe starter template — it arrives empty, and you put the ingredients in from here. The ingredients themselves are kept out of your notes, the way logged meals are.

What a recipe comes to is the sum of its ingredients as you entered them, divided by its servings. Nothing is adjusted for cooking: the app does not estimate how much water a dish loses or how much of a vitamin survives the heat. Choose the cooked form of a food where the list has one (“Rice, cooked”) if that is what you weighed. When an ingredient has no figure for something — a food with no iron value, say — the recipe says so: Iron from 3 of 4 ingredients.

An ingredient has to be a food from the list.

Recipes that come with the app

One search finds every recipe — yours and the 345 that come with the app — by dish, by ingredient or by region, with or without accents (tiramisu finds Tiramisù). Each row says where the recipe is from: Yours, NHLBI or Wikibooks (with its region). With nothing typed, the list is your own recipes, and a line says how many more the search reaches.

  • NHLBI — 54 recipes from the U.S. National Heart, Lung, and Blood Institute, in the public domain. They come with the Institute’s figures for a serving, so Add a serving logs one straight away — or plans it, from the Menu. Their amounts are in cups and spoons, so on the Menu and on a shopping list they are listed as the recipe gives them.
  • Wikibooks — 291 Italian recipes from the Italian Wikibooks cookbook (Libro di cucina), each filed there under an Italian region, shown word for word, credited to their authors and under their licence (Creative Commons BY-SA 4.0), with a link to their page and, where there is one, to a photo. Their pages give no nutrition figures, so one counts once its ingredients are matched to foods — the one extra step, below.

Open any of them to read it as published. Make it mine copies it into a recipe of your own — the same text, credited — to change, photograph and time as you like, and to match its ingredients to foods so it counts in your own amounts.

The day, and what it is measured against

The large number is what is left of your energy target for the day. Going past it is shown plainly — how far over — and not as an alarm.

Press Set a target (or Change) to say what a day should come to. A change applies from today on; earlier days keep the targets they had.

A set of targets can have a last day (Until). After it, the targets you had before apply again — so a few weeks of eating less, then back to normal, is two saves and nothing to remember.

What you follow is three small rings under the energy ring: until you choose, water, fibre and calcium. Each fills towards your own target if you set one, and says target. Otherwise it fills towards a published reference for adults and says reference, with a link to the document it is printed in (water’s needs your sex, in About you; until then it shows the amount alone). A reference is not a goal set for you. A limit, such as caffeine’s, is written under its ring rather than filled towards, and links to its source too. Choose lists every value — drinks and water, vitamins, minerals and fibre — to tick up to three, in the order you want them; All nutrients shows them all for the day. When a value comes from only some of the day’s entries it says so — from 3 of 4 — because an entry typed in by hand has energy and nothing else, and a total that left it out without saying would look complete.

Each meal is one line: its name, how many foods, what they come to, and its +. Press the line to see its foods, and press it again to fold them away; a meal opens by itself when you add to it. An empty meal with yesterday’s to offer opens on Same as yesterday.

Nothing you typed is lost

Leaving a form, changing view or closing the app does not throw away what you were doing.

  • A training session, a recipe, and a diet or regime you follow are saved step by step: each set, each ingredient, each change is written as you make it.
  • A form you have not finished — a label, a food typed in by hand, an exercise being planned, a routine being named, a diet or regime you are fine-tuning — is kept on the device. So is a change you had not saved to a set, a routine, a packet’s label or something you logged. Open it again and it says Carried on from where you left it, with Start afresh beside it.

A kept form is on this device only: it is not in your backup and not on your other devices until you save it.

A packaged food

A packet of pasta is not in a table of generic foods. Three buttons at the top of the add sheet are for it. Scan a barcode takes a picture of the barcode: a packet you have written down before opens straight away, and any other starts a form with its number filled in, from which you can look it up. Photograph a label has the assistant read the nutrition table off a picture and fill the form for you to check (see below; on a computer and on a phone). Each of these opens the camera; or choose one from the gallery, beside it, uses a picture you already took. Type in a label opens the same form empty: copy the label as it is printed — energy is the only line needed (none for a supplement, below).

Labels differ by country, so the form asks three things instead of assuming them:

  • What the figures are for: per 100 g, per 100 ml (drinks), or per serving — then say how big a serving is, in g or ml. A European packet is per 100; an American one is per serving.
  • Energy in kcal or kJ. If the label prints both, type the kcal.
  • Salt in grams, or sodium in milligrams, whichever the label prints.

Whatever you choose, the food is kept per 100 g or per 100 ml, worked out from what you typed. A food typed per 100 ml is measured in millilitres from then on: you log 250 ml of it, and a shopping list adds its millilitres up apart from grams. formicaria never turns a millilitre into a gram, because that depends on the food. Salt is typed as the label states it. You can add the number under the barcode and the ingredient list as well.

Vitamins and minerals, under the other lines, take as many as the label gives: + Add a vitamin or mineral offers each one the app counts, and each line is typed in µg or mg, as the label prints it. A label’s folic acid is kept as folate equivalents, 1.7 for each µg, the way the food list keeps folate. A label in IU gives vitamin D as 40 IU to 1 µg.

A supplement is a label per tablet, capsule or drop: choose that, say what one is (tablet, capsule, softgel, drop, sachet or scoop), and type the figures for one. No energy is needed. It is then counted in pieces — you log 2 capsules, never grams — and its vitamins count in All nutrients and in the rings on the day like any food’s.

It is saved as a note of yours and found from then on by its name, or by its barcode number, in the same search. Logging some of it works like any other food.

Photograph the barcode takes or chooses a picture and reads the number off it, so you need not type it. The picture is read on your device and is not kept. If nothing can be read, try again closer and in good light.

Photograph a label (also Photograph the label in the form) takes or chooses a picture of the packet’s nutrition table. The assistant on your device reads the table — with its text reader (OCR), in about a second — and the form is filled with what it found: what the figures are for, the serving if one is printed, energy, fat, saturates, carbohydrate, sugars, fibre, protein, and salt or sodium. Nothing is saved until you press Save it.

  • Check every figure against the packet. The assistant can misread a digit or mix two lines up, and the form cannot always tell. When the figures do not add up (sugars above carbohydrate, energy that does not match the rest) it says so in red, but a wrong figure can also look perfectly reasonable.
  • Take the picture close and in good light, with the table filling it. A table photographed sideways is turned and read again by itself; if it still reads badly, Turn the picture and read it again turns it a quarter turn each press. What was read shows the text as it was read.
  • It needs the assistant to have been turned on once, on a computer or a phone: the text reader comes with it. Measured on thirty packets in many languages, it read about three figures in four right, and wrongly far less often than the assistant’s picture-reading models, in a second instead of half a minute. Where it finds too little, a computer’s model that reads labels well reads the picture instead. A label in a script it does not know (Hebrew, Greek names) or a table a few millimetres high comes back mostly empty: type it in.
  • The picture goes to the assistant on your own device and nowhere else.
  • Labels are read in English, Italian, French, German, Spanish and Portuguese. A table printed sideways on (nutrients across the top) or two tables side by side may be read wrongly or not at all.

Pictures, and settling a label later. A packet keeps its pictures. The one you take of the label is kept, and Add a picture of the pack adds more: the ingredient list, the front. They are stored at full size in the food’s own note and go into your backup with it. A recipe of your own keeps pictures the same way (Add a picture of the dish).

With a name and a picture you can save a packet before its figures are known. Search then shows it as label not read yet. You can log some of it straight away: the entry keeps its amount and is not counted in the day’s totals, which say so, until the label is filled in.

To settle it, find the packet, and press Fill in its label. The form opens with its pictures; where the assistant can read labels (your computer, once a backup has brought the packet there), Read it under a picture reads it into the form. Check it against the picture, and save. What you logged before is then filled in with its share, and the screen says how many entries. An entry logged in grams of something that turns out to be measured in millilitres is not filled in, and you are told: open it and give its amount again.

Change its label does the same for a packet that already has figures, to put one right.

Looking it up. Once the form has a barcode number, Look it up at Open Food Facts asks that public database for the product and fills the form with what it has. Check it against the pack before you save: volunteers typed it in, it can be wrong, and for many products — more so outside Europe and North America — there is nothing. This is the one thing in Food that reaches the internet. It happens only when you press the button, and it sends the barcode number and nothing else. The saved note says where its figures came from.

In English too. Open Food Facts keeps a product’s name in the language of whoever first typed it in, so a tin bought in Italy can come back with a German name. The form’s name therefore starts with what the product is in English — its English name there, or else its category (“Canned chickpeas — Kichererbsen”) — and the ingredients get an English line when the database has one. When neither exists, the nearest food in the food list is named underneath instead. The look-up also says which countries it is sold in, and where its barcode was issued: a German number on a tin in Italy means the brand got its number in Germany (a German chain’s own brand, often), not that the food was made there.

When you ate

A food you log today is marked with the time you logged it; you are never asked. Open the entry to change the time or clear it. Under the day’s numbers the screen says how many times you ate and when the first and last were — entries less than 15 minutes apart count as one. It is a description of your day, not a score: no health body recommends a number of meals.

Not sure how much?

Under the amount, Not sure of the amount? lets you give a least and a most. The entry keeps your best guess, and the day then also says the least and the most it could have come to.

Are you following your diet?

If you follow a diet (see below), the Day screen names it and says how many of the things it asks of a day are met. Only the ones that are off are listed, each with how far: 13 g to go, 4% over. Press one to see which of today’s foods put most into it. When you are short of something, it also lists up to three dishes — from your recipes and the ones that come with the app — a serving of which has most of it, and what your day would then come to; press a dish to open it. If a serving would take something else past its limit, it says so. That is addition, not advice.

All nutrients

All nutrients, under the rings, lists every vitamin and mineral of the day beside the published reference value for an adult of your sex, with a link under the row to the table and page it is printed on. Press one to see which foods it came from, and, for each entry without it, why: typed in by hand, its label does not state it, or no table has it for that food. A day still to come counts what you have planned for it.

An entry from the food list is the food and how much of it. Its numbers are worked out from the food list each time they are shown, so when an update improves the list, every entry you logged improves with it — past days and planned ones alike. A packet written down from its label, a serving of your recipe and a food you typed in keep the numbers they were given. Where the reference differs for men and women and the app does not know which you are, it is left out until you say so in About you. The references describe what covers a population, not what you in particular need: they are not goals. Tick pregnant, breastfeeding or after the menopause in About you, and EFSA’s figures for that are used here and on the rings wherever they differ, and caffeine’s limit becomes 200 mg in pregnancy and while breastfeeding. EFSA’s vitamin A counts beta-carotene at one sixth where the food tables count it at one twelfth, so vitamin A from plants reads low. A figure the app cannot source is not shown at all.

Drinks and water, under the vitamins and minerals, are the day’s water, caffeine and alcohol, counted from everything you logged — every food in the list says how much water it holds:

  • Water, in litres, beside the European Food Safety Authority’s adequate intake of total water: 2.0 litres a day for women, 2.5 for men. Total means what is in food as well as in drinks — the soup and the fruit count — which is what the app adds up. EFSA’s figure assumes a moderate climate and moderate activity. Health’s Water card counts the same.
  • Caffeine, beside EFSA’s 400 mg a day, the intake that raises no safety concerns for healthy adults (200 mg in pregnancy). It is not a target.
  • Alcohol, the amount alone. None of the app’s sources gives an amount to aim for, and the app gives no advice about drinking.

Show on Day. Press a value in the sheet and then Show on Day, and it becomes one of the rings on the day screen; Trends offers it too. Shown on Day · take it off takes it away again. Day shows three — the same as ticking it under Choose. Your choice is kept in your About you note, so your phone and your computer show the same values.

Planning a meal ahead

Step to a day after today — the day screen reaches a week ahead — and add as usual. What you add there is a plan: it is shown in a lighter hand, and is in no total until you press the tick beside it. Same as yesterday on a day ahead plans it too.

Food → Menu is the days ahead, to fill in: today and the days after it, each with its meals. Set how many days with the minus and plus at the top.

  • The + beside a meal plans something for it, with the same sheet you log with: a food, or a serving of one of your recipes. It is a plan until the day comes; on that day’s screen you confirm it when you eat it.
  • next day beside a planned meal plans the same again for the day after — for a dish you cook once and eat twice.
  • Dishes on this menu says, for each of your recipes on it, how many of the servings it makes you have planned.
  • What it needs adds up what the planned meals take: a recipe’s ingredients for the servings planned, and plain foods by their amount. Mark what you already have with need it / have it. Make a shopping list saves the rest as a note with a box to tick on each line.
  • In your kitchen is the list of what you said you have — names only, no amounts to keep up. Add to it by hand, or take something off when you run out.

Each day shows what it would come to against your energy target and, if you follow a diet, how many of the things it asks of a day the plan would meet and how far off the others are. The app does not say how long a cooked dish keeps.

Food → Trends shows a week, four weeks or twelve. A menu at the top picks what to show — energy, protein, carbohydrate, fat, or any other value the day screen has — and that one is drawn day by day against its target; the averages of the others are listed below it. It says how many of those days have anything logged, because an average over three logged days is not a week’s average.

Weight is the last thing on that menu. With it showing, the + beside the menu writes down today’s weight, and the screen draws it as a line: where it is now, and how far it moved over the days shown. Two weighings in a day count as their average. The weight you give in About you (under Diet) is written down the same way, and the numbers worked out for you always use your latest weighing.

Steps are written down the same way: pick Steps on the menu and press + to note the day’s count from any phone or step counter. formicaria counts no steps itself. The Steps a day card reads what you write here.

Fitness

Fitness has four tabs: Week, Exercises, Regime and Coach.

Week

Your timetable, Monday to Sunday. Each day shows the routines you meant for it and what you did. At the top is the regime you follow and how the week stands against it, and what you lifted this week beside the week before.

  • Open on a day shows that day: its exercises and activities, to add to, change and tick. Back to the week returns.
  • A day still to come with a routine and nothing on it has Plan … to put the routine there.
  • Plan the days left as last week went copies what you actually did last week onto the same weekdays of this one.
  • If you follow a regime, its week to start from is shown here: an example, as a health body published it where one did, and otherwise arranged by the app from that regime’s own numbers — the screen says which. It is only an indication. Use it as my week turns it into routines of your own, which you then change freely.
  • With nothing followed and no routines yet, three example weeks from the U.S. CDC are shown.

Adding to a day

Press + (or Add an exercise or an activity on a day). You pick from a list — what you did before, activities such as walking, and the exercise cards (all, no equipment, or gym) — and it arrives with numbers to start from:

  • an exercise with sets and repetitions: what you did last time, or the figure on its card, or a general starting point from the NHS (2 sets of 8);
  • an activity with minutes and effort, where a source gives them (a 30-minute brisk walk).

The sheet says where the numbers come from. Change them to what you do, then add. Something not in the list can still be typed. It trains says which part of the body an exercise works, which a regime that counts sets per part needs. Effort runs from 0 to 10: 5 or 6 is moderate (you can talk, not sing), 7 and above is vigorous; lighter than that is recorded and does not count towards a weekly total.

Tick a set, or a planned activity, when it is done.

Routines

A routine is a day’s exercises kept under a name, meant for some weekdays; it comes back every week. Keep this session as a routine makes one from a day; Routines, at the bottom of a day, lists them to rename, change their days or remove. To change a routine’s exercises, plan it, change the day, and keep it again under the same name.

Exercises

How each exercise is done, in the words of the body that published it. Choose what you have — No equipment, A bar, Free weights, Machines — and the part of the body, then open a card for its steps.

  • The no-equipment cards are mostly the NHS website’s; the others are the U.S. Army’s exercise manual, which is public. The Army’s are written for soldiers and shown exactly as written.
  • To watch links to films on YouTube, often several: a health body’s own channel first; then a trainer whose science or clinical qualification could be read on their own site, shown with it; the Army’s own clips last. On the Army’s cards the films come above the text.
  • Safety tips for lifting, on every card that needs a bar, free weights or a machine (and at the top of those lists), opens the US National Institute on Aging’s safety tips, whole and as written.
  • How it is done, on other sites links to pages elsewhere — mostly the American Council on Exercise’s library — that explain the exercise and what to avoid. Only their titles are shown here; open them to read.
  • Add to today’s session starts the add sheet with that exercise. On a day, How beside an exercise opens its card.

Watch files

A sports watch’s activities can be brought in from its files — on a computer from a folder, on the phone by sharing a file or from one folder you choose (below). formicaria reads the .fit files the watch writes; it does not talk to the watch, use Bluetooth, or sign in to the watch maker’s account, and nothing is sent anywhere.

  1. Copy the files to a folder on this computer — plug the watch in over USB and copy its activity files, or use the folder another app (such as Gadgetbridge on a phone) exports them to, synced across.
  2. In Settings → Food & reminders, under Watch files (.fit), type that folder and press Check. You see what would be added before anything is.
  3. Press Import. The folder is only read; nothing in it is changed, moved or deleted.

What it reads, for each activity: the sport, when it started, the minutes, distance, climb, heart rate and cadence the watch measured, the effort you gave it on the watch (0–10), and a table of laps — or, for a pool swim, of intervals with their strokes and pace per 100 m. Each activity is one entry in your Week, counted like one you added yourself; its day is the day on the watch where you did it. The watch’s own estimates (training effect, calories) are kept under names starting watch_ and shown as the watch’s. The file itself is kept beside the entry.

  • Strength: each set the watch counted becomes a set, like one you add by hand, named after the exercise card that matches when there is one, else in the watch’s words. The repetitions are the watch’s count and are often off by one or two: change them, and what you write wins — a later import never changes an entry you edited.
  • Swimming: heart rate in water is the watch’s reading from the wrist and is often wrong there. It is kept as the watch’s and nothing counts it.
  • Importing again adds only what is new. A file that looks like an activity already there — the same sport, starting within a minute, for the same time — is shown as a possible duplicate and is not added. A damaged file is refused and named: delete it, then export or copy it again.
  • Not read: sleep, resting heart rate, heart-rate variability and the rest of a day’s monitoring.

On the phone

A watch’s app usually runs on the phone — Gadgetbridge, for example, a free app that connects to many watches without the watch maker’s account. formicaria takes its files two ways, and imports them exactly as a computer does: the same entries, nothing twice, damaged files refused and named. No attachment note is made; the file is kept beside its entry.

  • Share. In your files app, or in the watch’s app, share a .fit file and pick formicaria. It goes straight into Fitness, and a line at the bottom says what was added. Only a file whose name ends .fit and whose header says it is a FIT file is taken; anything else is refused with a sentence.

  • One folder. In Settings → Food & reminders → Watch files (.fit), press Choose the folder your watch app exports to, and pick it in Android’s folder picker. In Gadgetbridge, turn on its automatic export of activity files to the same folder. formicaria asks Android to read that one folder only, and keeps the permission on this phone (not in your notes). Each time you open formicaria or come back to it, new .fit files there are added; a file still being written is left for next time. If Android takes the permission back, or the folder moves, the section says the folder is no longer readable — choose it again. Stop reading it gives the permission back.

  • Gadgetbridge, from here. The same section says whether Gadgetbridge is on the phone. If not, Get Gadgetbridge opens its page on F-Droid; if it is, Open Gadgetbridge opens it. Set it up once lists the steps:

    1. In Gadgetbridge, add your watch and let it pair.
    2. In Gadgetbridge’s Settings → Automations → Auto export FIT tracks, turn on Auto export enabled and choose a folder. Activities synced before this is on are not exported.
    3. In formicaria, choose that same folder.
    4. In Gadgetbridge’s Settings → Developer options → Intent API, turn on Allow activity sync trigger.

    After step 4, Sync now asks Gadgetbridge to fetch the watch’s new activities, and formicaria looks at the folder again over the next three minutes, while Gadgetbridge syncs and exports — and, as always, each time you open formicaria or come back to it. Gadgetbridge does not answer a request it is not allowed to take, so if nothing comes, check that switch. formicaria still never talks to the watch itself.

Coach

Coach is for a goal with a date or a season — a first run, a 10 km or a half marathon, getting stronger for a sport, endurance and strength together. Regime stays the place for everyday health.

  • Plans. Each plan says what it is for, who it starts from, who it is not for, its caution, its weeks at a glance and the sources each of its rules rests on, with links. Filter them by sport or goal. Four come with the app:
    • The NHS’s 9-week running plan — a published plan, offered by its name: nine weeks of three runs with a rest day between. Its run and walk minutes are on the NHS’s own page, linked from the plan; formicaria does not copy them, so you take each week’s from there and write them in.
    • 10 km to a half marathon, Stronger for sport and Endurance and strength in one week — assembled by formicaria from research rules (mostly easy running, a long run, longer intervals, strength twice a week, a two-week taper; ACSM’s figures for strength; keeping endurance and strength apart or lifting first). Their sessions carry no number of their own: you write every minute, distance and target.
  • Follow writes one note that names the plan, what you train for, the day of your event (if there is one) and the week you are on. Following another plan, or Stop following, gives it a last day, as in Regime. Both can be undone.
  • This week lists the week’s sessions as rows — day, sport, minutes, kilometres, a target in your words, and its steps — filled only where a published plan gives a figure, blank otherwise. Put this week on my calendar adds them as planned entries of your training log, each linked to the plan, its week and its session; it is one step to undo.
  • Next week shows the plan’s next week beside what you did this week. formicaria never moves a plan on by itself: press Next week when you choose, or repeat the week.
  • Today shows today’s sessions with their steps: Done, Move (to another day) or Skip. A strength day’s sets open on Today’s sets, as on the Week. When a session of a plan is done, what was planned is kept beside what you did (planned_minutes and the like), so the two can be compared.
  • The calendar is the Coach’s own, by week or by month: your planned, done and skipped training. Two layers can be turned on and off — the meals planned on the Menu, and your meetings from the calendars you added, drawn faintly so sessions can be placed around them. Drag a planned session to another day, or press it and choose a date. Nothing of this appears on the Agenda, the board or the other Fitness tabs.
  • Progress, per sport and week: sessions done against planned, minutes done against planned, and distance. Only what was measured — no training load, zones or score across sports.
  • To your watch: a planned session on Today (and, under To the watch, in This week) can be saved as a workout file — Save .fit file — and, on the phone, handed to your watch’s app with Send to watch app: Android’s share menu opens and you pick the app (Gadgetbridge installs a workout file it is given on watches it supports). formicaria never talks to the watch itself. The workout goes to the watch’s Workouts list, not its calendar: start it from there. Its steps come from the session’s lines — write the numbers in them, such as Work: 4 x 800 m at 4:30/km or Recovery: 2 min under 130 bpm: a time, a distance, repetitions, a weight, a heart rate in bpm or a pace. A line with no number becomes a step that lasts until you press the lap key, with the line’s words on it — so a plan with no numbers yet still gives the watch its warm-up, work and cool-down. A percentage (75 % of maximum) is never sent as a target, because the watch would read it against its own settings; write bpm or a pace instead. This has not yet been tried on every watch.
  • From your watch: after importing watch files, a session that fits exactly one planned session that day (the same kind: endurance or strength) is offered — “This was your planned …?”. Say Yes, it was and the two become one entry: the planned one takes the watch’s figures, keeps what was planned, and keeps the watch’s file and lap table. Nothing happens unless you say yes, and it can be undone. A session that could be more than one planned session is listed for you to sort out on its day.

Following a diet or a regime

Food → Diet and Fitness → Regime let you choose what to follow and then show how your weeks measure up to it. Everything they hold you to is a number a named health body or study published; nothing is made up, and each number says whose it is.

Worth watching. At the top of both tabs, whatever you follow or if you follow nothing, are the same few numbers, read over the week, with the last four weeks beside them, oldest first:

In FoodIn Fitness
Saturated fat under 10% of energy (WHO, Nordic 2023; EFSA: as low as possible)Activity, 150–300 minutes a week (WHO)
Sodium under 2 g (WHO, EFSA; Nordic 2023: 2.3 g)Strengthening on 2 or more days (WHO)
Fibre at least 25 g (WHO, EFSA; Nordic 2023: 35 g for men)
Protein for your weight: 0.83 g per kg (EFSA); 1.0–1.2 g from 65 (PROT-AGE)

They were chosen because they are both the best-supported and measurable from what you log. Potassium is not among them on purpose: pushing it is not safe with kidney disease.

Choosing. The cards are shelved by what kind of thing they are, which says how they are measured:

  • Targets — numbers for nutrients, measured from what you log.
  • A way of eating — amounts of food groups. What the food list can measure is measured; for the servings, you say each day whether you kept to them (I kept to it today).
  • When to eat — measured from the times of what you log.
  • Weekly amounts and Programmes — measured from the sessions you log.
  • Yours — every number set by you.

Each card shows the question it answers (Am I eating healthily?, Getting stronger, …), what it rests on (a guideline, an expert consensus, a review of trials, a definition), and how it relates to the others — “Instead of WHO, for adults in the Nordic and Baltic countries”, “The middle of three: pick one”. Start here marks WHO’s two cards, the only ones written for all adults.

One card for each question. You can follow WHO’s weekly activity and a strength card and stretching, because they answer different questions; one session you log counts for every card it fits. Following a second card for the same question replaces the first — WHO 65 and over instead of WHO’s weekly activity, say.

In FoodIn Fitness
Eating healthily: WHO healthy diet · DASH eating plan · Nordic recommendations 2023 · Planetary health dietMoving enough: WHO weekly activity · WHO, 65 and over · Activity for losing weight · Activity in pregnancy and after
Enough of each nutrient: European reference values · Vegan or vegetarian: what to watchWalking more: Steps a day
How much to eat: Energy and protein for meGetting stronger: Strength, twice a week · Muscle growth · Minimal strength
When to eat: Two fasting days · Alternate-day modified fasting · Time-restricted eatingFitter heart and lungs: Norwegian 4×4 · Interval walking
My ownSteadier on my feet: Falls prevention · More flexible: Stretching · My own

Press a card to see, before anything is saved, what you will be held to (every number changeable — that is how you fit a card to yourself), about you where it needs it, what formicaria cannot measure, its sources as links, and a day or a week to start from. Follow this starts it today.

Anything we should know? Optional, never required: pregnant, breastfeeding, after the menopause, kidney disease, taking insulin or a sulfonylurea, an eating disorder now or in the past. A box you tick does only two things — shows the card’s note for it, and uses a number a health body publishes for you, or leaves a number out:

  • Pregnant or breastfeeding: EFSA’s folate (600 / 500 µg) and iodine; the energy figure gains EFSA’s 500 kcal while breastfeeding, and is left out in pregnancy; the fasting cards are left out.
  • After the menopause: EFSA’s 11 mg of iron instead of 16.
  • Kidney disease: potassium and protein are left out — with kidney disease your kidney team sets them.
  • From 65 (from your year of birth): protein 1.0 g per kg (PROT-AGE) instead of 0.83.
  • An eating disorder: the fasting and weight-loss cards and the energy ceiling are left out.
  • Insulin or a sulfonylurea: the fasting cards say to talk to your diabetes team first.

The library says how many cards it left out. A log can show intake below a reference; only a blood test shows a deficiency, and formicaria never suggests a dose of anything.

Being measured. Each card you follow shows one row for each thing it asks: what was asked, today or the week so far, the seven days from Monday, and the last four weeks — a day’s number as the week’s average, a weekly one as the week’s total. WHO’s numbers are averages for whole populations, so the trend over weeks is the reading closest to what they mean. A day you logged nothing on reads nothing logged, not zero; a weekly amount is only called short once the week is over.

The fasting cards: in trials, about as effective as eating a little less every day (Cochrane 2026; BMJ 2025). The interval cards are followed by logging the session under its name. A diet’s energy and protein numbers also become the targets on Food → Day.

Change its numbers starts a new set from today and leaves earlier weeks measured against what they had. Add a card, or change one opens the library. Stop following ends a card; undo brings it back.

Not offered: a Mediterranean card (its 14-question check is a research instrument whose reuse terms are not settled), low-carbohydrate and keto (no agreed definition), and “zone 2” (none either).

What is kept, and where

Each logged food or set is a note with a log property (food, workout), the day it belongs to, and whole numbers whose unit is in the name — kcal, protein_mg, iron_ug:

title: Banana raw
start: 2026-10-11
amount_g: 118
kcal: 112
log: food
protein_mg: 1357
slot: breakfast
source: foods@2026.10.1/bls:F503100

These notes are kept out of the board, the agenda, the timeline and search, so a year of meals does not bury your notes. They are backed up and shared with a notebook like any other note, and a removed one is in Recently deleted.

Targets are an ordinary note carrying program: food — it is on your agenda from the day it starts.

Health

formicaria can keep a health diary beside your notes: how a headache was, a blocked nose, how you slept, the painkillers you took, whether you washed the bedding, the days of your period. Each day is one note in your own notebook, a plain file like everything else. You choose what to track.

It records and counts. It never diagnoses, flags or advises. Where it sets your numbers beside a body’s (the NHS, NICE, the International Headache Society, FIGO), it names the body and quotes it, and it never puts a word to you. It is a record to bring to a doctor, not a doctor.

NICE is given in our own words, with the recommendation’s number and a link: NICE allows its text to be reused in the UK only, and formicaria is used everywhere. Such lines say In our words.

Everything stays on your device. The diary and the record are notes in your notebook; nothing in Health sends anything anywhere. Your notes go only where your own backup sends them. The assistant’s model runs on your device too. If you turn its web research on, only the search questions it writes go out (to Wikipedia, arXiv and GitHub), never your notes.

New, and not yet tried on a phone. Built in October 2026 and tried on a computer only. The screens are laid out for a narrow window, but nobody has used them on a phone yet.

Turning it on and off

Health is one of the app’s groups, beside Food and Fitness. It has three tabs: Diary to write in, Over time to look back, and Guidance for the cards. It is shown unless you hide it, with the same switch:

Settings → Food & reminders → Food and training → Show Food, Fitness, Health, Music and Videos on this device.

What you track

Press + in Health and choose Track something. Start from one of these, or name your own:

  • Headache: how bad (none, mild, moderate, severe), whether it lasted 4 hours or more, and nausea, light that hurts, noise that hurts. These are the fields the International Headache Society’s diaries keep and NICE asks for.
  • Nose and eyes: a runny, blocked or itchy nose, sneezing, itchy and watery eyes, each from none to severe, as the US FDA’s nasal symptom score counts them.
  • Cycle: see The cycle.
  • Blood pressure: two readings in the morning and two in the evening, systolic and diastolic, in mmHg, as NICE asks for a home reading: for at least 4 days and ideally 7.
  • Bladder: times passing urine (and at night), urine measured, leaks, pads and drinks, for at least 3 days, as NICE asks of a bladder diary.
  • Sleep: how long you slept, how long it took, times awake, how well.

Your own: give it a name (“Bedding washed”, “Ibuprofen”, “Sleep”) and say how it is recorded:

Recorded asKept asOn the Diary
None to severe_0to3four words: none, mild, moderate, severe
A number from 0 to 10_0to100 to 10
How much it bothered you_0to100a slider, from not at all bothersome to extremely bothersome
Yes or no_yesYes, No
How many times_count− and +
Doses of a medicine_doses− and +, under Medication
An amountthe unit: _min, _ml, _mg, _g, _mmhg, _pct, _ca number with its unit
An amount to a tenth_c10 (°C), _mmoll10 (mmol/L)typed as 38.1, kept as 381
A questionnaire score_scorea number, and a link to the questionnaire’s owner

What you track is kept on one note, Health diary, tagged template. Each thing you track is a property on it, and the end of the property’s name says how it is recorded. You can open that note and change it like any other.

Questionnaires (SNOT-22, HIT-6, MIDAS, the Epworth Sleepiness Scale) are not carried in the app: their owners do not allow it. Fill one in where its owner publishes it and type your total here.

The diary

Diary shows one day, with the same rows every day whether or not anything happened. Step back a day with ‹. The rows are in sections: Headache, Nose and eyes (the bedding is here too), Cycle, Medication (anything recorded as doses), Every day (sleep, caffeine) and Yours (anything else you named). The section comes from what a thing is, so there is nothing to set.

  • A row you leave alone is “not recorded”. “None” or “No” is recorded. The month counts the two apart, and a doctor reading it can tell them apart too.
  • Pressing the chosen word again takes the value away, back to not recorded.
  • The first row you touch makes the day’s note. There is nothing to save, and ↶ undoes it.
  • A day written in more than a day later is marked. People remember their own month less well than they think, so the mark helps whoever reads the diary.

Over time

Over time shows one thing you track at a time, chosen from Showing, in one of two ways.

Month is a grid of the month (press a day to open it in Diary; Back returns to the month), shaded by the value, dashed where nothing was recorded, with a dot where a day was written in later. Under it are the counts: days recorded, days at 1 or more and, for none to severe, the days that were moderate or severe.

Weeks shows a bar a week, from Monday, over 4 weeks, 12 weeks, 6 months or a year. For none to severe or yes or no, a bar is the days in the week; for how many times, the times in the week; for anything else, the average of the days recorded. Every week says how many of its days were recorded, and a week with none says nothing recorded rather than showing a zero. Mark puts the days of one yes/no tracker under the bars, for example Bedding washed under Headache.

From Food and your body log

What you already log elsewhere is shown in the Diary, under From Food and your body log, and not asked for again: the water in what you ate and drank, caffeine and alcohol from Food, and your weight and steps. They are changed where they were logged. Caffeine is only as complete as the food list: some of its tables do not carry it.

The record

Some things change rarely and are asked about at every visit. In Health → + → Start a health record, formicaria writes templates for them into your notebook, once: Medicine, Allergy or intolerance, Condition, Result, Visit, Immunization, Procedure, Device, Contact and No known allergies. Make one from + like any note. Each carries the tag shelf:health, and is an ordinary note you can link to and from.

  • A medicine has a status, current, stopped or on hold, and its first and last day. Keep a stopped one: it is history worth having.
  • A result keeps the value, and the range and flag as the lab printed them, with the report attached. Ranges belong to the lab that printed them. The app never looks one up, colours a result or explains it.
  • No known allergies says so, so it is not mistaken for allergies not written down.

The sections are the International Patient Summary’s, the standard for a record a person carries; a medicine’s lines follow FDA’s My Medicine Record.

For the doctor

In Over time, For the doctor makes a page of the diary. It opens with your record, as of today: current medicines, allergies, conditions, past operations and devices, which is what NHS, FDA and AHRQ guidance tells people to bring. Then:

  • for this month, or for the last 8 weeks, which is the least NICE asks a headache diary to cover;
  • the counts first, then a row a day;
  • with the things you tick, and nothing else;
  • ending with what its scales are and where they come from, and “A record, not a diagnosis”.

Print prints the page alone. Save as CSV saves the same numbers as a spreadsheet file, one row a day. Keep as a note keeps the page as a note, tagged health, with its tables written out: it reaches your other devices with your notes, and a computer can print it.

On a phone only Keep as a note is offered: Android’s web view, which the app runs in, does not print or save files by itself.

Guidance

Guidance holds cards, one per question, as in Food and Fitness. Each is in its sources’ own words, with whose they are, and a badge for what it rests on: Guideline, Expert consensus, Review, or Definition, not advice. Each card also says what it does not say, so it is not read as more than it is. Where two reputable bodies give different numbers, the card shows both and names each. A card is carried only when what it says is settled: a guideline, a definition or a health body’s own advice, never a question the research still argues over.

  • Keeping a diary: Keep a headache diary; Painkiller days.
  • Nose and allergy: Hay fever self-care; When to see someone.
  • Every day: Sleep; Caffeine; Water (counted from Food, beside EFSA’s 2.0 L for women or 2.5 L for men, by the sex in your profile); Blood pressure at home (your 7-day average, the first day left out as NICE asks, beside the NHS’s “135/85 or higher when checked at home”).
  • Cycle: Your cycle; Heavy periods; Periods and migraine; Premenstrual symptoms (the cycles your diary covers, beside the NHS’s “at least 2 menstrual cycles”).
  • Yours: the cards you write.

Follow a card, and what it counts appears at the top of Guidance. It also adds the things the card counts to what you track. The count is shown beside the body’s number, with the body’s words, for example “Days this week with any painkiller: 2 · at most 2 · NHS: ‘more than 2 days a week’”. A ✓ means your count is within the number. Nothing else is said about it.

Painkiller days asks which of your medicines are paracetamol, aspirin or an NSAID, and which are a triptan, an opioid, an ergot or a combination. NICE gives a different number for each, and the app does not guess a medicine’s class from its name.

Stop following ends it from yesterday. The note stays, and so do the days it counted.

Yours: Write your own makes a card of your own. Give it a name, your own words if you like (why, and who said so), one thing you track, how it is counted (days this week, days this month, days above or at a number, most days in a row), and your own aim if you have one: at least or at most. Its number is yours, so it needs no source, and it is badged Yours and says so.

Following a card is a note too, with program: health, so it is on the agenda from the day you started it, like a diet or a regime.

The cycle

The Cycle starter tracks the first day of each period, the flow (none, light, medium, heavy: the words Apple Health and Android’s Health Connect use), spotting, and period pain. It is added only when you add it.

  • A cycle runs from one first day to the next, as FIGO, the international federation of gynaecologists, defines it. Mark Period start on the first day of each period.
  • Nothing is predicted: not the next period, not fertile days, not ovulation. A late period is not read as anything.
  • Cycle context: on the day something changes your cycles (you started or stopped the pill, are pregnant, gave birth, are in perimenopause), write it in your own words; write none on the day it ends. Cycles while a context is in force are left out of the counts, as FIGO’s are, and they say so.
  • Missed logging: if a long cycle was really a gap in your diary, press Missed logging beside it in Your cycle. It is left out of the counts, and says so. Count it again undoes that.
  • Your cycle shows your cycle lengths beside FIGO’s 24 to 38 days and, separately, the NHS’s 21 to 35. It shows your days of bleeding beside FIGO’s 8 and the NHS’s 7. FIGO also gives how much cycles may vary by age, and that is compared only if your year of birth is in your profile (the one Food uses).

Keeping cycle notes to yourself

Everything you track goes wherever your notebook goes. For a cycle diary that matters more than for a food log, so be clear about where that is:

  • A backup is a copy. If the vault has a git remote, every day you write is pushed to it. A restic snapshot holds a copy too. See Backup & versioning.
  • Deleting a note does not remove it from history. The vault’s history, and every copy already pushed or snapshotted, still has it. Taking it out of history means rewriting that history with git tools outside the app, and then dealing with every other copy (the remote, other devices, snapshots). That is hard, so it is easier not to send the notes anywhere in the first place.
  • The simplest way to keep them to yourself is a vault of their own, with no remote, shared with nobody. Create one in Settings → Vaults & backup and keep your Health diary there.
  • formicaria has no account, no analytics and nothing that sends your notes anywhere but where you back them up. That is your choice to make, and this is what it means.

What doctors use these numbers for

These are quoted so you can compare your own counts. The app never applies them to you, and only a clinician can.

  • Headache days: “Number of days during an observed period of time (commonly one month) affected by headache for any part or the whole of the day.” (ICHD-3, definition of terms)
  • Chronic migraine: headache “on ≥15 days/month for >3 months”, with migraine features “on ≥8 days/month”. (ICHD-3, 1.3)
  • Painkillers, in our words: clinicians should think of medication overuse headache when a headache began or got worse while someone took triptans, opioids, ergots or combination painkillers on 10 or more days a month, or paracetamol, aspirin or an NSAID on 15 or more days a month, for 3 months or longer (NICE CG150, 1.2.7). The thresholds “are based on expert opinion rather than on formal evidence”. (ICHD-3, 8.2)
  • A long-lasting blocked or runny nose: two or more symptoms, one a blockage or a discharge, “for ≥12 weeks”. (EPOS 2020, 1.2.2.6)
  • How long to keep a diary: “for at least one month” (ICHD-3); at least 8 weeks (NICE CG150, 1.1.4); for a link with periods, at least 2 menstrual cycles (NICE CG150, 1.2.6).

When to get help now

A diary is for the weeks ahead, not for an emergency. For a sudden, very bad headache, weakness or numbness, trouble speaking or seeing, confusion, a seizure, or a high temperature with a stiff neck, call your local emergency number now. When to see someone in Guidance quotes the NHS’s full lists. 999 is the UK’s number; where you live, use your own.

In Singapore: 995 for an emergency ambulance, and National mindline 1771, a 24-hour helpline (WhatsApp +65 6669 1771). Premenstrual symptoms shows them on its card.

Where the words come from

Every quote names its source on its card. The research behind them, with what was read and what was left out, is in the project’s notes (docs/context/health-plan-2026-10-22.md). Text from the NHS website is used under the Open Government Licence v3.0, as at 22 October 2026.

Music

formicaria keeps your songs beside your notes. A song is a note, like a meal in Food: its title, artist, album and the rest are the note’s details, and its audio file is attached to it like any other file. Open a song’s note and it plays there.

New. Built in November 2026 and tried on a computer only. You can add songs, browse them by song, album, artist and playlist, make playlists and play them.

Turning it on and off

Music is one of the app’s groups, beside Food, Fitness and Health. It opens on its player, with your songs under it. It is shown unless you hide it, with the same switch as the others:

Settings → Food & reminders → Food and training → Show Food, Fitness, Health, Music and Videos on this device.

Adding a song

Press the + in Music, then Choose files — one song or many — or drop the files onto the sheet on a computer.

  • Each song fills itself in from its own file. Most music files carry their details inside them: the title, artist, album, track number, year, genre, length and often the cover. formicaria reads them on your device; nothing is sent anywhere.
  • A file with no details is read by its name: 05 - Some Artist - Some Title.mp3 gives the artist Some Artist and the title Some Title.
  • One file shows its form: change anything before you press Save.
  • Several files show one line each. Press a line to change it, then Save them all at once.
  • A song you already have is not added twice. If a file’s audio is already one of your songs, its line says so and it is left out.

What you type is kept in the song’s note. The file itself is never changed. The details its file carried are kept on the file’s own note too, so you can always see what it said.

Undo (↶) takes back the songs you just saved (a very large batch, 200 songs at a time).

The player

The top of Music is a music player: a lit display above a row of keys. It is there before anything plays; press a song below to start.

  • The display shows the song scrolling past, its number in what is playing (TRK 02/12), the time — press it to see the time left instead — and how far along it is: press or drag the bar to jump. Lights show SHUF, REP (or REP1), EQ and the volume, and on a computer a level meter moves with the sound.
  • The keys: shuffle, ⏮ (the start of the song, or the one before when you are near its start), ▶/❚❚, ⏭, and repeat — press it again for all, one, off. Where there is room (a computer, a tablet) also back and forward ten seconds and ■ stop.
  • Under the keys: mute and the volume; Sound; Queue (what plays next: press one to play it, × to take it out); the look; and the song’s note (on a narrow phone, the note is in the song’s ⋯ instead).
  • Three looks, changed in turn with the palette button: Classic LCD (the green display), 8-bit (bricks, a blue sky and a little note running along as the song plays) and Arcade (a night stage: the artist and the song face each other across the clock, the song’s bar wears down as it plays, the other bar is the volume). Only the look changes; every key is where it was.
  • Sound, on a computer: a five-band equaliser with presets (Flat, Bass boost, Rock, Pop, Jazz, Classical, Vocal, Treble boost) or your own setting, and the balance between left and right. Not on a phone yet.
  • Keys on a computer, while Music is open and you are not typing: Space play or pause, ← → five seconds back or on, N next, P previous, M mute, S shuffle, R repeat, + − volume. Your keyboard’s media keys work too, anywhere in the app.

It keeps playing wherever you go in the app. Leave Music, or scroll the player out of sight, and a slim bar appears at the bottom with the song and ⏮ ⏯ ⏭; press the song’s name to come back to the player (elsewhere in the app it opens Now playing: the cover, the controls and the queue).

What is queued, and your volume, shuffle, repeat and sound, are kept on this device, and come back the next time you open the app, paused.

On a phone the music keeps playing when you leave the app or the screen turns off, with its keys on the lock screen, in the notification, on headphones, Bluetooth and in the car.

Finding your music

Under the player: Songs · Albums · Artists · Playlists, and one search for all four. Type any part of a title, an artist, an album or a genre; every word must match, and capitals and accents don’t matter (beyonce finds Beyoncé).

  • Press a song to play it. The list you pressed it in becomes what plays next, in that order — search first to play just what you found. Play and Shuffle above a list play all of it.
  • Albums are their covers; press one for its songs in track order.
  • Artists list everyone with their albums and songs; a compilation’s songs are under each of the artists who made them.
  • ⋯ beside a song (or beside an album’s, artist’s or the whole list’s Shuffle): Play next, Add to queue, Add to playlist…, Open its note.

Playlists

A playlist is a note tagged playlist, with its songs as a numbered list of links. You can open it and edit it like any note — the list’s order is the order it plays in — but you rarely need to:

  • Make one with New playlist in Playlists, with Save the queue as a playlist, or from any ⋯ → Add to playlist… → a name → Make it.
  • Add to one from any ⋯ → Add to playlist… → its name. A whole album or artist goes in at once from its own ⋯.
  • In a playlist, a song’s ⋯ also has Move up, Move down and Take out of this playlist. Words you wrote in the playlist’s note around the list are kept.

Undo (↶) takes back any change to a playlist.

Audio in your notes

A note can hold audio of its own — a recording, or tracks saved with Save media into the note. A track saved into a note is also a song in your library, and the note keeps it as an attachment: one file, two places to find it. Notes that hold audio are listed under the playlists as In your notes: Play plays a note’s tracks as they are, and Add to playlist… makes them songs — the same files, nothing copied — then asks which playlist, as for any song. So a playlist can take songs from anywhere: Music, a saved page, a note.

Where your songs are kept

A song’s file is kept in your notebook like any picture or PDF you attach, so it is in your backups with everything else.

Song files are not sent with your notes to your other devices, unless the file is under your notebook’s Send attachments under limit and Music and recordings travel with the notes too is ticked — off unless you tick it (see Backup). The songs’ notes do travel, so another device lists your songs; add the files there too to play them.

A file is copied when you add it: songs you also keep in a music folder take their space twice.

From the web, and to other players

  • Songs from a web page: Save media keeps a page’s sound (or an embedded video’s) as a song, into the playlist you choose. Saving media.
  • Other players: each playlist is also written as a .m3u8 file in the vault’s playlists/ folder on a computer, and any Subsonic player can stream your Music from it (Settings → Connections). The files are the vault’s own; nothing is copied.
  • Videos have a section of their own, built the same way: every video, collections, a search and a player.

formicaria’s browser

Browse the web inside formicaria and keep what you find as a note, in one press: a recipe, a paper, an article, a video or a song, with a copy of the page as it was.

It is how formicaria runs on a computer (Linux, Windows and macOS): formicaria brings its own browser, so it needs no other. On the phone, web pages open inside the app (see the phone’s page).

The first start

The first time formicaria starts, it gets its browser ready by itself, then opens in it: about a minute or two, said in the window formicaria starts from and, where the computer can, in a notification. formicaria downloads Firefox ESR, Mozilla’s long-term-support browser engine, from Mozilla, checks it (against Mozilla’s signature where the computer can check one, otherwise against the sum this formicaria release recorded), and makes it formicaria’s: its name, its icon and its look. It is not a fork of Firefox: Mozilla’s own build, with formicaria’s touches added on this computer. It is about 90 MB to download and 320 MB on your computer, in formicaria’s settings folder (~/.config/formicaria/browser/ on Linux), with a profile of its own, so it is separate from any Firefox you already use.

If it cannot be set up (no connection, say), formicaria opens in the computer’s own browser for that time, and Settings → Browser says why, with Try again.

It starts out private:

  • strict tracking protection, which also isolates each site’s cookies;
  • secure first: every page is tried over an encrypted connection, and a site that has none opens over plain http, marked not secure, as in Firefox (Privacy → Always https asks before such a site instead);
  • Global Privacy Control tells sites you do not want your data sold or shared;
  • cookie banners are refused where Firefox knows how;
  • DuckDuckGo is the search engine (change it in Firefox’s settings);
  • Safe Browsing is on, as in any Firefox: Firefox checks pages against Google’s list of dangerous sites;
  • nothing is sent to Mozilla (telemetry and studies are off);
  • uBlock Origin is offered, not installed: turn on Install uBlock Origin in Settings → Browser to block ads as well. (It is off by default because, measured, it made the browser use much more memory; Firefox’s own tracking protection is on either way.)
  • Mozilla’s telemetry, studies, Pocket, sponsored content, Firefox Suggest and the AI chatbot are off.
  • Sites cannot send you notifications while their tab is closed unless you turn on that switch in Settings → Browser.

Your settings in Firefox’s own Settings page are yours: formicaria only sets the starting values, and what you change there stays.

Your Mozilla account and Sync work, if you want them: sign in (Settings → Account and sync) to bring your bookmarks, passwords, history and add-ons from another Firefox.

Your history, cookies and sign-ins stay on this computer, in the browser’s profile. They are not part of your notebook and are never synced.

Other Firefox add-ons work too: install them from Firefox’s add-on site as in any Firefox.

Save a page

On any page, press the ant in the address bar (or Alt+Shift+K), or right-click the page and choose Save page in formicaria. formicaria reads what the page says it is and saves it:

The page isIt becomes
a recipe (the page publishes its recipe for search engines, as most recipe sites do)a recipe note with its Ingredients, Method and Times, in Food → Recipes, its ingredient lines ready to match to foods
a paper (the page carries its citation, as journal and arXiv pages do)a paper note with its authors, year, DOI and journal, like one made from a pasted BibTeX entry, with its abstract
a video (YouTube, Vimeo and others)a note with the link and the title, tagged shelf:Web; the video itself is not downloaded
a song or album page (Bandcamp and others)a note with the link, tagged shelf:Web; music you have bought is added with Add a song
anything elsean article: its text, read the way Firefox’s reader view reads it, tagged shelf:Web

Every saved page ends with a link to a copy of the page as it was when you saved it, stored in your vault like any attachment. Large copies stay off git under the vault’s size limit for attachments, as every attachment does.

If you select text before saving, it goes at the top of the note as a quote, with a link that reopens the page with that passage highlighted.

Then press Open in formicaria to go to the note. It is yours: edit it, tag it, move it.

One row: your tabs

  • On formicaria’s own tabs there is one row: ← and → to go back and forward, formicaria’s button (the ant, at the left end of the tab row on every tab: Save media on this page, New private window, Help, and a search of your notes and the web), your tabs, +, 🔥 and ⚙ Settings (with Privacy in it) at the right end. The address row appears only on web pages, which need one, and has its own ← and →.
  • Settings is always at the top right (⚙, at the right end of the tab row), on every tab: a note, a feature, a web page. It opens Settings in a tab of its own, or goes to the one already open.
  • 🔥 beside ⚙ forgets the web: it asks first, then closes the web’s tabs and forgets their cookies, stored data, cache and history, keeping formicaria’s tabs and the sites you keep signed in. Forget web data.
  • A private window: the ant’s New private window, or Ctrl+Shift+P. It is Firefox’s own: nothing from it is remembered once it closes. formicaria’s protections, ad blocking and its button work in it as in any window.
  • Every tab is one thing: a feature (Notes, Tasks, Agenda, Food journal, Fitness, Health, Music), a single note, or a web page. A feature’s tab starts with its line: the feature’s name (Food ▾) switches this tab to another feature (Back returns), and its views follow (Day · Menu · Trends).
  • + (or Ctrl+T) suggests: a new tab offers the features, a new note, and a field for a web address or a search. What you choose fills the tab.
  • Opening a note from a feature opens it in a tab of its own, as a link would.
  • Select text inside formicaria and its icon appears beside it: bring the passage into the note you looked at last, any note, or a new one. (On web pages, the same icon; see below.)
  • Two tabs side by side: drag a tab onto the left or right half of the page (Firefox’s split view), for any two tabs.
  • Switch back in one press: Alt+Shift+X goes to the tab you had before, and again to come back.
  • Close any tab as you would any tab: its ×, Ctrl+W, or a middle-click.
  • Your tabs come back when the browser starts again, unless Forget when closing is on (then only formicaria’s own tabs do). An old whole-app tab becomes Notes.
  • Updates restart the browser by themselves. After formicaria updates, its browser saves what you were typing in every open note, closes, and opens again on the same tabs within a minute, with the update in place. Nothing to do by hand.
  • Prefer tabs down the side? Settings → Browser → Tabs down the side.

Bring things in, or save the page

Two things you can do with what you find, and the same words everywhere:

You wantDoWhat happens
this in what you are writingSnip it: press the ant in the address bar (or Alt+Shift+S, or hold Ctrl+Shift and drag on the page) and drag over what you want. Or select text: formicaria’s icon appears right beside it; press it, and choose where it goes: the note in front (first, so Enter is enough), another note (type to find it; it goes in without the note opening, so you stay on the page), or a new note. Or right-click it → Bring into “…”it goes into the note in front: the note whose tab you looked at last (its name is on the icon’s tooltip and the snip’s bar), straight into the note, open or not. With no note looked at yet, a new note named after the page is made
the whole page, for laterSave the whole page in the snip’s bar, or right-click the page → Save page in formicaria, or Alt+Shift+Kthe page becomes its own note: a recipe in Food, a paper with its citation, anything else tagged shelf:Web, with a copy of the page

The snip’s bar also offers what the page plainly has, one press each: The main text, The images, The table, or Save as a recipe / Save as a paper when the page is one. And when your assistant is running, Ask Myrme what matters here: it reads the page and proposes the passages that matter for the note in front, as proposals you accept; nothing is added until you do.

A snip brings everything in the area, each as itself, in reading order: paragraphs, headings, lists, tables, code, images, links, a video at the moment it was playing. What has no text behind it (a chart drawn by the page, a map) comes as a picture of the area. If you would rather have the area as one picture, press As a picture instead.

What happened is said where you did it: a small bubble on the page, with Undo and the one other choice.

What arrives is what you pointed at:

  • text comes quoted, with its bold, italics, links and lists, and a link that reopens the page at that passage;
  • an image is kept in your vault (large ones come as a link, with Keep a copy one press away);
  • a link comes as a link;
  • a table comes as a table, code as a code block;
  • a video or audio file comes as a link, with Keep the file one press away; a video on a streaming site comes as a link to the page at the moment it was playing.

After each one, the bubble on the page (or, from a menu or a drop, a line in formicaria) says what came in, with Undo and the one other choice (Link only instead, Keep the file).

What is hard to select (an image in a slideshow, a whole table): right-click the page → Pick from this page…. What is under the pointer lights up and says what it is; scroll to widen it to what contains it, or narrow it back; click to bring it in (Shift+click to bring several); Esc to stop.

After you select something on a page, formicaria does what you choose in Settings → Browser: show formicaria’s icon beside it (the starting choice), bring it in at once (every selection goes in; hold Alt to just select; a double-click on a word never does), or nothing.

Bring into a note is the page-with-an-arrow button in the address bar; on a page with a video or a sound it offers Save media… first. This page is in your notes: when a note already names the page you are on, that button is filled red; press it, and the snip’s bar says In 2 of your notes: press that to see them, each with the line that names the page, and open one beside the page.

Search the whole library from the address bar: type fm, a space, and what you are looking for. Each result says its section (✎ Notes, ♪ Music, ◍ Food, ◎ Web…) and opens as a tab.

Exactly where it came from. A saved page ends with the full address it was read at, with the date and time, and, when the page names a different address to cite (its canonical address, a paper’s abstract page), that one too; a paper’s citation records the date it was read. Every piece you bring in ends with a link to the page at that passage, and when. The note’s source is web, with the exact address and the time. Every source formicaria reads from (mail, calendars, files, and later a watch) describes what it brings the same way.

Highlight a page or a PDF

Select words on a page and press formicaria’s icon, then Highlight, or right-click and choose Highlight in formicaria. The page is kept the first time, and the words are marked in its note. In a PDF of your notes the same right-click puts the words, with their page, into the PDF’s note. Highlights, quotes and review explains what you can do with them next.

Bookmarks

Press ☆ in the address bar, or Ctrl+D, as in any Firefox. Firefox keeps its bookmark (so your Mozilla account still carries it to your other Firefoxes), and formicaria makes a bookmark note: the page’s title and link, tagged shelf:Bookmarks, without a copy of the page. The panel that opens says Also saved in formicaria, as a note, with Open the note. Remove there takes both back. A page that already has its note is not saved twice: the panel says Already in formicaria.

After saving a whole page, Just the link instead in the bubble swaps the copy for the same kind of note. Like every note, a bookmark travels to your other devices with your notebook, and search finds it. Bookmarks that arrive by your Mozilla account stay Firefox’s and do not become notes.

Updates

formicaria keeps its browser up to date by itself. Mozilla’s security releases are checked once a day, fetched, checked against Mozilla’s signature and prepared in the background, by formicaria itself while it runs. If the browser is closed, the new copy goes in straight away; if it is open, formicaria shows a line at the top: close the browser’s window and open formicaria again (your tabs come back). If a new copy does not start, the previous one stays. A formicaria update that changes the browser’s look works the same way.

Downloads

Every download asks where it should go, and keeps one copy:

  • Keep in formicaria (the default: press Enter). A song goes to Music. An album bought as a zip (from Bandcamp and the like) becomes its songs in Music; the zip itself is not kept. Any other file becomes a note with the file attached, tagged shelf:Web, saying where it came from. Nothing is left in your Downloads folder.
  • Downloads folder: the download carries on as in any browser.
  • Choose a folder…: Firefox asks where to save it.

Closing the question without choosing sends the file to your Downloads folder, so a download is never lost. If formicaria cannot take a file, it is saved to Downloads and a notification says why.

What it does not do

  • It does not download videos or music from streaming sites.
  • It sends nothing anywhere but your own formicaria: the page is read in your browser and kept on your computer.
  • Windows and macOS: not yet.

Privacy and media

  • ⚙ Settings → Privacy holds formicaria’s privacy switches (search engine, trackers, ads, cookie pop-ups, tracking links, Global Privacy Control, secure connections, forgetting web data, sites kept signed in, forgetting when closing); they are Firefox’s own protections, set from one place. Privacy.
  • The ant’s Save media on this page, or right-click → Save media in formicaria…, keeps a page’s video or sound in your library. Saving media.
  • Save page keeps the whole page as one self-contained file: its pictures, styles and fonts inside it, so it opens the same offline (its videos and sounds keep their addresses). Its link in the note opens the copy in a new tab, as it was saved, with nothing in it able to run.

Privacy

Each of formicaria’s protections is a switch you can turn on and off, on the phone and on the computer. They are kept per device: your phone and your computer each have their own.

Where: Settings → Privacy, on the phone and the computer. With a web page in front on the phone, its row’s ⋮ → This site’s privacy shows what was blocked there and turns its protections off or keeps it signed in.

The switches

SwitchWhat it doesOn at first
Search withThe engine the web field searches: DuckDuckGo, Startpage, Brave Search, Mojeek or Kagi. All private.DuckDuckGo
Block trackersRequests to companies that follow you from site to site are refused. On a computer this is Firefox’s strict tracking protection.yes
Block adsAds are refused and the empty boxes they leave are hidden. On a computer it installs uBlock Origin Lite in formicaria’s browser (the full uBlock Origin used five times the memory).yes
Refuse cookie pop-upsConsent banners are answered “reject” for you and closed. On the phone this uses DuckDuckGo’s own rules; on a computer, Firefox’s cookie banner reduction.yes
Clean tracking linksTracking parts of an address (utm_…, fbclid, gclid…) are taken off before the page opens.yes
Tell sites not to sell or shareGlobal Privacy Control: a signal that sites must honour in some places (California, parts of the EU).yes
Always httpsEvery page is tried over https first, whatever this says. Off, a site with no secure version simply opens over plain http, marked not secure in the address bar, as in Firefox and DuckDuckGo’s browser. On, such a site shows a page first, within a few seconds, with Open it anyway, this time.no
Encrypted lookupsWhich sites you open is hidden from your network: the names are looked up over an encrypted connection, by Quad9 (or Mullvad DNS). That service sees the names instead. The network’s own turns it off. On a computer, formicaria’s browser; on the phone, the apps covered by Block trackers in other apps.Quad9
Block trackers in other appsThe whole phone: see below.no

On the page in front (the phone), the sheet says what the protections did there: how many requests were blocked, pop-ups refused, links cleaned and pages made secure.

A site that breaks: Protections off for this site turns every protection off for that site and its subdomains. The sites are listed in the sheet, each with Protect again.

Forget web data (🔥)

🔥 Forget web data closes the web’s tabs and forgets every web page’s cookies, stored data, cache and history on this device, after asking, as DuckDuckGo’s fire button does. formicaria’s own tabs, your notes, the files you kept, and formicaria’s own settings stay.

  • Where: at the right end of the tab row in formicaria’s browser, next to ⚙ (on every tab); on the phone, 🔥 at the right end of a web page’s row; and in Settings → Privacy on both.
  • On a computer every web tab closes, and a private window too. The closed tabs are not offered again by Ctrl+Shift+T. On the phone every page tab closes.
  • Kept signed in (DuckDuckGo calls it Fireproof): the sites you list keep their sign-in, meaning their cookies and stored data, when the web’s data is forgotten. Their history and cache still go. Add one from the Privacy sheet: type its name (mail.example.org) and press Keep, or, on the phone with that page in front, press Keep signed in when forgetting. Stop keeping lets one go. On a computer, keeping a site keeps the whole of it (example.org and every part of it).
  • Forget when closing (a switch, off at first): on a computer, the browser forgets the web’s tabs and data each time it closes, except the sites kept signed in. When it opens again only formicaria’s own tabs come back. A browser that stopped before it could forget does so as it starts. A restart for an update does not count as closing. On the phone, formicaria forgets when it starts again, and when you come back to it after five minutes or more away.

On a computer, Firefox’s own protection does the work: its strict tracking protection (which also blocks known fingerprinting scripts, gives fingerprinting scripts made-up answers, and stops trackers that bounce you through their own sites), its cookie banner reduction, and its stripping of tracking parts from links (with formicaria’s longer list of them). More sites adds DuckDuckGo’s cookie pop-up rules, run by formicaria’s own add-on. Extensions are added only where you ask (open source, from addons.mozilla.org), installed while their switch is on and removed when it is off:

  • Block ads → uBlock Origin Lite (if you installed the full uBlock Origin yourself, it stays);
  • DuckDuckGo’s protections too → DuckDuckGo Privacy Essentials, its own tracker list on top of Firefox’s.

An extension you installed yourself is never removed.

On the phone, formicaria’s pages are protected by the same lists people use with uBlock Origin (EasyList, EasyPrivacy, uBlock Origin’s own and Peter Lowe’s), with uBlock Origin’s harmless stand-ins for refused scripts, so pages break less. Tracking links are cleaned: tracking parts taken off, and a tracker’s redirect (a link through google.com/url, l.facebook.com…) skipped straight to where it goes.

On a computer, the switches reach formicaria’s browser within a few seconds. Firefox’s own settings stay yours: formicaria changes one only when you change its switch here.

Block trackers in other apps (phone)

Trackers inside your other apps are refused for the whole phone: formicaria runs a local VPN that answers the phone’s address lookups and refuses the addresses of known trackers. Nothing leaves the phone. Only in the F-Droid build of formicaria.

Its lists are made for apps: DuckDuckGo’s app tracker list, EasyPrivacy and Peter Lowe’s, fetched by the phone (none is inside the app). A tracker hidden behind another name is refused too. The lookups it lets through go encrypted to the service chosen in Encrypted lookups.

  • One VPN at a time: while it is on, another VPN (for work or privacy) cannot run.
  • Android shows its key icon while it is on, and asks once for permission.
  • Android’s Private DNS set to a provider sends every app’s lookups there, past the block: the sheet says so. Set it to Automatic or Off to use the block.
  • An app that looks addresses up through its own encrypted service is not seen. Stop apps going around the block refuses those services, so the app uses the phone’s lookups; an app that insists can stop working, and can be let through.

What is not protected

  • Your address (IP): sites still see where you connect from. That is a VPN’s or Tor’s work.
  • Your browser’s fingerprint, fully: formicaria’s browser blocks known fingerprinting scripts and gives the rest made-up answers to the usual questions, but does not make every browser look the same, as Tor Browser does. On the phone, pages that read a drawing, a 3D drawing or a sound to tell your phone apart get tiny made-up differences, the same on that site and different on every other (new each time the fire button is pressed), while Block trackers is on.
  • On an iPhone formicaria opens web pages in Safari, whose own protection applies.

What formicaria itself sends

Nothing about you: no telemetry, no account. These features add contact, each only while its switch is on: the block lists are downloaded from their publishers (about weekly; uBlock Origin’s quick fixes daily), the names of the sites you open go to the encrypted-lookup service you chose (Quad9 at first), and the media tools update themselves (see Saving media).

The usage diary

So that formicaria can be made faster and lighter, each device keeps a usage diary: what formicaria did there, never what you did with your things. It is on at first; Settings → Privacy → Usage diary turns it off, shows how much is kept, and Delete it removes every line.

  • What it holds: each part’s memory and processor every five minutes (formicaria itself, its browser, the assistant); each start and stop and how it ended (closed, crashed, killed); how long commands and pages took; errors; which features you use, counted by name (“opened Food”, “saved media”).
  • What it never holds: a note’s text or title, a web address, a search, a mail, a name. Errors have anything quoted, any address, path, email or long number taken out.
  • Where it is: on the computer, in formicaria’s settings folder (formicaria/diary/, a file a day, kept 90 days and at most 100 MB). A phone keeps its own, and every hour adds its new lines to your first vault (.formicaria/usage/), so your notes’ sync brings them to your computer — and to wherever that vault is synced. Nothing is sent anywhere else.
  • Reading it: pixi run usage-report in formicaria’s source folder summarises it.

Saving media from the web

On a web page, Save media keeps its video, or its sound, in your library: a song in Music, a video in Videos, or an attachment of a note. Embedded players count too: a news article with a YouTube video in it offers that video.

Where: on a computer, the ant at the left end of the tab row → Save media on this page, the address bar’s bring-in button → Save media… on a video or music page, or right-click a page, a video or a sound → Save media in formicaria…; on the phone, ⤓ on the page’s row (it appears when the page has a video or a sound), hold the video or sound → Save this video, or the page row’s ⋮ → Save media.

Choosing

The sheet lists what the page holds: its embedded players (YouTube, Vimeo, Dailymotion, SoundCloud, Bandcamp, podcast players…), its own videos and sounds, the media files and streams it fetched, and the page itself (which finds what is embedded in it). A player is listed as audio or video by what it plays. On a Bandcamp page each track is listed by its title and saved as Bandcamp streams it to anyone (MP3, 128 kbps; a purchase’s own download is better), with its title, artist and album; a Bandcamp player on another page is saved from its track’s or album’s page. When a page lists several tracks (an album), tick the ones you want, or All tracks: Save fetches them one after another, each a song of its own, into the playlist you choose — a new one is named after the album unless you name it. They go on if you close the sheet, and if formicaria is paused or closed half way the rest carry on the next time you open it (a track already in your library is not fetched twice); Start no more leaves the ones not yet begun. Spotify is not listed, since the downloader cannot read it. Choose one; formicaria looks at it (its title, length, the heights it comes in), then:

  • Keep: The video (choose the height), The sound, as the site serves it (the best quality, no conversion; AAC or Opus, which every current device plays) or The sound as MP3 (about 190 kbps by default; 192, 256 or 320 kbps to choose).
  • Into: Music for a sound (a playlist chosen, or a new one), Videos for a video (a collection chosen, or a new one), or the note you looked at last.

Press Save: the sheet shows it being fetched, converted and put in your library, then Open.

One copy, the final product only

  • Only what you chose is fetched: the sound alone never downloads the video.
  • The work happens in a staging place inside the vault that is never synced or backed up; only the final file enters your library, and the staging place is emptied when the job ends, fails or is cancelled.
  • A file you already have is not kept twice: the same file saved from two pages is one file.
  • The title, artist, year and cover go inside the file itself, so any player shows them, and the note keeps where it came from (the media’s address, and the page it was on).

Your media in other players

  • On a computer, formicaria writes each playlist and collection as a .m3u8 file in the vault’s playlists/ folder, pointing at the vault’s own files: point any player (VLC, foobar2000, Jellyfin…) at the vault and the collections are there.
  • Settings → Connections → Your music in other players lets any Subsonic player (Symfonium, DSub, Tempo, Feishin…) stream your Music from this computer, with its own password. From a phone it reaches the computer while sharing with a nearby device is on.
  • On the phone, Open with… on a video hands its file to another app, without copying it.

The tools

formicaria uses yt-dlp (which knows over a thousand sites) and ffmpeg (which converts and joins).

  • On a computer they are fetched the first time you save, about 70–150 MB once, each checked against the fingerprint this release of formicaria carries. yt-dlp keeps itself current between releases, once a week and again when a site has changed.
  • On the phone yt-dlp is inside the app (distributed under GPL-3.0 because of it; see the README), and updates itself there too. The phone needs no ffmpeg: it makes MP3s and writes the tags itself, and joins a video’s picture and sound with Android’s own tools.

What cannot be kept: media protected against copying (DRM: films and series from streaming services, music services’ songs), and live streams while they run. What you may keep from a site is yours to judge.

When a site changes how it serves its media, saving from it fails until yt-dlp catches up, usually within days; the sheet says so.

Meetings from your calendar

formicaria can read your own calendar and keep a note for every upcoming meeting. New meetings appear by themselves, a meeting that is moved moves, and a cancelled one is marked. You never have to do anything after the first step.

Add a calendar

  1. Copy your calendar’s private address. In Google Calendar, open Settings, choose the calendar under Settings for my calendars, then Integrate calendar, and copy Secret address in iCal format. In Outlook, Settings → Calendar → Shared calendars → Publish a calendar gives an ICS link (your organisation may have switched this off).
  2. In formicaria, open Settings → Connections → Calendars. Give it a short name such as work, paste the address, choose which notebook the meetings go into, and press Add calendar.

The calendar is read when formicaria opens and then every 5 minutes while it is open. A calendar that has not changed costs one download and touches nothing.

What it does to your notes

  • Each upcoming meeting becomes a note tagged meeting and the calendar’s name, with its start and end, so it shows in the Agenda. The place and organiser are kept on the note.
  • When a meeting is rescheduled, its note’s start, end and place are updated. Its title and anything you wrote in it are never changed.
  • When a meeting is cancelled, its note gains the tag cancelled. Notes are never deleted.
  • Meetings that are already over are not added.
  • Two meetings at the same time are marked ⚠ clash in the Agenda’s week, so an overlap does not pass for one meeting after another. A meeting with no end time is drawn as an hour.
  • A repeating meeting gets one note per occurrence for the next two months. Later ones appear as time passes. If the organiser moves one week, that week’s note moves. If they drop a week or move the whole series to another day, the dates it no longer has are tagged cancelled, never deleted.

Under each calendar, Settings says how the last read went: how many meetings were new, moved or cancelled, and how many were left out and why.

Your time zone

The whole app — the agenda, reminders, food and health days, the meetings found in mail — runs on one clock, set in Settings → Clock. It is Automatic unless you choose: this device’s own zone, and it follows it — change the time zone of your computer or phone, and within a few minutes every view shows the same meetings at the local hour. Choose a zone there instead when the computer’s own setting is wrong, or when you want to see your agenda on another clock while travelling. Each device has its own setting. The same note shows at the right hour on every device — 18:00 on a laptop in Tokyo, 10:00 on one in Berlin.

The small label beside the agenda’s M / W / L switch says which zone you are looking at — for example Berlin · GMT+1; hold the pointer on it to see the clock your notes are kept on.

That works because each notebook has one clock its times are kept on: the zone its first save was made in (for most people, home), the same on every device. To set it yourself — useful if you live where clocks change in summer — add "notes_time_zone": "Europe/Rome" to the notebook’s vault.json.

A meeting given on another clock is moved onto yours. An event your calendar holds in Berlin time, at 10:00 on 27 October, is shown at 18:00 in Tokyo; the note still says which zone it was written in. The same goes for an email that says “10am Berlin time” or “15:00 CET”: the assistant proposes 18:00 and shows the email’s own words beside it. A time with no zone written after it is taken as yours.

Until version 0.19 the zone was set under Settings → Calendars; a zone set there is carried over to Settings → Clock the first time 0.19 starts.

Privacy

  • The private address works like a password: anyone who has it can read your whole calendar. It is kept only on this computer, in a file only you can read, and is never saved in your notes, so it is never shared with anyone you share a notebook with.
  • The address can only be read. formicaria cannot change your calendar through it.
  • A tablet you have paired with this computer cannot see or change your calendars.

Limits for now

  • A few unusual repeat patterns (for example “the last weekday of the month”) are not read yet. Those meetings show only their first date, and Settings counts how many.
  • If you delete a meeting’s note, it comes back at the next read while the meeting is still on the calendar. Tag it instead, or remove the meeting from the calendar.
  • Calendars are read on the computer only, not on the phone app yet.

Mail (Gmail)

For meetings (formicaria 0.53): formicaria reads the Gmail you label to keep your meetings current, and Collaboration shows when mail was last read and, for each conversation, what was read and what it meant for the next meeting. Its settings are in Settings → Connections → Mail, for meetings. Writing mail stays in your webmail, as a web page (formicaria’s browser on a computer, Web on the phone); there is no Mail section and no sending from formicaria.

formicaria can read your Gmail and keep a note for each conversation you care about. Invitations inside messages become meetings straight away. It reads only conversations with a label you choose, from a date you choose, and it can only read: Google gives it no way to send, delete or change mail. Label a conversation once and formicaria follows all of it — the replies you send and receive afterwards are read too, even though Gmail does not put the label on them.

What it does to your notes

  • One note per conversation, tagged mail, titled by its subject (without Re:, R:, Fwd:). It holds the whole exchange: every message with its sender, recipients, date and time, attachment names (the files themselves are not copied) and text. Quoted earlier messages are trimmed from replies (English, Italian and Chinese mail), since they are already above. A link opens the conversation in Gmail.
  • New replies are added in date order — at the bottom, or above a later email if an older one arrives late. Anything you write in the note is never changed or moved, and reading the same mail again adds nothing.
  • An invitation in a message becomes a meeting note, exactly as if it came from your calendar. An updated invitation moves it, and a cancellation tags it cancelled. If the same meeting is also in your Google Calendar, it stays one note.
  • Mail is read when formicaria opens and then every minute while it is open, up to 200 new messages each time.

Where the text goes. The exchange is part of your notes, so it goes wherever the chosen notebook goes. If that notebook is copied online (for example to GitHub), the emails, including what other people wrote to you, are copied there too. They stay in the notebook’s history even after a note is deleted, and reach anyone you share the notebook with. To keep mail on this computer only, choose a notebook that has no online copy under Into.

Set up your Google Cloud client

Once, about 10 minutes. Google only lets an app read Gmail through a “client” registered with Google. You create your own, so the arrangement stays between you and Google.

Before you start: sign in to https://console.cloud.google.com with the Gmail account you want read. If you are signed in to several Google accounts, check the picture at the top right — every link below opens in that account. If the console is in another language, add ?hl=en to the address to see the names used here.

Each step below is one page of the console, with its own link. At the top of every page, check that the project menu says formicaria: a link opens whichever project you chose last.

  1. Create the project — https://console.cloud.google.com/projectcreate. Project name: formicaria. Press Create, wait for the notification, and press Select project in it.
  2. Turn on the Gmail API — https://console.cloud.google.com/apis/library/gmail.googleapis.com. Press Enable. (Do this before step 4: Google only lists the Gmail permission once its API is on.)
  3. Register the app — https://console.cloud.google.com/auth/overview. Press Get started and fill in four short pages: App name formicaria and your Gmail as the support email → Next; Audience External → Next; your email as the contact → Next; tick the agreement → Continue → Create.
  4. Allow reading Gmail, and nothing else — https://console.cloud.google.com/auth/scopes. Press Add or remove scopes, type gmail.readonly in the filter, tick …/auth/gmail.readonly, press Update, then Save at the bottom of the page. If it is not listed, paste https://www.googleapis.com/auth/gmail.readonly into Manually add scopes.
  5. Make the sign-in last — two pages, described in Stop the weekly sign-out: fill in Branding, then press Publish app in Audience. Skip this and Google signs you out every 7 days, and mail stops being read until you sign in again. If you would rather stay in testing, add your own Gmail address under Test users at https://console.cloud.google.com/auth/audience instead.
  6. Create the client — https://console.cloud.google.com/auth/clients. Press Create client. Application type: Desktop app. Name: formicaria. Press Create, then copy the Client ID and the Client secret from the window that opens (or press Download JSON to keep them).

Connect it

  1. In Gmail, create a label called formicaria, and a filter that applies it to the mail you want read: a sender, a mailing list, or a subject. When you create the filter, tick Also apply to matching conversations so existing mail is included.
  2. In formicaria, open Settings → Connections → Mail. Paste the Client ID and secret, check the label, choose Read mail from (two weeks ago by default) and the notebook, and press Save.
  3. Press Sign in with Google. Google opens in a new tab and warns that it has not verified the app. That is because the app is your own project, and the developer it names is you. Choose Continue — or, once the project is published, Advanced and then Go to formicaria (unsafe), which is how Google words the same choice for an unverified app. Google lists one permission, view your email messages and settings: tick it if there is a box, and Continue. Then close the tab. Google emails you a security alert that formicaria now has access; that is this sign-in.

Things to know

  • If mail stops, Collaboration says so — a red Mail stopped card with Google’s reason and a Sign in with Google button — and so does Settings → Connections → Mail. Nothing new reaches your notes until you sign in again.
  • Changing the label or the start date reads that mail from the beginning. Notes already made stay, and nothing is duplicated.
  • Disconnect stops all reading and asks Google to cancel the sign-in. The notes already made stay.

Stop the weekly sign-out

While your Google Cloud project is in testing, Google ends formicaria’s sign-in after 7 days (Google’s rule). Mail then stops being read, and replies stop reaching your notes, until you sign in again. To stop it for good, publish the app. Google first asks for a home page, a privacy policy and terms for it; formicaria’s website has all three, so you can give those. (Check on each page that the project menu at the top says formicaria.)

  1. Branding — https://console.cloud.google.com/auth/branding. Fill in, and press Save at the bottom:

    FieldWhat to put
    Application home pagehttps://formicaria-org.github.io/formicaria/
    Application privacy policy linkhttps://formicaria-org.github.io/formicaria/privacy.html
    Application terms of service linkhttps://formicaria-org.github.io/formicaria/terms.html
    Authorized domains → Add domainformicaria-org.github.io

    App name, support email and developer contact are already there from set-up. Leave the logo empty: Google shows one only after it has reviewed the app.

  2. Publish — https://console.cloud.google.com/auth/audience. Under Publishing status, press Publish app, then Confirm. The status reads In production.

  3. In formicaria, press Sign in with Google once more — in Collaboration’s Mail stopped card, or in Settings → Connections → Mail. A sign-in made while the project was in testing still ends on its 7th day; the new one does not.

What publishing changes, and what it does not. Nobody else can use your client: they would need its ID and secret, which only you have. Google keeps showing its “Google hasn’t verified this app” screen at sign-in, now with no Continue button: choose Advanced, then Go to formicaria (unsafe). The Audience page keeps saying the app requires verification; that is the same fact, not a step left to do. An unverified app may be used by at most 100 Google accounts in its lifetime (Google’s page on this), which one person is far inside. You do not need to send the app to Google for verification.

The assistant finds the meetings

With the study assistant switched on (Settings → Assistant → Study assistant), it reads each conversation once a new message arrives, works out where its meeting stands now — after the last message — and proposes whatever changed. You find the proposals in Collaboration. Each one shows the date, time and place it would set as fields, next to what the note has now — and you can correct them before accepting: a wrong hour or room is fixed there and then, not by turning the whole proposal down.

  • The conversation note becomes the first meeting. Accepting gives it the date, time and place, the tag meeting, and a short box at the top quoting the sentence the meeting came from. The emails below are untouched. It now shows in the Agenda.
  • Each further meeting in the same exchange is proposed as its own meeting note, linked back to the conversation. If you reject it, nothing is created.
  • A time given in another zone is moved onto yours. “Tuesday 27th at 10am Berlin time” is proposed at 18:00 if your time zone is Tokyo’s, and the box shows 18:00 (10:00 Berlin time). The zone must be written right after the time — a city or country and “time”, an abbreviation such as CET or PT, or an offset such as UTC+2. With none written, the time is taken as yours. Your time zone is the one in Settings → Clock (Your time zone).
  • If a later email moves the meeting, the assistant proposes moving the conversation note to the new time — even though the old time is still written in the earlier emails above it. A meeting that has already taken place is never moved.
  • If a later email keeps the time but sends a place — a room, or a meeting link such as Zoom — the assistant proposes that place for the meeting, and leaves the time as it is. A vaguer word (“online”) never replaces a link the meeting already has.
  • If a later email calls the meeting off — “I won’t be able to make it”, “it will not take place” — and no new time is set, the assistant proposes marking it cancelled. Nothing is deleted: the meeting stays in the Agenda and the Calendar, struck through, so you can still see what was planned. If a new time is agreed later, it is proposed as a move, and the meeting is on again.
  • Each conversation gets a proper title, once: the person you are writing with and who they are to you — “Sara Lodi — Master student, robotics project” — in place of the email subject. It is a proposal like the rest, with a Title field you can correct; the name must appear in the emails, and the description is kept to a few words. A title you gave yourself in the form “Name — …” is left alone.
  • Each proposal quotes the sentence it came from, with who wrote it and when, so you can see at a glance whether a time is one you proposed and nobody has answered yet.
  • It keeps up on its own. Mail is read as soon as formicaria opens and every minute after; new mail wakes the assistant at once, and it goes through the changed conversations one after another. A reply reaches Collaboration within a minute or two, with nothing to press.
  • Collaboration says what it made of each reply, under Mail: when mail was last checked, and for each conversation the email it read up to and its verdict — a proposal, or nothing to change — the meeting stays at … when a reply only confirms what is already on your Agenda. Tap a line to open the conversation.
  • The model never writes a date itself. It copies the sentence and the words for the day and time; formicaria checks that the sentence really is in the emails and works out the date from the day that message was sent (“giovedì”, “domani”, “il 28”, “16/10”, “next Monday at 3pm”; “next week on Friday” is the Friday of the following week). If the words cannot be read exactly, the meeting is left out rather than guessed. A bare hour from 1 to 7 (“alle 3”) is read as the afternoon.
  • What you reject is not asked again, and a meeting already in your Agenda (for example, from an invitation) is not proposed twice.
  • Tasks are yours to create; the assistant only looks for meetings.

Appearance

Formicaria ships with a dark look and a warm light one, switched in Settings → Look → Theme. Beyond that you can change how it looks yourself — and because the result is a file in your vault, it travels with your notes.

The quick way

Settings → Look → Appearance asks three questions:

  • Accent — the colour of links, buttons and the focus ring. Four presets, or any colour you like.
  • Text size — small, normal or large.
  • Font — the system font, a serif, or a monospace.

Answering any of them creates a theme called My appearance in your vault and switches to it. There is no save button: the change is written as you make it.

You see it as you change it. Settings opens beside what you were looking at, never over it: on a wide screen it stands at the right and the page stays readable (and usable) beside it; on a phone it is a sheet over the lower part of the screen, the page above it, and its ⌃ button makes it taller (⌄ shorter again). A web page stays shown too.

Reading width

How wide a note’s text runs on a computer, set in Settings → Look → Reading width:

ChoiceCharacters a line
Narrowabout 60
Comfortable (the default)about 75
Wideabout 100
Fullthe note’s whole width

The text stays centred, with the same width when you read a note and when you write in it. Tables and blocks of code are allowed wider than the text, up to the note’s width, and scroll sideways past that. To give one note the full width, open its ⋯ and choose Full width. Readable width puts it back. Both choices are kept in this browser, so a phone and a paired tablet keep their own (a phone has no setting: there a note is the screen’s width).

Making the text bigger with Ctrl + (⌘ + on a Mac) enlarges the letters and the column together, so the number of characters a line stays the same.

Starting from a suggestion

Under Start from a suggestion are four ready-made themes. Use copies one into your vault as a theme of your own and switches it on — from then on it is yours, and Edit changes it like any other. Using one again, or after you have changed your copy, makes a second copy (Paper 2); it never overwrites the first.

ThemeWhat it isDark / light
Paperwarm off-white, brown accent, a serif — like a printed pagealways light
Night inkdeep blue-black with a soft blue accent, for working at nightalways dark
High contrastblack on white (or white on black), clear borders, a strong accentfollows your choice
Large and calmbigger text, more space between lines, a shorter line to readkeeps your colours

They are also the quickest way to learn the format: open one with Edit and change a line.

Writing your own

Under the same heading is a list of your themes, each with Edit and Delete. Edit opens the theme’s text, and it is applied as you type — so you can see a change before you commit to it. Nothing is written to your vault until you press Keep; Cancel puts back exactly what was there.

A theme is ordinary CSS that sets the app’s own names:

:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --text: #2b2b2b;
  --accent: #8a5a2b;
  --font-sans: Georgia, 'Iowan Old Style', serif;
  --radius-md: 4px;
}

If a theme contains anything the three questions cannot describe — a rule of your own, a media query, a name outside the list below — the questions switch themselves off rather than overwrite what you wrote. Edit it as text instead.

If a theme makes the app unusable

It can happen: a theme is CSS, and CSS can hide things.

  • While a theme is on but you have not yet clicked anything, a plain Turn off button sits in the bottom-right corner. It is styled not to inherit your theme.
  • If that fails, close formicaria and open it again. A theme that was on when you last ran the app, and which you were never able to click or type through, is not switched on again — you get a message saying so, and the built-in look back.

Nothing about this can lose a note. A theme only changes how things are drawn.

Where themes live

<your vault>/themes/*.css, one file per theme, versioned with your notes. Copy your vault to another computer and your themes come with it.

Which theme is switched on is not part of that. Like the dark/light choice, it is remembered per device, so a laptop and a phone can look different, and a collaborator who pulls your vault gets your theme files without being forced to wear them.

A theme is capped at 128 KB — the entire built-in design system is about 14 KB, so this is not a limit you will meet by accident.

Themes and dark/light

A theme that sets colours under :root uses them whatever Settings → Look → Theme says — Paper stays light even when the app is set to dark. To follow the choice instead, give each mode its own block, as High contrast does:

:root[data-theme='dark']  { --bg: #000000; --text: #ffffff; }
:root[data-theme='light'] { --bg: #ffffff; --text: #000000; }

A theme that sets no colours at all — only sizes and fonts, like Large and calm — keeps whichever built-in colours are in use. (Before version 0.8.9, colours in a theme were ignored in light mode. They now apply in both.)

The names you can set

These are the app’s own design tokens. They are a promise: they will keep meaning the same thing as the app changes. Anything you leave out keeps its built-in value.

Backgrounds and text

NameWhat it colours
--bgthe page behind everything
--surfacepanels, the side bar, board columns
--surface-elevatedcards, menus, dialogs — anything that sits on top
--surface-hovera row or button under the pointer; also tags, counts and dates
--borderordinary dividing lines
--border-strongthe edges of inputs and buttons
--textthe main text
--text-mutedsecondary text — dates, counts, descriptions
--text-subtlethe faintest text — hints and placeholders

Accent and links

NameWhat it colours
--accentthe main buttons, chosen items and highlights
--accent-hoverthe same, under the pointer
--accent-contrasttext drawn on the accent (keep it readable against it)
--accent-subtlea faint wash of the accent behind a chosen item
--linklinks in notes
--focus-ringthe outline round whatever the keyboard is on
--shadow-sm · --shadow-md · --shadow-lgthe shadow under cards, menus and dialogs (any CSS box-shadow value)

Legible in every theme. Every theme formicaria offers, in light and in dark, keeps text at a contrast of at least 4.5 to 1 against what is behind it, the accessibility guideline (WCAG) for reading text; focus rings and coloured markers keep at least 3 to 1. A check measures each theme before every release. A theme you write yourself is yours: the same names are listed here, but nothing measures it.

Highlights and meaning

NameWhat it colours
--tint-a · --tint-b · --tint-cthree highlight colours — coloured text and callouts in notes, charts; --tint-c is also the highlighter
--u-overduea date that has passed (in the agenda and on the calendar)
--u-soondue in the next few days
--u-weekdue this week
--u-laterdue later
--u-noneno date
--danger-bg · --danger-fgwarnings and anything that deletes: background and text
--ok-bg · --ok-fgconfirmations: background and text
--chip-bg · --chip-border · --chip-fg · --column-fga status chip and a board column’s title: the saturation and lightness (and, for the background and border, the transparency) of their colour, written 60% 20% / 0.55; the hue comes from the status word

Type

NameWhat it sets
--font-sansthe font for everything you read and write
--font-monothe font for code
--measurehow long a line of a note may grow (for example 68ch, about 68 characters)
--text-basethe size of ordinary text — the one to change first
--text-xs · --text-sm · --text-md · --text-lg · --text-xl · --text-2xlthe smaller and larger sizes, smallest first: labels, then headings
--lh-xs · --lh-sm · --lh-base · --lh-md · --lh-lg · --lh-xl · --lh-2xlthe space between lines for each size (a number such as 1.6)

Shape and spacing

NameWhat it sets
--radius-sm · --radius-md · --radius-lghow rounded corners are: small controls, cards, dialogs (0 for square)
--radius-pillfully rounded chips and tags
--space-1 … --space-8the spacing steps, from 4px to 64px (--space-2, --space-3, --space-4, --space-5, --space-6 and --space-7 between)

Larger spacing takes room from a phone’s narrow screen; change the small steps a little rather than the large ones a lot.

You can of course write any CSS you like, including rules aimed at the app’s own elements. That works — but those are internal and may change between versions, and the names above will not.

Assets & media

Assets — images, PDFs, video, audio, any file — are stored once as content-addressed blobs (keyed by the SHA-256 of their bytes) and referenced from notes. Identical files are stored once; the hash is the identity.

Adding an asset while writing

In a note’s editor you have these fast paths:

  • Drag a file in. Drop it onto the editor; formicaria ingests it (hashing, MIME sniffing, text extraction) and inserts a reference at your cursor.
  • Paste a picture. A screenshot copied to the clipboard (the Snipping Tool, PrtScn, or your system’s screenshot with copy) goes in with Ctrl+V, or any other way of pasting: ⌘V, Shift+Insert, the right-click menu, or a long press → Paste on a phone. It is added exactly as a dropped file is, and named for when you pasted it.
  • Type /. A menu opens at your cursor listing your most recent notes; keep typing to search by name (and extracted text) across everything. The search covers notes and assets together and labels each with its type — see Linking notes. Assets appear once you type a query, which is also the only place they show up: they get no card of their own in the Board, Agenda or Timeline.

Both insert a Markdown image reference like:

![my figure](asset:sha256-<hash>)

You can also ingest from the command line: fm add path/to/file.pdf.

Once you move off its line, the editor draws the picture (or the player, or the PDF) in place of that reference, as the read view does.

On the phone: Share from another app

After taking a screenshot, tap Share under it (or share a picture from the gallery) and pick formicaria. It opens and asks where the picture goes:

  • the note open now, if one is — first, because a screenshot taken while writing a note is usually for it;
  • New note;
  • any other note — your recent ones are listed, and Find a note searches by name.

The picture is added at the end of the note you choose, and the note opens so you can write beside it. Several pictures shared at once go in together. Cancel adds nothing. A single picture over 25 MB is not taken from here; open the note and add it with 📎 instead.

On the phone, there is no longer a size limit

Attaching used to stop at 16 MB on Android, which refused most video. The limit was never about what a sensible attachment weighs — the phone can only carry a file to the app as text, and a whole file encoded that way stops fitting in memory. Since 2026-09-04 a large file is sent in slices instead, so only one slice is in flight at a time and the file’s own size stops mattering. Small files still go in one piece, which is quicker.

What has not changed is where those bytes live. A phone vault is the app’s private storage: Android erases it when the app is uninstalled, and backing up your notes does not carry their media unless the vault sets a size limit for attachments (see Backup). So a video attached on a phone has exactly one copy until it reaches a computer that can snapshot it. The app says so in Settings, and it is worth believing before trusting a phone with the only copy of something.

How media renders

In the read view, a referenced asset renders with the native browser element for its type:

Maths and diagrams render the same way, from the note’s own text and with no network access:

  • Images — inline.
  • PDFs — a scrollable, multi-page inline viewer (the browser’s own) — on the desktop only. Android’s WebView cannot draw a PDF inline, so on the phone a PDF is a link that opens in whatever app the phone uses for PDFs.
  • Video / audio — with native playback controls.
  • Anything else — a labelled link to open it.

If the blob isn’t present (e.g. a fresh clone before the media has synced), the reference degrades to a small “not available” placeholder — media absence is a warning, never a broken page. The extracted text of a PDF travels with the note (in git), so a paper is searchable even before its blob arrives.

Where blobs live

Blobs are written under vault/blobs/ and by default do not travel with the notes — they are backed up by the snapshot tier, keeping the notes repository small. A vault can let attachments under a size limit travel with the notes: Send attachments under, in Settings.

Backup & versioning

Your vault holds two very different kinds of thing, so it is backed up in two tiers. Back up does the light one by default; the heavy one is a box you tick.

What it carriesWhere
Notes (default)your notes, views, themes, manifest.json — plain text, with historygit → your remote
Snapshot (Take a snapshot)your notes and blobs/: images, PDFs, video — no historyrestic

The split is not an accident. Your notes are small, plain, and mergeable, so git carries them anywhere for free. Your media is heavy and is deliberately kept out of git (blobs/ is in the vault’s .gitignore), which is what keeps the notes repo small and clonable forever — but it also means pushing your notes does not back up your media. The Vaults section says so every time, and tells you afterwards exactly what left the machine.

Neither tier is a copy of the other, and neither is a copy of the whole folder. Git has your history and your views and themes; the snapshot has your attachments. Between them they do not cover everything in the vault folder — see what a snapshot contains below.

Attachments can travel in git too, if you want them to. A vault can set a size limit — Send attachments under in Settings — and anything at or under it is pushed with the notes, so a screenshot in a note arrives with the note on your other machine. It is off by default, and it is set per vault rather than per computer, because git history is permanent: a large file committed once is in every clone forever. Use it for small things and leave the heavy ones to the snapshot tier. Under that limit, music, recordings and videos still stay out unless you tick Music and recordings travel with the notes too or Videos travel with the notes too beside it — each file is recognised by what it is, not by its name. The snapshot keeps them either way.

There is a ceiling: 100MB per file, and the app will not go past it. formicaria does not use git-lfs, so an attachment that travels in git is stored whole, in history, for good — every clone downloads it again, and taking it back means rewriting history other people have already pulled. Above roughly 100MB most hosts (GitHub among them) refuse the push outright, and they refuse it after your commit is made, which is the worst moment to discover it. So:

Limit you setWhat happens
up to 50MBaccepted
50–100MBaccepted, and Settings says what it costs
over 100MBrefused, with the reason

If a vault’s vault.json asks for more than 100MB — hand-edited, or written by another machine — the extra is simply not sent, and Settings tells you so rather than letting a push fail. Anything above the ceiling belongs in the snapshot tier below, which carries attachments of any size and has none of these problems.

Setting up (once)

Open Settings → Vaults & backup and paste your vault’s git remote under that vault, for example git@github.com:you/notes.git. That is the only setup the light tier needs. Everything about a vault is set there and only there, in one block: its folder, where it is sent, its snapshot repo, which attachments travel with it, when it was last saved, and removing it from the list.

The Back up button is for doing, not setting up: it opens a short menu — Back up notes, Get their changes, and Take a snapshot once a vault has a snapshot repo — so nothing is sent by pressing it once.

Your vault is its own git repository, independent of the app’s source: its remote is yours to choose and has nothing to do with where formicaria’s code lives. formicaria initializes the repo on first edit and auto-commits a few seconds after each change, so your history is local from the start; the remote is just where you send it.

Authentication is your existing git setup where you have one — an ssh-agent key or a credential helper, exactly as a git push in a terminal would use, and formicaria keeps nothing of its own. An SSH remote always works this way.

Where there is no such setup — an https:// remote on a machine with no credential helper, which is the usual case on Windows and on the phone — Back up asks for an access token and stores it itself, in its own private storage. It says which of the two is happening at the moment it asks. Use a fine-grained token limited to the one repository, with an expiry date.

Backing up

formicaria backs up by itself. It gets the changes from your other devices and sends yours — the same thing the Back up button does — at these moments:

  • a little after you stop writing;
  • when you leave a note you wrote in, so your other device has it before you pick that one up;
  • when you leave the app, and when you come back to it after more than half a minute away;
  • when you start editing a note that another device has changed, so you edit the newest text;
  • when the connection comes back after a failed try.

It never does it in the middle of a sentence, and never for a vault you have not backed up once yourself. If two devices changed the same sentence, it says which notes to look at, exactly as after a backup you pressed. Settings → Vaults & backup has the switch if you would rather press. It works while the app is open; a device that is closed sends when you next open it.

A note you have open takes the changes that arrive, as long as you have nothing unsaved in it. If you do, your text is kept and theirs is shown beside it, for you to combine.

If your changes are not leaving this device, a chip says so — “notes: 3 not sent”. It appears when the last try failed (hover over it for the reason: no connection, a refused sign-in, notes with conflicting edits to settle first), or when changes have waited more than ten minutes, which should not happen while backing up by itself is on. Press it to open Back up, see why, and send now. On a phone this works from version 0.8.5. Before it, the phone sent only when you pressed Back up, while still getting your other devices’ changes, so a note written there could stay on the phone for days. After updating, the switch is in Settings → Vaults & backup on the phone too.

Press Back up, then Back up notes — that is the whole action. It saves anything outstanding, gets the changes from your other devices and collaborators first, merges them, and then sends yours, rather than making you do that by hand. If the merge turns up genuine conflicts it stops, names the notes, and does not push (publishing conflict markers as content would be worse than not publishing). It reports what happened either way — including whether your remote is genuinely off this machine. (A remote can be a local path or a file:// URL, which is a fine way to back up to an external drive but does not survive the drive; the Vaults section labels that honestly rather than calling it backed up.)

Your remote gets one commit per backup — of the app’s own churn. Auto-commit fires every few seconds while you work, so pushing that raw would bury your remote in thousands of auto: commits. They are squashed into a single backup: commit instead. The trade: locally you can step back through individual edits only as far as your last push — before that, each push is one step.

Commits you wrote yourself are never squashed. If your vault is also a repo you commit to by hand — a manuscript, a project — those commits are yours and keep their shape; the squash stops at the most recent one that formicaria did not write. Only the app’s own auto:/backup: commits are collapsed.

Your first push is never squashed either, since squashing history that has never been backed up would destroy the only copy of it.

Including attachments (restic)

Give a vault a backup repo in Settings → Vaults & backup, then choose Back up → Take a snapshot to send its notes and attachments to a restic repository: dedup, encryption, integrity, and off-site remotes, none of which formicaria reimplements.

What a snapshot contains, exactly. Your notes directory and blobs/ — and nothing else. Not the other things that live at the top of the vault folder: not views/, not themes/, not manifest.json, not vault.json, not the search index, and not the git history — .git is never snapshotted. Those travel in the notes tier instead, which is one reason to use both. If your vault folder is also a project you work in, that project’s own files are yours to back up your own way; they are deliberately left alone rather than swept into your backups.

A restore therefore gives you back your notes and attachments as files, with no history behind them — a recovery, not a second copy of your repository.

Set it up in Backup, in two steps:

  1. Where the backups go. Each notebook gets its own backup repo — a folder on another drive, or a remote like sftp:you@host:/backup. Leave it empty and that notebook’s attachments simply stay on this computer.
  2. A password. The backups are encrypted, so they need one. You set it once and it covers every backup repo on this computer.

Keep the password somewhere safe. If it is lost, the backups it protects cannot be opened again — by anyone. Your notes themselves are unaffected: they are plain files, and they travel with the notes backup above.

The password is kept in a file on this computer, readable only by you, and never inside the vault or the vault list. Two things follow. A new computer — or a reinstall — needs it typed in again, so it is worth storing where you keep your other passwords rather than only in that file. And backing up that file is not a substitute for knowing the password; the file is a convenience, the password is the key.

When did this last work?

Under each repository, the Vaults section says when that vault’s last snapshot was taken. It is three different answers and they mean different things:

  • Last snapshot: <date> — the repository was read and this is the newest formicaria snapshot in it. It also says how many paths that snapshot covered.
  • Never backed up — the repository opened fine and has no formicaria snapshot in it at all. Configured is not the same as done, and this is the state worth noticing.
  • Last snapshot: unknown — <reason> — this computer could not ask: no restic, no password, or a repository it could not open. That is different from “never”, and the Vaults section will not say one when it means the other.

It is read when you open the Vaults section rather than continuously, because asking restic means running it — and for a repository that is not on this machine, reaching across the network.

If restic is not installed on this computer, the fields do not appear and the tick box says why — notes are unaffected either way. To install it:

# Debian / Ubuntu
sudo apt install restic
# macOS
brew install restic
# any OS, via pixi
pixi global install restic

On Android there is no snapshot tier at all — restic is not available there, so a phone’s attachments have only the copy on the phone until they reach a computer. Notes are unaffected: the phone pushes them with git like everything else.

A snapshot does not need git. Take a snapshot runs whether or not a vault has a git remote — and since a snapshot carries the notes directory as well as blobs/, that is a real backup of everything, not a half one. Each vault gets its own line in the result: what went in, where it went, or why it could not be taken.

A vault can also be brought back from a snapshot inside the app — New vault → Restore a backup — and not only from the command line below.

From a terminal you also get fm backup, fm restore, and fm check (the last re-reads every pack to catch silent bit-rot). RESTIC_PASSWORD still works if you prefer to set it in the environment: it wins over the stored one.

If you only ever push notes, restore what you can and check what you lost: a git-only restore brings back every note, and fm verify then reads the notes’ own asset: references and names exactly which media is missing — so you know what to re-fetch rather than having to guess. (manifest.json adds bit-rot detection on top of that, but only the fm manifest command writes it; the app never does, so don’t count on it being current.)

Unused attachments

Deleting a note leaves its attachments in the vault, so that bringing the note back brings them back. To free the space, open Settings → Vaults & backup and, under a vault, Look for attachments no note uses…:

  • Used by no note — nothing points at these at all. They are ticked.
  • Kept only by their attachment entry — every file you add has an attachment entry of its own; these have nothing else, either because the note that used them is gone or because you keep the file on its own (a PDF in the Library). Tick the ones to remove.

A note still in the Deleted list keeps its files until it leaves that list (30 days). Remove selected puts the files aside for 30 days — Put them back returns them — and then they go for good; their attachment entries go to the Deleted list. Your snapshot keeps everything it already holds, either way. A file that went to git (only if you let attachments travel there) stays in git’s history.

Integrity

fm verify reports problems like a note with unparseable frontmatter or a reference to a missing blob. fm verify --scrub re-hashes every blob to detect bit-rot (a blob whose bytes no longer match its own filename).

Installing a new version

From 0.5.2 on, formicaria updates itself

formicaria says when a newer version is out, in a line at the top of every formicaria page: press Update and it does the rest. On a computer, formicaria’s browser also shows it in its own bar, above whatever tab is in front — Settings, or a web page — and that Update brings your notes forward and updates from there; Later waits three days. (Before 0.22.0 this was only in Settings → About & updates, in three presses.) formicaria asks GitHub every hour, while it runs and when it starts, and Check now in Settings asks straight away; nothing about you, this computer or your notes is sent.

  1. Press Update — in that line, or Update to v… in Settings. formicaria downloads the new version and checks that it is exactly what the release published, signed by us. Anything that does not match is refused, and nothing has changed yet. Stop stops it; pressing Update again carries on from where it was.
  2. As soon as it is checked, formicaria saves what you have typed, replaces its own program inside the folder it runs from, and restarts; the page loads again by itself once the new version is up. Your notes do not move — they stay in the vault folder beside it. If a sync or backup is still running it says so and changes nothing; press Update again when it has finished.
  3. The version you had is kept. If the new one does not suit you, Settings → Go back to v… puts it back.

Later puts the line away for three days for that version; a newer version is shown at once. The offer is always in Settings too.

If the new version will not start, start formicaria again the way you always do. When it fails to start a few times in a row, the launcher puts the previous version back by itself.

Settings says when a copy cannot update itself, and why — usually a folder the system protects (move it to your home folder), or a folder set up by a version older than 0.5.2, which needs the way below once. On a phone, see formicaria on an Android phone.

If Check now says it could not look, and the message mentions status code 403, GitHub has refused the question, not formicaria: in versions up to 0.6.9 the check uses a GitHub service that answers only a limited number of anonymous questions an hour from one network, and everybody on an office, university or phone network shares that number. Wait a while and press Check now again, or try from another network. Later versions ask a different way and do not meet this.

While a newer version is on offer, a second line says when it was found and has its own Check now, in case a newer one still has come out since.

A copy you built yourself from the source can take a published release the same way, as long as you start it from its icon. The release is installed beside your build, not over it: Go back to the build made here returns to it, and so does building again.

By hand, into a new folder

Your notes are not in the new download. They are still in the folder you have been using. Nothing about an update removes them — but you do have to bring them across, and this section is how.

Why there is anything to do at all

A download does not install itself. Each version arrives as its own folder — formicaria-v0.2.1-linux-x86_64, then formicaria-v0.2.2-linux-x86_64 — and your notes live in the vault folder inside the one you have been using. That is what makes the app portable: copy the folder to a USB stick and your notes go with it.

The cost of that is this page. A new download is a new folder, so it starts empty and opens on the same Start here note you saw the first time. It looks as though your writing is gone. It is not: it is in the old folder, untouched.

Do not delete the old folder until you have started the new one and seen your notes in it. Everything below is reversible while the old folder still exists.

The short way

  1. Unpack the new download beside the old folder.

  2. Open the new folder and double-click:

    Your systemFile
    WindowsUpdate from an older folder.bat
    macOSUpdate from an older folder.command
    LinuxUpdate from an older folder.sh
  3. It finds the old folder, says how many notes it is about to copy and whether they have history, and waits for you to type yes.

If you keep several old versions it will not guess between them — it lists what it found and asks you to drag the one you want onto the same file.

It copies into the new folder only. The old folder is never written to and never deleted, so it remains a complete second copy until you remove it yourself.

The manual way

Copy the vault folder from the old folder into the new one. That is the whole operation — your notes, their history, your attachments, your saved views and your theme all live inside it.

Two things not to copy:

  • vaults.json. It records each notebook’s absolute location, so the old folder’s copy points back at the old folder. Bring it across and the new version quietly keeps writing into the folder you are about to delete. Leave it behind and it is written afresh, pointing at the vault beside it.
  • vault/index.sqlite, if you see one. It is this machine’s search index, rebuilt automatically the next time the app starts. Copying it is harmless but pointless.

Notebooks you keep somewhere else

If you made notebooks outside the app’s folder — anywhere of your own choosing — the new version will not know about them until you add them again. The notes themselves are untouched wherever you put them. Add each one back with New vault, pointing at the folder that is already there.

The update script lists any it finds in your old settings, so you know what to re-add rather than discovering the gap later.

On the phone

Different mechanics, same question.

  • Updating the app keeps everything. Install the new APK over the old one and your notes, history and attachments stay where they are.
  • Uninstalling erases them, permanently. A phone vault lives in the app’s private storage, which Android deletes with the app. There is no copy anywhere else unless you made one.
  • The phone has no snapshot tier — restic does not exist on Android — so attachments on a phone have exactly one copy until they reach a computer.

Before you uninstall, or reset the phone: back up. Open Back up and push your notes to a remote. That covers the text and its history. Photos and recordings need a computer — see Backup & versioning.

Which version am I running?

Settings → About & updates → version. A release shows its tag; a build made from source says dev. It is worth checking when you have two folders and are not sure which one your browser is showing.

In formicaria’s browser a newer version is offered at the top of every page (Update), and in Settings → About & updates (Check now): ⚙ at the top right of the window, on every tab.

Collaboration

formicaria is built for working with other people asynchronously — not a chat, but durable, anchored discussion and proposed changes that travel through git and reconcile when everyone syncs. The reasoning about your notes lives in your notes, so a collaborator who clones the vault gets the conversation and the proposals too, offline and searchable in five years — not locked in a service’s database.

Two things make this work, and both reuse the ordinary note:

  • Discussion — one message is one note, so two people replying at once are writing different files and never conflict.
  • Proposals — a way to suggest a change without pushing it straight to everyone.

Proposals

A proposal is a git branch plus an ordinary note that describes it and carries its discussion. The note lives on main and carries proposes: branch:<name>; the branch holds the actual change. Because it is just a note, its discussion is the same thread panel every note has, and it travels to collaborators through git like everything else.

Proposals exist because a vault is a git remote, and you may not have permission to push to its main. Rather than failing when you try to back up, you propose the change on a branch and discuss it; someone who does have access reviews and merges it. It is also how an AI agent contributes safely: an agent can open a proposal, but only a human can accept (merge) one.

It is a voluntary protocol, never enforced. If you can push to main, you may propose a change or simply make it — often a change is agreed in conversation and pushed directly. formicaria offers the proposal path; it never forces it.

The Collaboration view

The Collaboration view (open it from the sidebar) gathers the things that need a person: at the top, a Needs resolution panel of any notes still in conflict (both versions marked in their bodies after a merge), and below it the open proposals across your vaults, newest first. Open a conflict to merge the two versions by hand; open a proposal to read it and its discussion, and to take part.

Below them, folded, are the closed proposals, newest first, each marked Merged, Declined or Closed with the day it ended — like a forge’s closed pull requests. Open one to see what it did: for a merged one, the change it brought into the note; for a declined one, the reason given and, when this device kept it, the text that was turned down. A closed proposal is a record, so it can only be read.

The conflict list is derived — a note is in it exactly while its body carries the merge markers, so resolving a note makes it drop off by itself (nothing to dismiss). It matters that it lives here and not only in a toast: a note in conflict is not saved to history, and the notebook cannot exchange changes with your other devices until it is settled, so it must stay findable.

Proposals are kept out of the Board, Agenda and Timeline — like a discussion message, a proposal is not something you plan — but they remain fully searchable.

What is here today. The whole review round trip: a proposal is created — by the study assistant, or by hand with a note carrying proposes: branch:<name> — and you see its diff, discuss it, then accept it, edit it first, or turn it down. Accepting merges the branch into main. Conflicts are found and opened here too.

What is not here yet: creating a proposal from a note or whiteboard with a button, rather than asking the assistant or writing the frontmatter yourself.

How a proposal ages

A branch can be merged, renamed, or deleted, but the proposal note — and its discussion — lives on in git history. So a proposal that names a branch which no longer exists is shown with a warning, never hidden: the reasoning about a change outlives the change. How a proposal ended — merged, declined, or closed — is written on its note when it ends, and is the same on every device; while nothing has ended it, it is open. See the frontmatter reference for the exact rules.

Share with a nearby device

Open your notes on a tablet or phone on the same network as your computer — handy for writing on a touch screen, or for taking a photo straight into a note.

Your notes stay on the computer. The other device reads and writes them over your own network, through the computer, and nothing is sent anywhere else. This is not the phone app: it is the computer’s formicaria, opened in the other device’s browser.

Turning it on

Settings → Connections → Share with another device, then On. It is off by default, and a change takes effect the next time formicaria starts. Once on, the line beside the switch says whether other devices can actually reach this computer — a Wi-Fi network that keeps devices apart, or a firewall, is the usual reason they cannot.

Choosing what it may see

Under Which vaults, tick the notebooks a device may use. A paired device is let into those and no others: it cannot see, search or open anything in the rest. Choose at least one before pairing.

Pairing a device

  1. Trust this computer first. The connection is encrypted, so the other device has to accept this computer’s certificate once. Copy the file whose path is shown to the device, open it, and allow it (on an iPad, also Settings → General → About → Certificate Trust Settings). Before you allow it, check the device shows exactly the fingerprint printed under the path. If it shows anything else, stop — you are not talking to this computer. Encryption is also what lets the device use its microphone.
  2. On the other device, open the address shown (it starts with https://).
  3. Back on the computer, press Start a pairing code, and type the code on the other device. A code works once, and only for the next few minutes.

If a device is lost

Disconnect all devices signs every paired device out at once. Each will need a new code to connect again.

The study assistant

formicaria can run a small local AI assistant that answers questions in a note’s discussion, researches the web, and drafts note edits for you to review. It is opt-in and off by default — a notebook that never turns it on pays nothing for it — and it runs entirely on your own device: your notes never leave your machine, and the model itself runs locally, so there is no account, no API key, and no cloud.

It is a helper, not an oracle. A small on-device model is good at summarizing, tidying notes, and fetching-and-summarizing simple facts through a search tool; it will not match a large hosted model on hard reasoning. That trade — small, private, local — is the point.

Where it runs

Before anything else, the honest matrix.

AssistantAudio → transcriptReading images
Linux, from the downloadyes — it fetches what it needs on first enableyesyes
Windows, from the downloadyes*yes*yes*
macOS, from the downloadyes*no — see belowyes*
Linux, from a checkoutyesyesyes
Androidyes — the runtime is in the app, the model is downloaded when you turn it onyes, in the appyes, with the recommended model (since v0.6.4)

* Compiled and type-checked, never yet run. Linux and Android are the two platforms this has actually been used on. The per-operating-system parts — chiefly the check that reads how much memory is free, which the assistant refuses to start a model without — were written on a Linux machine that cannot compile them, and are exercised only by a CI job that builds them. Until someone runs it on a Mac or a Windows PC, “yes” there is a well-founded expectation rather than an observation, and this table would rather say so.

You no longer need the source code. Turning the assistant on downloads the model and the runtime it needs, having first told you how large they are and under what licence. The commands in “Turn it on” below are the checkout route, which still works and is what a developer wants; a downloaded copy needs none of them.

Everything here installs itself, each as its own choice: the assistant, reading images, and — on Linux and Windows — turning recordings into text.

Except transcription on macOS, where the switch says so rather than appearing and failing. The speech-to-text runtime is a published build from the whisper.cpp project, and there is no macOS one at the version formicaria pins. That is not something an installation can fix, which is why the app says the runtime does not exist for this kind of computer rather than that something is missing from your machine.

macOS and Windows are new here. Before starting a model, formicaria checks it can read how much memory the machine has free, and refuses if that reading fails or looks implausible — it will not run a model it cannot watch. That check is what made those platforms wait, and it is still what protects them.

Everything else in formicaria — notes, search, boards, backup, sharing — works normally without any of this.

Turn it on

In the app — Linux, macOS or Windows

There is nothing to install first, and no terminal involved.

  1. Settings → Assistant → Study assistant → on.
  2. It asks which model, and shows what each one costs: the download size, the licence, and whether it can read images. The image reader is a further download and is offered as its own choice, because it buys exactly one capability.
  3. It downloads, showing how far along it is. You can keep working. Stop halts it, and what already arrived is kept — turning it on again continues rather than starting over.

That is the whole of it. Afterwards the assistant starts with formicaria and stops when you close it: nothing runs in the background, and nothing is downloaded twice. (With reminders on, formicaria itself may stay running for one that is waiting; the assistant and its model do not.)

When an update of formicaria brings a newer version of the program that runs the model, the next start fetches it once, before the assistant comes up, with the same progress shown. If that fails, the assistant starts on the one it had. A newer model is only ever offered, never fetched unasked.

What it costs, and where it goes

Download0.73 GB to 2.5 GB depending on the model, plus 0.84 GB if you want it to read images. The picker shows the total before it starts.
Disk, afterwardsThe same again — the download is the model. Allow a little more while it unpacks the runtime (about 30 MB).
ConnectionNeeded once, for that download. Everything after it works offline.
TimeHowever long that many gigabytes takes on your connection. You can keep working, and stopping is safe.

The files live outside the app folder, in this computer’s configuration directory:

Linux~/.config/formicaria/tools/
macOS~/Library/Application Support/formicaria/tools/
Windows%APPDATA%\formicaria\tools\

Two consequences worth knowing. Updating formicaria does not download it again — the new version finds it where the old one left it. And copying the app folder to a USB stick takes your notes but not the model, which will be downloaded again on the other machine.

Getting the space back

Turn the assistant off and delete the model in Settings → Assistant → Study assistant → Remove the model. It tells you how much it will free, asks once, and deletes only the downloaded files — never your notes. Turning the assistant on afterwards simply asks which model you want again.

Deleting the folder above by hand does the same thing.

From a checkout, for developers

The app prefers a checkout’s agents/ when it is there, so a working copy needs no download. The assistant is developed in its own repository, formicaria-org/myrme, whose tools fetch a model by hand. In a Myrme checkout:

pixi run fetch-model              # the catalogue's default, the laptop's model (qwen3-vl-4b)
pixi run fetch-model lfm2.5-1.2b  # a specific one: here the lighter, text-only choice

Then link or copy its agents/runtime and agents/models into this checkout’s agents/, and run pixi run catalogue here.

Then enable it in Settings as above.

The two extras

Transcribing recordings. Turn on Audio transcription under the assistant’s own switch. It downloads about 170 MB — a speech-to-text runtime and its weights — and applies the next time the assistant starts. It hears any language and writes it down in that language — an Italian recipe comes back in Italian. On macOS the switch is replaced by a line saying no such runtime is published for that platform yet; that is the whisper.cpp project’s build list, not something on your machine.

Better listening. Once transcription is on, a second switch below it, Better listening, uses a larger speech model: about 490 MB more to download, slower (roughly a minute for a two-minute recording on a laptop), and much closer to what was said — worth it for dictated recipes and long recordings. Each device chooses for itself. Until the new model has downloaded, the one already there keeps transcribing; the earlier one is then removed to free the space.

From a Myrme checkout, pixi run fetch-whisper still stages the same pieces by hand.

Reading images. /transcribe can read a photo of a page — handwriting, printed text, mathematics as LaTeX — but only with a model that can see. That needs a projector file beside the weights, and Myrme’s fetch-model collects it automatically for any model that has one:

pixi run fetch-model qwen3-vl-4b   # weights + projector; the laptop pick for reading images

A text-only model is not an error — the assistant says images are unavailable rather than asking a blind model to guess at a picture.

Web search works in the app with nothing to set up — and it reads only a list of reputable sources, never the open web. Which ones depends on what you ask, in English, French, German, Italian or Chinese:

You ask aboutIt reads
Health — a symptom, a nutrient, a doseMedlinePlus, then the public health bodies’ own pages: the WHO, the NHS, the CDC, EFSA, gesund.bund.de, BfR, DGE, the Swiss BLV, Santé publique France, ANSES, ISS EpiCentro. Wikipedia last, marked encyclopedia, not medical guidance
How much of a nutrient a food hasyour app’s own food list (with its table, and whether a value was borrowed from another), and the same bodies
Papers — “studies on…”, a DOI, a PMIDEurope PMC (which includes PubMed), arXiv, Crossref, and the papers the Wikipedia article cites
ProgrammingStack Overflow and GitHub
Anything elseWikipedia in your language and in English, arXiv, GitHub

Every source in an answer begins with whose it is (“NHS (UK): Vitamin K”), and a claim it cannot quote from one of them is dropped. A page is opened only if its site is on the list, and only its text is read — no scripts, no images, no links followed. No general search engine is used: a news story, a blog post or a vendor’s documentation page is out of reach on purpose.

On Android

The assistant runs on the phone itself — the runtime is bundled in the app, and the model is downloaded on first enable.

  1. Build and install the app (from the project directory, with the Android toolchain set up via pixi run android-init):

    pixi run android-release          # a signed, 16 KB-aligned APK in mobile/
    

    It prints the path it wrote. The name carries the version — formicaria-v0.5.0-android-arm64.apk from a tagged commit, formicaria-dev-android-arm64.apk from any other. Install it on your phone (adb install -r mobile/formicaria-dev-android-arm64.apk, or copy it across and open it). A notes-only build that contains none of the assistant is the default when built --no-default-features — so people who only want the notebook can ship a lighter app.

  2. Turn it on in Settings → Study assistant. On a phone that has no model yet, the switch first shows the choices with what each downloads (qwen3.5-0.8b is about 0.71 GB with its picture reader); nothing is downloaded until you pick one. The download is shown by a persistent “study assistant” notification, resumes if interrupted, and happens once. After that the assistant is ready and runs offline.

Use it

The assistant is called Myrme — after the myrmecologist, who keeps a formicarium — and that is its name on every device, whatever model it runs. In a discussion — a note’s own discussion thread, or a first-class discussion — type @ and the picker suggests it (and any collaborators in the vault). Pick it and ask:

@Myrme what is the difference between mRNA and DNA vaccines?

It replies in the thread as Myrme (laptop) or Myrme (phone) — the copy that answered — so you can always see who said what. You can give each device’s Myrme a name of its own in Settings → Study assistant → This device’s Myrme (“office desktop”, “tablet”); @Myrme-office-desktop then asks that one, and it signs as Myrme (office-desktop). The name applies when the assistant next starts.

Each device answers its own messages. If your notes reach a computer and a phone, both run a Myrme, and a message is answered by the copy on the device you wrote it on — never twice. To ask a particular one, add its device: @Myrme-laptop (or @Myrme·laptop) — for something only that device can do, such as reading a photographed page with the computer’s larger model. Its replies are signed Myrme (laptop), Myrme (phone) — the device’s name — and what an assistant wrote before it was called Myrme reads as Myrme too.

You do not have to remember the commands. The composer shows them as buttons you can tap, each with a line saying what it does — which is the easier route on a phone.

CommandWhat it doesWhere
/researchLook the web up, write with quotes, and check every claim against its source; it drops the ones it cannot support. On a note it is a proposal; in a first-class discussion it answers from the web there. /search means the same.Anywhere
/proposeDraft an edit to that note for you to review.A note’s discussion
/transcribeTurn this note’s recordings and images into text — see below.A note’s discussion
/recipe (or /ricetta)Make a recipe of this note — a recording of you saying it, or its text — proposed as a new recipe note.A note’s discussion

The same four commands are offered on every device. All but /research need a note to work on, so in a first-class discussion — one that belongs to no particular note — the others become an ordinary question. A command can go anywhere in the sentence, beginning or end.

Nothing the assistant writes lands in a note by itself. /propose, /research, /transcribe and /recipe each produce a proposal: it appears on the note it belongs to, and in the Collaboration view, where you see exactly what would change and then accept it, edit it first, or turn it down. See Collaboration.

Example:

@Myrme summarize the key idea of Bayesian model selection in 3 bullet points /research

A recipe from a recording

Record yourself saying a recipe — on the phone, into a note — then, in that note’s discussion:

@Myrme /recipe

Myrme listens to the recording (or reads the note’s text, if there is no recording), sorts what you said into ingredients, method, times and notes, and proposes a new recipe note. It uses only what you said: anything it wrote that you did not say is left out, and it tells you how many lines that was. A word misheard stays misheard — correct it before accepting, or turn on Better listening (above), which mishears far less. The note ends with everything that was heard, under What was said, so you can check it.

On a note that is already a recipe — one you dictated in Food, or started yourself — it proposes the sorted recipe in that note instead, keeping its recordings and pictures and quoting what it said before. If audio transcription is off on this device, it says it did not listen to the recording and works from the note’s text.

Accept it in Collaboration — or change it first — and it is a recipe like any other. In Food, its ingredients are then offered one by one to match to foods, so it counts.

Once it has started, it finishes

There is no way to stop a reply in progress. Once the assistant has taken your question there is no cancel: you wait for it to finish, or you quit the app. The Stop button you may have seen belongs to the download on first enable, not to a running answer.

This matters most with /research, which is several searches and several passes over what it found, and can take minutes on a small machine. It is a real gap rather than a design choice — cancelling means threading a signal down into the model call, which has not been built — so when you are unsure what you want, ask the short question first.

/transcribe turns the media in a note into text: a voice memo becomes a transcript, and a photo of a page, a whiteboard or a printout becomes something you can search and edit.

@Myrme /transcribe

Typed on its own it does everything in the note that has not been done yet — you never have to name a file or copy an identifier. Ask twice and it skips what it already read.

For writing it aims at a usable transcript, not a description: mathematics comes back as LaTeX (from the vision model itself — good for ordinary notation, and not a specialised formula reader), code and pseudocode inside a code block with their indentation, and tables as Markdown tables. For a chart it transcribes the title, the axis labels, the tick values and the legend.

Printed pages are read by a text reader first (since Myrme 0.7.0, on Linux, macOS and phones). A small dedicated reader (an OCR, PP-OCRv6) reads the page in about a second. When it is sure of what it read, which in testing was every printed page, its text is what you get, and the note says the OCR read it. Handwriting is never that certain, so it goes to the vision model as before. The OCR gives plain lines: a printed table or code block comes back as lines of text, not as a Markdown table or an indented block.

Three things worth knowing:

  • The picture stays. The text lands beside the image, never instead of it, and says which model read it. If the reading is wrong you can always look at the original.
  • It will misread things — a handwritten symbol, a subscript, an O that is really a zero. Read the equations before you trust them. Where it genuinely cannot make something out it writes [?] rather than guessing, which is the mark to look for.
  • Reading images needs a model that can see. Recordings need the audio runtime; images need a vision model with its projector file fetched. If one of those is missing the assistant says so instead of inventing an answer, and still does the half it can.

What you change is remembered

When you edit or turn down a suggestion, formicaria keeps a record of it: what was suggested, what you made of it, and — if you tell it — why. There is an optional one-line box for that, and a few one-tap tags; leaving it empty is fine and costs nothing.

The record stays in your vault with your notes and is not sent anywhere. In Settings each vault has two separate switches: whether to keep the record at all, and whether it may ever be shared openly. The second is off unless you turn it on, and it is asked separately for a reason — agreeing to keep a note of your own corrections is not agreeing to publish them, and sharing cannot be undone.

The mention picker

Typing @ lists everyone you can address here: the assistants that are running, plus the vault’s git collaborators (anyone who has posted in a discussion). So @ works whether you are mentioning the AI or a person you share the vault with.

Choosing a model

Each device has a sweet spot — small enough to stay responsive and not slow the rest of the system down, large enough to answer well. Measured on real hardware:

These are the three the picker offers, with the download sizes it will show you:

DeviceRecommendedDownloadWhy
Laptop or desktopqwen3-vl-4b2.5 GB (+0.84 GB to read images)The default. Grounds its answers best of the ones measured, and the only one that can read a photographed page.
A lighter machine, or a slow connectionlfm2.5-1.2b0.73 GBBest instruction-following and tool-use in its size; the phone’s pick until v0.6.4. Text only.
If the default disappointsqwen3-4b-25072.5 GBThe validated fallback, text-only — the laptop pick until 2026-07-24.

On a phone there is one: qwen3.5-0.8b, a 0.71 GB download that can also read a picture. A phone still running the earlier, smaller model keeps it, and is offered this one (below).

When an update brings a newer model

A new version of formicaria can recommend a different model. It never downloads one by itself. The model you already have keeps working, and Settings → Assistant → Study assistant shows a line such as “This version of formicaria comes with a newer model for the assistant”, with its name and the size of the download.

  • Download fetches it in the background while you keep working. On a phone the assistant switches to it as soon as it has arrived. On a computer it takes over the next time you open formicaria. The older model’s files are removed once the new one has started.
  • Not now hides the offer. It comes back only if a later version recommends yet another model.
  • Stop, while it is downloading, stops the download and leaves the assistant as it was.

Occasionally a version stops supporting an old model altogether. Then the line says the model on your device no longer works with this version, and downloading the new one is the way to get the assistant back. Your notes are never affected by any of this.

The assistant caps its own thread use so inference never starves the interface — on a phone this is also, conveniently, the fastest setting.

If something goes wrong

“Download failed.” The reason is printed beside it. A dropped connection is the common one and costs nothing: turn the assistant on again and it continues from where it stopped — what already arrived is kept.

“There is not enough free space for this download.” Exactly what it says. Free some space, or choose the smaller model: lfm2.5-1.2b is 0.73 GB against the default’s 2.5 GB, and works well.

The assistant is On, but it never answers. Almost always memory. The app refuses to start a model it does not have room for — it will not push your machine into swapping — and the refusal happens after the switch is already on. Close some applications and browser tabs and try again, or switch to the smaller model. It needs roughly the model’s own size, plus 1 GB, free at the moment it starts.

“…cannot read this machine’s memory.” formicaria will not run a model it cannot watch, so it stops rather than guessing. This is unusual; it is worth reporting.

“No model runtime has been published for this kind of computer yet.” The assistant runs on 64-bit Linux, macOS on Apple silicon, Windows on x86-64, and Android. Other combinations have no build yet.

“This copy of formicaria did not come with the assistant.” Some builds are made without it. A release download from the project’s own releases page includes it.

The transcription switch is missing. On macOS, expected — no speech-to-text runtime is published for it. Elsewhere the switch should be there and offer the download; if it is not, the assistant itself has not been turned on yet.

Starting over. Turning the assistant off stops a download in progress and keeps what arrived. To discard it entirely, use Remove the model — see “Getting the space back”.

Privacy and control

  • Off by default. Nothing runs, downloads, or watches until you enable it.
  • Your notes stay local. The model runs on your device; notes are never uploaded. Only /research touches the internet — and only the words of your question, never your notes, and only the sources listed above.
  • You are always in control. The assistant can only reply in a discussion or propose a change on a branch you review. It never writes to main on its own. Turn it off in Settings (or, on the desktop, simply don’t run it) and formicaria is byte-for-byte the plain notebook.

formicaria on an Android phone

It takes about two minutes and a few taps. You need nothing but the phone.

Installing it

  1. On the phone, open this link and tap it once: Download formicaria for Android (about 30 MB). If the browser asks whether to keep the file, tap Download or Download anyway.
  2. When the download finishes, tap Open (or find formicaria-android.apk in your Downloads and tap it).
  3. Allow the install. Android says it cannot install apps from this source, because the app did not come from the Play Store. Tap Settings, switch on Allow from this source, then go back.
  4. Tap Install, then Open. That is all.

Some phones add one more screen of their own — a “Play Protect” or virus check that asks whether you are sure. Choose Install anyway (on some phones it is under More details). It is the phone being careful about any app from outside its store, not a sign that something is wrong.

After that, formicaria tells you itself when there is a newer version, and one tap starts its download — see Updating.

There is no Play Store version yet.

Installed from an app store instead? If an app store such as F-Droid or Obtainium installed formicaria, that store keeps it up to date, so formicaria’s own check starts off and Settings → About & updates says which store updates it. You can still turn the check on there. Installed from this website, nothing changes: formicaria checks as described below.

Updating

From 0.5.2 on, formicaria tells you when there is a newer version. Once a day it asks GitHub which version is newest — nothing about you, the phone or your notes is sent. From 0.22.0 a line at the top of the app says so; before, only Settings → About & updates did. Check now in Settings asks straight away.

  1. Tap Update. Your browser opens and downloads the newest version — the same file as the download link at the top of this page.
  2. When the download finishes, tap Open, then Update on Android’s own screen. If the browser does not offer Open, find formicaria-android.apk in your Downloads and tap it. Some phones add a “Play Protect” or virus check first, as on the first install.

Android installs it only if it is signed with the same key as the formicaria you have, so nobody can slip you a fake update this way.

Before 0.24.4 formicaria downloaded and installed updates itself, and the first time asked whether it may install apps. It no longer needs that permission. If you allowed it once, you can switch it off again in Android’s Install unknown apps setting for formicaria.

Your notes stay where they are: an update keeps the app’s storage. Going back to an earlier version is not offered on a phone, because Android can only do that by uninstalling first, and uninstalling deletes the notes kept inside the app.

A copy older than 0.5.2 cannot do this — install 0.5.2 or later by hand once, and from then on it can. If you would rather have another app watch for new versions, Obtainium still works: point it at github.com/formicaria-org/formicaria.

Updating through F-Droid

formicaria has its own F-Droid repository. It holds the same signed app as this website, so a copy you already have updates from it without reinstalling, and your notes stay where they are.

  1. On the phone, open formicaria-org.github.io/formicaria/fdroid, long-press the long link on that page and choose Copy link address.
  2. In F-Droid, tap Settings → Repositories → +, paste the address and tap Add.
  3. F-Droid shows the repository’s fingerprint. Check that it is 5D3F5309005F299E32FBA61D27921AA773BD46675A595CD9C6515022D2AE30B6, the same as on that page, and confirm.
  4. Search for formicaria in F-Droid: it shows the copy you have as installed, and offers each new version from then on.

Once F-Droid has installed an update, Settings → About & updates says that F-Droid keeps formicaria up to date, and formicaria’s own check is off unless you turn it on. On Android 12 or later, F-Droid can then install later updates without asking, if that is switched on in F-Droid’s own settings.

Your notes, and why backup matters more on a phone

Your notes live inside the app’s own storage, not in a folder you can browse. Deleting the app deletes them with it, as with any Android app.

So set up Back up on the first day rather than the day you need it. Once your notes have somewhere to go, the phone stops being the only place they exist, and a phone you drop, replace or reset costs you nothing. Backing up fetches whatever your other devices have written and sends yours, in one gesture — see Backup & versioning.

The one bar: your tabs

At the bottom of the screen (or the top: Settings → Appearance → The bar) is formicaria’s only bar:

  • ≡: formicaria’s options, kept short: search your notes, Undo, Back up and sync, Settings (with Privacy in it: Privacy), Help.
  • A web page in front has its own row above it: its address (press it to type another, or a search), ↻, ⤓ when the page has a video or a sound (save it into Music, Videos or a note: Saving media), ⋮ (Save this page as a note of its own, Save media, This site’s privacy), and 🔥 at the right end: forget the web’s data and close its tabs, after one question (Forget web data).
  • Hold a video, a sound or an image on a page: Save this video (or sound), or for an image Bring the image into your note and Save media from this page.
  • Your tabs, side by side in one row: each is one thing, a feature (Notes, Tasks, Agenda, Food journal, Fitness, Health, Music), a note, or a web page. Tap one to go to it; × on the tab in front closes it. Slide the row to see more.
  • +: a new tab. It suggests the features, a new note, and a field for a web address or a search (the page opens inside formicaria). A feature that is already open is not opened twice: + takes you to its tab. A new note you leave without writing in goes away by itself.

Each feature shows its own views inside it (Food’s Day, Menu, Trends).

Two together: drag a tab from the bar up into the screen: it shows with the one in front, one above the other; tap either to work in it.

Web pages, inside formicaria have one slim row above them: the page’s address, which is also where to type another address or a search (it opens in the same tab), and ↻ to reload. Android’s Back goes back in the page, and from its first page back to the tab it came from (a page opened from a link closes, as in a browser); × closes the tab in front, even the last one; select text to bring it into a note (Android’s selection bar has Bring into note first); long-press an image or a link to bring it in, or to open the link as a page of its own.

Moving what you select

  • Inside formicaria (a note, a feature, a web page it shows): select text, and formicaria’s icon appears beside it; press it and choose where it goes: the note you looked at last, any note (type to find it), or a new note. It arrives quoted, with a link back to where it came from. Android’s own selection bar has Bring into note first, which does the same.
  • From any other app: select text, and in the menu that appears choose formicaria (Android puts other apps’ entries after its own, sometimes behind ⋮); or Share it to formicaria. It asks which note it goes into.

Attachments

A screenshot goes into a note with Share: tap Share under the screenshot, choose formicaria, and pick the note (see Assets & media). The 📎 button above the keyboard also opens your pictures, with the newest screenshots first.

Photos, recordings and files you attach on the phone travel with your notes, up to the size limit that vault sets — Settings → Vaults & backup, Send attachments under. A large backlog is sent in steps automatically, and a single file over the limit stays on the phone rather than blocking everything behind it.

What is on it

Reminders for dated notes show while the app is open; they do not arrive with it closed: see Reminders.

Everything the desktop has for writing: notes, search, dates and boards, attachments, whiteboards, and backing up. The study assistant is included too — it downloads its model on first enable and runs on the phone itself, with nothing sent anywhere. (That is the one thing the iPhone build cannot have; iOS does not let an app start a second program.)

For the careful: checking that you got the real thing

Every formicaria APK is signed with the same certificate. Its fingerprint is:

de040b95933b491e3fb26966025001a8d7c052a526a56ea789e330c1f937bc20

You can read that back out of any file you download:

apksigner verify --print-certs formicaria-<version>-android-arm64.apk

The SHA-256 digest it prints should match, character for character. If it does not, do not install it — tell us.

Why bother. Android already protects you after the first install: it refuses to replace the app with one signed by a different key, so nobody can push you a fake update. What it cannot do is protect the first install, because your phone has nothing to compare against yet. Downloads on a release page can be replaced by anyone with write access to the project, and nothing about how the app is built changes that. This fingerprint is the baseline that closes the gap, and it is the only part of the chain that depends on you rather than on us.

You do not need this to install or use formicaria. It is for anyone who wants to confirm, with a computer, that the file is the one we built.

Music plays on

Music keeps playing when you leave the app or the screen turns off. The lock screen and the notification show it with its keys, and headphones, Bluetooth and the car control it. formicaria’s player and those keys are one: what you press anywhere shows everywhere.

A saved page’s copy (the link in a note made by Save this page) opens in a tab of its own, as it was saved; other attachments (a PDF) open with the app you choose in Android’s Open with.

PDFs on the phone

Android’s page view cannot show a PDF. On the phone, formicaria hands a PDF to the app you use for PDFs, both when you open a link to one (an arXiv paper, for example) and when you press Open the PDF on one attached to a note. If no app on the phone opens PDFs, formicaria says so. Google’s Drive, or any PDF reader from the Play Store or F-Droid, will do.

formicaria on an iPhone

There is no App Store version, and there will not be one. Instead you download the app file from the release page and sign it with your own Apple ID — free, no developer programme, no payment. The app then runs on your phone like any other.

This is a real route, used by a lot of open-source apps, and it has a real cost: the app stops opening after seven days unless it is refreshed. Read that part before you start.

Before you begin, know what is proven

The iPhone app is built and checked automatically — the file is verified to be the right shape for your phone before it is published. But nobody here owns an iPhone. Everything below comes from people who have done it and reported back, not from a machine that tests it. Two people have run formicaria on an iPhone and said it worked.

If something does not match what you see, that is worth telling us — it is the only way this page gets better.

What you need

  • An iPhone or iPad, and a computer to sign the app from.

  • An Apple ID. The free kind is enough.

  • A sideloading tool, depending on your computer:

    Your computerTool
    Windows or MacSideStore — refreshes over Wi-Fi, so you need the computer only for the first setup. Or AltStore, which needs the computer running each time it refreshes.
    LinuxAltServer-Linux, Sideloader, or xtool install, plus libimobiledevice and usbmuxd.
  • The file itself: formicaria-…ipa, from the releases page, beside the Windows, Mac and Linux downloads.

The seven-day part

An app signed with a free Apple ID is trusted for seven days. After that it will not open until it is refreshed — the same file, signed again. Nothing is wrong and nothing is broken; that is Apple’s limit on free signing, and every app installed this way lives with it.

SideStore refreshes in the background over Wi-Fi, which is what turns this from a weekly chore into something you rarely think about. If you use AltStore instead, refreshing means opening AltServer on your computer with the phone on the same network.

Two more limits worth knowing up front: a phone can hold at most three apps installed this way, and a free Apple ID can register ten app identifiers in total.

Your notes, and why backup matters more here

Refreshing the app keeps everything. Your notes stay exactly where they were.

Deleting the app removes its notes with it, as with any iPhone app — the notes live inside the app’s own storage, not in a folder you can browse. So set up Back up early, on the first day rather than the day you need it. Once your notes have somewhere to go, the phone stops being the only place they exist, and a phone you replace or an app you remove costs you nothing.

Give your vault a destination in Settings → Vaults & backup; from then on the Back up button fetches whatever your other devices have written and sends yours. See Backup & versioning.

If it will not open

  • It has been more than seven days. Refresh it with the tool you installed it from. This is by far the most common cause.
  • “Untrusted Developer” on first launch. Settings → General → VPN & Device Management, find your Apple ID, and trust it. Once only.
  • Three apps already. A phone holds three sideloaded apps at a time; remove one first.

What this app does not have

The iPhone build carries the notebook: writing, searching, dates and boards, attachments, and backing up.

The study assistant is not on it, and will not be. It runs a separate program alongside the app to do its thinking, and iOS does not allow an app to start one. That is a rule of the platform, not something waiting to be built. The Android app does have it.

Glossary

Words this manual uses that mean something specific here. Most of them appear in the user chapters before anything defines them, which is what this page is for.

Asset

A file that a note refers to — an image, a PDF, a recording. An asset gets a note of its own so it can be searched and linked, but never a card on the Board, the Agenda or the Timeline: it is something a note is about, not something you are planning to do. See Assets & media.

Audience

Who can read a set of notes. In formicaria an audience is a vault, because a vault is a git repository and the people who can clone it are the people who can read it. There is no per-note permission, deliberately: a field inside a file can be mistyped, and git history is permanent.

Blob

The stored bytes of an asset, kept once under the SHA-256 of its own content — see content-addressed. Blobs live in <vault>/blobs/ and are not sent with the notes unless the vault sets a size limit for attachments, which is why the snapshot tier exists.

Content-addressed

Stored under a name computed from the bytes themselves rather than from a filename. Two identical files are therefore one file, automatically, and a file that changes gets a different name rather than overwriting anything. It also means damage is detectable: re-hash the bytes and compare to the name they are filed under, which is what verify --scrub does.

Discussion

A thread of messages. Either on a note — replies about that note, kept with it — or first-class, a discussion that belongs to no particular note and is the root of its own thread. See Creating & organizing notes.

Frontmatter

The block of YAML at the very top of a note, between two --- lines. It holds the note’s structured fields — title, status, due, tags, and any of your own. Only frontmatter is structured-queryable; the body is full-text only. If you want to filter on something, it goes here. See the frontmatter schema.

FTS

Full-text search. formicaria keeps a SQLite FTS5 index of every note’s text — its title, body, tags and property values, and text extracted from PDFs — so search is fast at any vault size. The index is disposable: it is rebuilt from the Markdown files, never backed up, and never synced.

Merge driver

A small program git calls when two people changed the same file. formicaria installs one for .md, because the note format rewrites updated: on every save — so without it any two concurrent edits collide on that line, inside the YAML, where the parser rejects the result. The driver merges frontmatter field by field and puts genuine body conflicts in the note’s body, where you can open and fix them. It is the fm binary, which is why fm must stay beside fm-serve.

Note

One Markdown file. That is the whole definition, and it is the invariant the rest of the design rests on: a task is a note with a due property, a whiteboard is a note whose body is a drawing, a shared document is a note in a different repository.

Proposal

A suggested change to a note, living on its own git branch with a note describing it, which you read and then accept, edit or turn down. It is how the study assistant writes: it can propose, never write to main. See Collaboration.

Remote

The other copy of a vault’s git repository — usually on a hosting service, but a folder on a drive works too. Giving a vault a remote is what makes it shareable and what makes it backed up; the two are the same act. Sharing a vault means giving it a remote and giving people access.

Snapshot

An encrypted, deduplicated backup of a vault’s notes and its attachments, taken by restic. The other tier — git — carries the notes and their history, and the media only under a size limit a vault may set, which is why both exist. See Backup & versioning.

ULID

The identifier every note is named by: 26 characters, sortable by the time it was created. Used instead of a title because a title changes and a filename that changes breaks every link to it. You will see one in a note: link and as a note’s filename, and you never have to type one.

Vault

A directory of notes that is also a git repository. Running several — personal notes, a lab’s notes, a paper shared with one collaborator — is the normal case and is what the name formicaria refers to. Each vault has its own remote, its own collaborators, and its own backup. See The vault format.

View

A saved way of looking at your notes — a query plus a renderer — kept as a small file in <vault>/views/. Because it lives in the vault it travels to collaborators like a note does. See Views.

The vault format

A vault is one folder. Everything durable is a plain file you could read without this app.

vault/
├── notes/            # one Markdown note per file, ULID-named   (git-tracked)
│   └── 01J….md
├── blobs/            # content-addressed media, sha256/ab/cd/…  (git-ignored)
├── derived/          # regenerable thumbnails                    (git-ignored)
├── manifest.json     # sha256 → size inventory of the blobs      (git-tracked)
├── vault.json        # optional: what this vault is called and where
│                     #           its notes live                    (git-tracked)
├── views/            # saved .view queries (YAML)                (git-tracked)
├── themes/           # colours and type, as CSS                  (git-tracked)
├── .gitattributes    # routes *.md through the fm merge driver    (git-tracked)
├── index.sqlite      # disposable per-machine FTS index          (git-ignored)
└── .gitignore

vault.json — using a repo you already have

A vault does not have to be a folder made for it. If you already have a project — code, a manuscript, a thesis — whose notes live in docs/, drop a vault.json at its root and formicaria reads them where they are:

{
  "name": "the paper",
  "description": "notes beside the manuscript",
  "notes": "docs"
}

Every field is optional and the file itself is optional; without one you get the layout above. notes is relative to the vault root and must stay inside it — which audience a note belongs to is decided by which repo holds it, so notes living outside would make “who can see this” unanswerable.

There is no author, collaborators, remote or created field here, because git already records all of those.

name gives way to the name in your own vault list if you set one there: a repo you cloned does not get to rename your audience out from under you.

A note is Markdown with a YAML frontmatter header:

---
schema: 1
id: 01J8Z9X0K2A3B4C5D6E7F8G9H0
type: note
status: doing
due: 2026-07-20
hard: true
tags:
  - meta-rl
created: 2026-07-15T10:00:00Z
updated: 2026-07-15T12:30:00Z
project: alpha        # any custom key is preserved
---

The note body is plain Markdown. Math with $\lambda$, ```mermaid``` diagrams,
and asset references like ![figure](asset:sha256-…) all render in the read view.

Key properties of the format:

  • The file is the atom. One note = one file; there are no per-block ids or timestamps to corrupt.
  • Custom keys survive. Any frontmatter key you add is preserved through read/edit/write and is immediately usable for grouping.
  • The index is disposable. index.sqlite is rebuilt from the files on every open; delete it any time. It must never be synced between machines.

See Frontmatter schema for the full field list.

Moving a vault to another folder

formicaria finds a vault by the folder it remembers, so a vault folder moved with a file manager is reported as could not be opened rather than found. Move it from inside the app instead: Settings → Vaults & backup, then Move to another folder… under the vault, and type where it should go — a new folder, or an empty one.

As you type, it says how much will move, or why it cannot go there (a folder that already has files in it, a folder inside the vault, or one that overlaps another vault). The vault keeps its name, its place in the list — so the first vault stays the one new notes go to — and its settings, including where it is sent and its snapshot repo; its history and attachments move with it.

  • On the same disk the move is instant: the folder is simply renamed.
  • Onto another disk every file is copied, then read back and compared with the original before the old folder is removed. If anything fails, the copy is removed and the vault stays where it was, working as before.

Not on a phone, where vaults live in formicaria’s own storage and there is no folder to choose.

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.

Commands

The frontend calls these over POST /api/<cmd> (JSON args, camelCase). Each is a function in crates/fm-app/src/commands.rs (except the git/restic ones — commit, push, pull, backup, backup_status, set_git_remote — which are the OS seam, not Store operations, so fm-core is called directly; the vault-registry and .view arms likewise live in crates/fm-app/src/vaults.rs and crates/fm-app/src/views.rs). Args map to Rust snake_case.

Every one of them is reached through fm_app::dispatch, the single command surface. fm-serve is an HTTP shell over it — it parses a request into (cmd, args, body), calls dispatch, and frames the answer. Adding a frontend means writing a new shell, not a second copy of the table below.

All 172 of them are below, grouped by what they are for. If you add an arm to dispatch_inner, add its row here — ci/checks.sh counts the two and fails when they disagree, because a reference that is nearly complete is one a reader stops trusting. (That sentence was itself untrue until 2026-09-05: the check tested membership only, never counted, and this line said 81 while there were 85. It now checks the count and both directions, so a documented command dispatch no longer has fails too.)

Reading the vault

CommandArgsReturnsNotes
boardgroupByBoard (columns)group by any property
agenda—ObjectMeta[]dated & not done, soonest first
remindersfrom (YYYY-MM-DD), days? (default 14, at most 60)Reminder[]read-only: the moments at which an unfinished note is due to be said — per note and per date (start, due) its at (YYYY-MM-DDTHH:MM, the note’s time or 09:00 of its day, less its remind minutes), what, when (the note’s own time where the reminder is earlier) and all_day. remind: off leaves a note out. Nothing is stored: the page asks again and hands the list to whatever shows it
recent—ObjectMeta[]all notes, newest-created first
gallery—ObjectMeta[]assets, newest first. No renderer draws it — the Gallery view was removed and a .view asking for gallery is listed as broken and says what to change it to; the command stays because fm-cli and the asset pickers use it
searchqueryObjectMeta[]FTS5; empty query → []
getidNoteDetail | nullmeta + full body
backlinksidObjectMeta[]every note whose body carries a note: link to this one
highlightsnear, limitHighlight[]every ==highlight== in the notes, those in near first; for the editor’s ((
reviewstodayObjectMeta[]notes whose review day is today or earlier, longest-waiting first (at most 50)
highlight_pdfreference, text{note, title, page, line, made}a PDF’s words as a line with their page in the PDF’s note (made if none points at the PDF); from formicaria’s browser
highlight_pageurl, text, before{note, title}a web page’s words marked in the note keeping that page; note: null when none holds them
highlight_undonote, text, line{ok}a browser highlight taken back: the last highlight reading text unmarked, or the line line removed
templates—ObjectMeta[]the notes tagged as templates, for the new-note picker
stalesinceObjectMeta[]notes untouched in git since since (a --since value, default 90 days ago), oldest first. Derived from git, stored nowhere; a vault with no history is skipped, not reported as wholly stale
activitysinceEditEvent[]who last edited what, straight from git log. since defaults to 1 year ago
duplicates (also documented with prune_duplicates under Vaults)—DuplicateFamily[]notes grouped by identical body, and what pruning them would remove. A read: it changes nothing
config—Configversion, the vault list’s path and whether it is writable, what is installed, and which FM_* variables are set — facts about the machine, not about any vault. It carried a copy of the vault list and a second list of restic repos until 2026-09-08; both came from list_vaults’ producer, so this answered nothing it was the source of. Now takes no lock and spawns no git. The one call a support question can start from
pingsince{changed, git, clock}the 15 s visible-tab reindex poll; carries the app’s clock, so a change of zone reaches every page within one beat
clock—Clockthe app’s clock (2026-10-24): the zone every view shows and counts days in — v, zone (or null when it cannot be read), iana, offset, offset_seconds, now (UTC), today, source (automatic/chosen), chosen, system, instants. What the UI and the assistant read; fields are only ever added
set_clockzone (a name, an offset, or "" for Automatic)Clockchoose this device’s zone (config_dir()/formicaria/clock.json); refused to a paired device
privacy—Privacythis device’s privacy switches (2026-11-17, config_dir()/formicaria/privacy.json): search, trackers, ads, cookies, clean_links, gpc, https_only, app_trackers, sites_off, fired, v, and the engines to choose from
set_privacyany of those switches; site_off/site_on (a site); fire: truePrivacychange them (only what is given, each checked); refused to a paired device
diary_status—{on, bytes, days, since, dir, keep_days}this device’s usage diary (2026-11-20, fm_app::diary, config_dir()/formicaria/diary/): on or off, how much is kept; refused to a paired device
diary_setonthe samethe switch: off writes nothing more
diary_forget—the sameDelete it: every line, and the browser’s own output
diary_noteevents: [{kind, …}]{}what a page, the browser’s kit or the add-on tells the diary, held to diary::from_pages’s kinds (page, error, browser, act) and fields; anything else dropped

Writing notes

CommandArgsReturnsNotes
capturebody, vaultObjectMetacreates a note
set_propertyid, key, value{ previous }writes one frontmatter field (see the table below), and answers the value it replaced (null if none), in the form it reads back — what undo sets again
set_propertiesid, props{ previous }several fields of one note in one write; an empty value removes a field. previous maps each key to the value it had (null if none). Nothing is written unless every key is accepted
create_notesnotes, vaultObjectMeta[]several notes in one call, each made whole: { title, body, tags, start, props }. Every note is checked before any is written. A number in props must be whole. The only way to set log
update_bodyid, body, basethe new versionbyte-for-byte body write; base is the version you last saw — a mismatch is refused (see below). '' opts out
deleteidDeletedNoteunlinks the file and both index rows, and answers the note’s file and notebook so the UI’s undo can put it back
discard_if_blankid{ discarded }deletes the note only if it holds nothing — no text, title or property; the editor asks it on leaving a note
restore_notevault, fileObjectMetaput a deleted note back from its file; refused if a note with that id exists again
put_back_tutorialsvault?ObjectMeta[]Help → Put the tutorials back: write again each shipped tutorial missing from the notebook; one that is there, changed or not, is left
deleted_notesdays (default 30)DeletedRow[]read-only: notes deleted in the last days, read from each notebook’s own history (git, or libgit2 on the phone), skipping ones that exist again
restore_deletedvault, id, daysObjectMetabring back a note listed by deleted_notes, exactly as it was before it was deleted
create_paperinput, vaultObjectMetaa note from a pasted BibTeX entry, DOI, arXiv id, URL or bare title — parsed locally, never looked up online
clip_saveurl, title, body, tags, props, bibtex, snapshot, vaultObjectMetakeeps a page from formicaria’s browser: the note the add-on built, and the page’s copy as an asset linked at its end; with bibtex, the note is made as create_paper makes one. Fetches nothing; only http(s) pages. Stamps the source contract (source: web, source_id, captured, recorded: copied) where the add-on did not
page_notesurl[{id, title, context}]the notes that name a page, matched by its address with the scheme, www., fragment, tracking parameters and trailing slash ignored; context is the line that names it. Read-only; the browser’s toolbar count
kinds—[{key, label, mark, views, sources, place, out}]the library’s kinds of notes (fm_app::kinds): each kind’s views, sources, default place and hand-offs; every listed note carries its kind_key. Read-only
sections—[{key, label, icon, mark, purpose, order, page, types, views, new}]the library’s sections (fm_app::sections, from the shipped .kind files): what a person navigates, each a rule over notes, its views (builtin, view, special or renderer) and what + makes. Read-only
note_historyid, limit? (50)[{commit, author, time}]the commits that changed the note’s file, newest first, from its vault’s git (⋯ → History). Read-only; empty without git
note_versionid, commit{text, body}the note’s file as that commit left it, and its body (null when it did not exist there). Read-only
note_fileid{text, title}the note’s file as the store writes it (⋯ → Export → Markdown). Read-only
taggedtag, limit? (50)[ObjectMeta]the notes carrying a tag, newest first (the Home note is tagged home). Read-only
section_noteskey, limit? (500, at most 5000)[ObjectMeta]a section’s notes, newest first: what its list, table and gallery views draw. Read-only
section_summaryhidden? (vault names), days? (35, at most 400)[{key, count, latest, recent}]per section (leaving out the vaults in hidden, the rail’s vault chooser), how many notes it holds, its newest (ObjectMeta or null), and when each note of the last days days was made, newest first (Home’s figures and heatmaps), from one read of the store. Read-only
journalon_or_before (YYYY-MM-DD), limit? (14)[ObjectMeta]the journal: notes tagged journal titled with a day, newest day first, from that day back. Read-only
actions—[{key, label, takes, makes, runs, agent}]what formicaria can do, declared once (fm_app::actions): each action, where it runs (server, hand-off, open), and the assistant’s permission (off for each). Read-only
putto: {note, at?} | {new: {title, shelf?}}, md, base?{id, version?} (a new note: its metadata)the one way content moves into a note (fm_app::actions::put): at its end or the end of a heading’s section (at: "after:<heading>"), whether or not it is open; base guards the version read. Or a new note on a shelf
recipe_from_pageurl (query); body = the pageWebRecipereads a recipe out of a page the browser already has — recipe_from_link’s reader with no fetch
paper_bibtexidStringthat note’s frontmatter rendered back as a BibTeX entry

Discussions

CommandArgsReturnsNotes
replyid, body, authorName, authorEmailObjectMetapost a discussion message on a note (or another message — it re-roots to the same thread). One file, ULID-named, in the target’s vault. No vault arg: a reply joins the audience of the note it is about
threadidThreadViewa note’s discussion — {root, count, messages[]}, each message with a server-computed depth. root: null when the note itself was deleted (the discussion survives it)
thread_roots—ThreadRoot[]every note that has a discussion, with its message count — what puts the badge on a card
create_discussiontitle, vaultObjectMetacreate a first-class discussion — a note that is the root of its own thread (thread_of points at itself). A dedicated command because set_property refuses thread_of
discussions—DiscussionSummary[]every first-class discussion across vaults, most-recently-active first: {…root, count, last_activity, participants}. Participants come from git authorship. Comment threads on an ordinary note are not here — they stay with their note

Proposals

A proposal is a note carrying proposes: branch:<name>; the change itself lives on that git branch. Nothing here writes to main.

CommandArgsReturnsNotes
proposals—ObjectMeta[]every open proposal across vaults, newest first. A store query like recent, not a git read — it lists proposal notes; branch state is derived elsewhere
create_proposalid, body, why, kind, tool, query, authorName, authorEmail, propsObjectMetawrite the draft to a review branch and the proposal note beside it. props (start/due/location/addTags) sets the note’s details too; on a revision it goes over the details the proposal already carries, key by key. kind/tool/query record how it was produced — a model’s /propose, /research or /transcribe, and what it searched for
proposal_foridObjectMeta | nullthe open proposal against this note, if there is one
proposal_diffida unified diffwhat accepting would change, read off the branch
proposal_contentid{body, …} or nullthe proposed body itself, for the side-by-side review, with the start/due/location it sets and the note’s current ones (wasStart/wasDue/wasLocation). null when the id does not resolve
proposal_shownid—records that a human actually looked at it. Idempotent, fire-and-forget: it must never fail the screen it is reporting about, and it is what separates left alone from never displayed
accept_proposalid{outcome}merge the proposal’s branch and close it — not a body copy. outcome is merged, conflicted or already_gone; a proposal its author declined is refused
reject_proposalid, why—close it with a reason. The outgoing commit is kept, so the accepted/rejected label stays true later

Assets and media

CommandArgsReturnsNotes
ingest(binary body) ?name=, vaultObjectMetaupload → asset note; raw bytes, held whole in memory
ingest_chunk(binary body) session, seq, vault{session, received}one slice of a chunked upload, appended to <vault>/.fm-ingest/<session>/part. seq is checked: a lost or repeated chunk is refused where it happens, because the alternative assembles a file that hashes fine and is quietly wrong
ingest_finishsession, name, vaultObjectMetaingest the assembled file through BlobStore::put_file (which streams in 64 KB reads) and write the same asset note ingest writes. The content address is identical either way — chunks are transport, and the hash is taken once over the whole file
ingest_cancelsession, vault—abandon an upload and reclaim its bytes now. Not needed for correctness — abandoned sessions are swept at boot, by age — but a cancel that leaves a gigabyte on a phone until tomorrow is not a cancel
resolve_assetreference, kindbytes (ArrayBuffer)kind = full | thumb; whole blob in memory — prefer GET /api/blob/<ref>, which streams and honours Range
asset_statusreference{has_blob,has_thumb,mime}sniffed MIME
open_externalreference—opens the blob in the OS default app

Recording and syncing (git)

CommandArgsReturnsNotes
commitmessage, vault{committed, conflicts}git-commit the vault. committed: false with conflicts non-empty is not “nothing to do” — the vault is mid-merge and nothing will be committed until those notes are settled
pushmessage, vaultu32squash the unpushed window → push; returns commits squashed (0 on the first push)
pullvault{merged, conflicts}fetch + merge through the .md driver; conflicts is a result, not an error
set_git_remotevault, url, name, email—sets the vault’s origin, and its git identity when name/email are non-empty (asked only of a vault git has never met); blank URL refused
set_identityvault, name, email—the git identity alone, for a vault that already has a remote
set_git_assets_maxvault, maxVaultInfo[]the size ceiling on attachments a push may carry. Above it, media stays local and only the notes travel
music_notes—AudioNote[]notes holding sound files (songs excepted): {id, title, vault, tracks:[{reference, title, song}]}; a file counts as sound by its first bytes, and song is the song with the same file, if any
songs_from_notenotestring[]a note’s sound files as songs, made once (the same file, the note named in the song’s text, its title as album): the songs’ ids in the note’s order
storage_unusedvaultStorageReportattachments no note uses: {nothing, attachment_only, held} — nothing points at the first; only their own attachment entry at the second; held is what was put aside (30 days). A note in the Deleted list (30 days) still counts as using its files
storage_removevault, hashes{files, bytes}puts those aside, if still unused: held in .fm-held/ for 30 days, their attachment entries to the Deleted list. Not from a paired device
storage_restorevault, hashes{files}puts held files back where they were. Not from a paired device
set_git_mediavault, sound, videoVaultInfo[]whether sound and video travel too, under that ceiling (vault.json’s git_sound, git_video; off by default). Told apart by a file’s first bytes
unrecorded—Unrecorded[]per vault, the notes on disk that git does not have — split by kind, with a bounded sample. The count alone was not a diagnosis: 146 could mean 146 notes existing nowhere else, or 146 something was needlessly rewriting
record_unrecordedvault{recorded}commit exactly those
duplicates / prune_duplicatesvault (prune only)DuplicateFamily[] / {pruned}prune refuses while any copy is still unrecorded, and always keeps the oldest of each family. Deleting an untracked note is unrecoverable; a tracked one is a git checkout away, so the order is forced rather than warned about

Conflicts and unreadable notes

CommandArgsReturnsNotes
conflicts—ConflictInfo[]conflicts with their kind, because “open it and keep the text you want” is true of exactly one kind. Git is authoritative; notes whose text still carries markers are unioned in
resolve_conflictvault, path, keep{resolved}keep = theirs | mine | edited. edited means “I reconciled both in the editor” and is refused while markers remain
read_skipped / resolve_skippedvault, name, text (resolve only)the raw text / {parses}the in-app raw editor for a note that will not parse. Works on any device, unlike open_skipped
open_skippedvault, name—hands the same file to the OS editor. Desktop only, by nature
kept_notes / kept_seen—KeptNote[] / {seen}notes a merge brought back after the other device deleted them while this one was editing — read out of the merge commits that recorded it, so the answer outlives the sync run, a restart, and a fresh clone. id/title are null for a kept path that is not a note (a saved view, manifest.json): reported honestly, and given no button, because “delete it again” is delete and that is a note command. Two terminators, neither needing state: deleting the note again drops the row everywhere, and kept_seen moves a per-device watermark — the device that kept a note and the device that deleted it are not asking the same question, so acknowledging on one must not answer for the other
demoted—DemotedField[]fields two devices set differently, where the merge kept both: what the note shows now and what the other device said. A read, and stateless — the loser is a conflict-<field> key in the note’s own frontmatter, so this is correct after a restart and readable in any text editor

Vaults

CommandArgsReturnsNotes
list_vaults—VaultInfo[][] is the first-run signal. The one producer of what a vault is: name, path, default, label, identity, attachment limit, supervision and restic repo — every cheap local fact, so no other arm has to re-derive one. Scoped — the one place the scope is visible to a user, because listing a vault the caller cannot read would leak its name
check_path / create_vaultname, pathPathCheck / VaultInfo[]the surface owns the verdict, not the form
clone_vaulturl, name, path, gitName, gitEmailVaultInfo[]clone a collaborator’s vault and register it
forget_vaultnameVaultInfo[]removes it from the list. The files are left alone — forgetting is not deleting
check_move_vaultvault, pathMoveCheckwhether the vault’s folder can move there, and how much would move. Asked per keystroke; changes nothing. Host-only
move_vaultvault, pathMovedmoves the vault’s folder, keeping its name, its place in the list and its settings: one rename on the same disk, a copy verified byte for byte across disks. A failure leaves it where it was. Host-only
recoverable_vaults—Recoverable[]vault folders on this device that are not in the list, with a note count — the way back from a forget_vault nobody meant. Empty without a managed vault root, and empty for a scoped caller
restore_vaultname, path, repoVaultInfo[]rebuild a vault from a restic repository
copy_note / copy_status / uncopy_noteid, vault; with_assets (copy) ; blobs (uncopy)CopyResult / CopyStatus / CopyResultcross-vault copy, its pre-check, and its undo. with_assets opts in to carrying the note’s first-degree blobs; blobs names the ones an undo may take back
set_supervisionvault, collect, publishVaultInfo[]the two supervision-corpus consents, always written together — an absent key and a deliberate no must not look the same to whoever answers for it later

Import

CommandArgsReturnsNotes
check_importsource, path, vault, nameImportCheckwhat is there and what would happen — attachments by kind, whether they will be linked or copied, and which vaults already hold this folder. Asked on every keystroke while someone types a folder, so it is a pure read
run_importsource, path, vault, name, stubs, replace, maxMb, skipKindsImportResultconvert a Logseq or Obsidian folder into notes. replace rewrites an earlier import’s notes except those edited or deleted since; maxMb/skipKinds leave attachments out (each still named in its note)
fit_previewpath, vaultFitReportwhat a folder of watch files (.fit, or one file) would become in the training log: the activities and sets that are new, files imported before, the same file with other contents (reported, never overwritten), near-duplicates (proposed, never merged), damaged files (refused and named) and files that are not activities. Reads the folder and the vault; writes nothing. Host-only
import_fitpath, vaultFitReportthe same, written: one log: workout entry per activity, one set note per strength set the watch counted, each file kept as a blob its entry names (source_fit), all in one commit. A second run of the same folder writes nothing and makes no commit. The folder is only read. Host-only
import_fit_filesfiles ([{session, name}]), vaultFitReportthe phone’s route for watch files: each file shared to formicaria or found in the one folder the person granted is first sent as a chunked upload (ingest_chunk), then this imports them all exactly as import_fit does — the same notes, keys, refusals and one commit — and writes no attachment note (it never goes through ingest). Each upload is discarded afterwards. Not host-only: it reads only the vault’s own uploads
workout_fitidWorkoutFile (name, data base64, steps, open, notes)a planned training session as a FIT workout file for a watch: its steps from the body’s - Warm-up: … lines (time, distance, repetitions, weight; heart rate in bpm and pace as absolute targets, never a percentage), a repeat for 4 x …; a line with no number is an open step carrying its words. Refuses an entry that is not a planned session. Writes nothing
calendar_syncvault, source; body = iCalendar text (times are put on the app’s clock; a sent offset is ignored since 2026-10-24)CalendarReportyour own calendar into a vault: new meetings become notes, a newer SEQUENCE moves one, a cancellation tags it. No model, no network — fm-serve reads the private address and hands the bytes in
mail_syncvault; body = JSON array of Gmail messages (format=full) (times are put on the app’s clock since 2026-10-24)MailReportGmail into a vault: one note per conversation (subject, last sender, when — never the text), and every invite read exactly as calendar_sync reads a calendar. No model, no network — fm-serve reads Gmail with a gmail.readonly token and hands the messages in
mail_conversations—MailConversationsread-only: every email conversation (id, title, when its latest message arrived, its current start), the starts already on the agenda, and the meeting notes linked to each conversation — what the assistant’s meeting pass reads
propose_noteabout, title, body, start, due, location, tags, author + supervision fieldsObjectMetapropose a new note linked to about (meeting_of): it exists only on its proposal/<id> branch until accepted. The assistant uses it for a further meeting fixed in an email exchange

Backup

CommandArgsReturnsNotes
backup_status—BackupStatus{vaults, git, restic, restic_password_set}; each vault carries {name, remote, unpushed, remote_moved, conflicts, restic_ready} — only what this command alone can answer, all of it paid for with a per-vault network ls-remote. identity, git_assets_max and restic_repo are local reads and live on VaultInfo; they were reported here as well until 2026-09-08, so two screens could disagree about one field. The password only ever as a bool, never by value
asset_batchesvault, budgetAssetBatch[]how a backlog of attachments would be sent, in steps. A device that has never sent attachments stages every one it holds the first time it can — the rule is a filter over the blob store, not a diff against the remote — so the first backup can be one pack a phone connection cannot finish. Each step is a rising size limit, so a step re-stages what is already sent (a no-op) and adds only what its raise newly admits. Local and read-only: a walk and a stat per file, no network and no repository access
last_commits—LastCommit[]when each vault last saved anything, as epoch seconds — null for a vault that has never been committed, which is a state and not a zero. Its own answer rather than a field on backup_status for the same reason backup_latest is: one git log -1 per vault, local and offline, so a phone can be told at first paint that nothing has been saved in five weeks. Scoped like list_vaults — how stale a vault is is itself a disclosure. No threshold: when silence is worth mentioning is a display policy
backup_latestvaultLatestBackupwhen this vault was last snapshotted. Deliberately not a field on backup_status, which polls every 45 s and already spawns a process per vault. Three distinct answers: a snapshot (id + time + the source paths it recorded), id: null with no unavailable — the repository opened and has never been written to — and unavailable with a reason, meaning this machine cannot tell you. An unreadable repository is reported, not raised
backupvaultBackupRunrestic snapshot of the vault’s notes directory and blobs/ — never the vault root, so no .git, views/, themes/ or vault.json; repo per vault, password from RESTIC_PASSWORD or the stored one. Answers what the snapshot held: {vault, notes_dir, blobs, contents}, where notes_dir is the directory it actually took (docs for a vault that moved it) and blobs says whether there were any — a vault with no attachments yet must not be described as carrying them. contents is restic’s own summary ({id, files_new, files_changed, files_unmodified, bytes_processed, bytes_added}) and is null when restic wrote the snapshot without describing it, which is not the same as a snapshot that held nothing
set_restic_repovault, repoBackupStatuspoint one vault’s snapshot (notes + attachments) at a repository; empty repo clears it
set_restic_password / clear_restic_passwordpassword / —BackupStatusthe one password every restic repo here uses; written 0600 beside the vault list, never into it

Credentials

CommandArgsReturnsNotes
probe_remoteurlRemoteProbecan this URL be reached, and does it need credentials
git_authurl{stored, …}whether a credential for that host is already held
set_git_credential / clear_git_credentialurl, username, token / url{…}delegated to the OS credential helper wherever git exists; stored by the app only on a device that has none — which is the phone

Views and themes

Both are files in the vault (views/*.view, themes/*.css), so both travel to collaborators over git. The view-authoring buttons were withdrawn from the UI on 2026-08-31; these commands stayed, and so did their tests. See Views.

CommandArgsReturnsNotes
list_views / run_viewname (run only)ViewInfo[] / ViewResultsaved .view files; no Query crosses the wire. A file with a mistake is still listed, with its parse error. The views that come with the app are listed after a vault’s own, marked shipped
log_daysview, from, to, rows{ days }a span of days of one log, asked for by the name of a totals view. Each day: sums ({ sum, n } per metric, n being how many entries carried it), of (entries that day), targets, times (occasions, first, last — for entries that carry a time), a low and high beside a sum when an amount was a range, and its entries when rows. With a food view, references: for each value it shows as a detail, the nutrients sheet’s reference for the person and its limit, for what to fill towards when no target was set
health_trackers—Tracker[]what the person tracks in the Health diary: every key on their Health templates (tag: template, group: Health) whose ending says its kind — _0to3, _0to10, _0to100, _yes, _count/_doses, a unit (_min, _ml, _mg, _g, _mmhg, _pct, _c), _score. Each: key, label, kind (and unit)
health_daysfrom, to, weeks{ template, trackers, days, counts, weeks }the Health diary over a span of at most 400 days; template is the Health template new trackers are written into (the oldest), or null. Each day: values by tracker key (a key absent was not recorded), the day note’s id, and late when it was written more than a day after. counts per tracker: of, recorded, days (at or above 1), moderate_or_severe (at or above 2, severities only), odd (values not counted). With weeks, per tracker its ISO weeks (from Monday): of, recorded, days, sum — a mean is sum / recorded
health_guidanceday{ nhs_credit, cards, followed }the Health group’s cards (shipped/health-cards.json), each in its sources’ own words, and the ones followed on day — a program: health note naming the card in plan, with what the person chose in p_<choice> — each check counted: value, the days it was counted over (of, recorded, from, to), the body’s number (min, max or at_or_over), within, and unchosen when it reads keys not yet chosen
health_record—{ items, templates }the health record: templates names the record kinds that already have a template; items is every note (not a template) with a record kind (medicine, allergy, condition, result, visit, immunization, procedure, device, contact, none_known), in that order. Each: id, kind, title, status (record_status), start, due, about (for none known) and its other properties as written in fields, a result’s lab range among them
log_recentview, slot, q, limitRecentItem[]what a log holds already, one line per distinct thing, most used in slot first, each with the values it had the last time
music_library—ObjectMeta[]every song (log: music), sorted by title, in one pass: the Songs screen filters it as the person types
music_playlists—Playlist[]every note tagged playlist, by title, with its songs’ note ids in the body’s order (repeats kept)
video_library—ObjectMeta[]every video (log: video, 2026-11-17), sorted by title
video_collections—Playlist[]every note tagged collection, by title, with its videos’ note ids in the body’s order
log_recipesviewRecipe[]the recipes saved in a log, by name. Each: servings, its ingredient entries, of (how many), and sums — every whole-number value the ingredients carry, added up, with how many of them carried it. Nothing is adjusted for cooking
log_nutrientsview, dayNutrientsevery vitamin and mineral of one day: per value its sum, how many entries carried it, the reference for an adult of the person’s sex and age where there is one figure (EFSA 2017), an upper level where it applies to food, and the day’s entries. needs_sex when figures were left out for want of it. drinks: water (beside EFSA’s total water), caffeine (beside its 400 mg) and alcohol (alone), the same way. on_day: the keys Day shows now, the person’s pins or the view’s own; most_on_day; profile, the note that keeps the pins (day_values)
exercise_library—{ seen, sources, exercises, videos, videos_seen }how each exercise is done, as its source wrote it: per card its steps, and about, start, dose, notes where the source has them, its page and reference, and where the app files it (equipment, area). sources carry each body’s credit line and licence. videos are links, each a known body’s (tier: body) or a trainer’s (tier: trainer)
recipe_librarybook?{ key, label, source, home, seen, recipes }one collection carried in the app, by its key (none: the first), as published: each recipe with its ingredients and steps word for word and its page; NHLBI’s carry their publisher’s values per_serving, Italian Wikibooks’ (wikibooks, CC BY-SA 4.0) carry text, notes, yield/servings, region, times, image as a link, authors_url — and no values
recipe_libraries—the same, one per collectionevery collection carried in the app, in the order offered; each names itself (key starts a logged serving’s source, <key>/<id>; label labels its rows)
log_kitchen—{ id, title }[]what the person says they have at home: notes carrying kitchen, by name. No amounts
log_products—Product[]the packaged foods a person wrote down from their labels: notes carrying product, each with its per100 values (the keys every food uses), and barcode and serving_g when given. In no log and no day. unit is ml for a food measured in millilitres and each for one counted in pieces, with piece saying what one is (tablet, capsule); its per100 is then per 100 pieces
log_routinesviewRoutine[]the sessions kept under a name in a log: each with the weekdays it is meant for (mon … sun) and its sets — entries that name the routine instead of a day, so they are in no day until planned onto one
plan_librarygroup{ plans, activities, weeks, hidden }the diets (food) or regimes (fitness) that can be followed, as carried in the app: each with what it rests on, its sources, its checks, what cannot be measured, and links to how it is done. activities (fitness only) are activities a named body counts, with what each counts as; weeks (fitness only) are example weeks a public body lays out day by day; each card also says its kind, the question it answers, whether to start_here, how it relates to the others, and its notes per flag. Cards whose not_for matches the profile’s flags are left out and named in hidden
plan_profile—Profilea person’s own measurements — sex, born, height_cm, weight_g, pal_x10, and the opt-in flags (pregnant, breastfeeding, postmenopausal, kidney, diabetes_meds, eating_disorder) — from the note carrying a profile property, or all empty
plan_previewid, dayPreviewone option with its numbers worked out for this person: the bounds per check, the energy estimate when it uses one, and which measurements are still missing. Writes nothing
plan_progressgroup, dayProgressthe plans in force on day — one per question, in followed; the first also as plan, checks and the other top-level fields — and the week holding it (Monday to Sunday) measured against each: per check its bounds, the value so far, met / under / over / none, each day’s value, and a four-week trend. A check the profile now hides is not measured. Empty when nothing is followed
plan_watchgroup, dayWatchthe “worth watching” set of the group, measured on the week holding day whichever plan is followed or none: per line its bounds for this person, the value, the state, the days and a four-week trend. A line the profile hides is left out. Writes nothing
coachday, from, toCoachAnswerFitness → Coach: the Coach plans in force on day (program: coach notes, the latest first, each with its library plan, week, goal and event_date) and the Coach’s own calendar from from to to (at most 62 days): per day the training log’s entries (planned, done, skipped), the Menu’s planned meals and the meetings the calendar sync wrote. The Agenda and the board are untouched. Writes nothing
coach_progressday, weeksWeekProgress[]each of weeks weeks (1–26, default 8) up to the one holding day: per sport, sessions planned, done and skipped, minutes planned (kept in planned_minutes once done) and done, and distance done. A day’s sets are one strength session. Measured facts only: no load, zone or line across sports. Writes nothing
match_plannedday (optional)Matchesimported watch sessions (source_key fit:…) with no plan link, each with the planned entries on its day that count as the same: exactly one is a proposal; several (or none, when day is given) are listed. A planned entry two imports could both be is proposed for neither. Writes nothing
accept_matchplanned, importedFoldedthe person accepted a proposal: the planned entry keeps what was planned as planned_*, takes the session’s done values, stops being planned, and the imported note is folded into it (its source_key, source_fit, file and body tables kept) and removed — one note per session, recorded as one step. Answers what changed, so it can be taken back
food_searchq, limitFoodHit[]foods in the food list whose name has a word beginning with each word typed, the plain food first: the word whole before a word it begins, the food before a dish named after it, the food as it comes (raw, plain, a table’s average) before what was done to it. The list is carried in the app and unpacked on first use
food_getidFoodDetail or nullone food: every value per 100 g, its household portions — or, where it has none, the same food’s from another table, named with it (1 portion · CREA (Italy)) — and the list it came from. id may be an entry’s source
pack_status—PackStatusthe food list this app carries: what it says about itself and what it takes on this device, or why it could not be put in place
save_viewvault, name, view, group_by, tagViewInfo[]writes the file. A view filtered by hand keeps its filter — saving over it is refused rather than quietly dropping what a screen cannot describe
rename_viewvault, from, toViewInfo[]moves the file and leaves its contents alone — which is why it is a rename and not “save under the new name, delete the old”
delete_viewvault, nameViewInfo[]removes only the view; the notes it was showing are untouched
list_themes / read_themevault, name (read only)ThemeInfo[] / the CSSreading a theme changes nothing
save_theme / rename_theme / delete_themevault, name/from,to, cssThemeInfo[]deliberately not read-only: the generation bump is what makes the other pane, and the other machine, notice a theme edit without a timer

Property values (set_property)

set_property’s value is parsed per key:

keyvalue formatempty value
typeasset → asset; anything else → note (Kind::from_str is lenient, so legacy task/meeting frontmatter migrates silently)→ note
statusany stringclears
titleany stringclears
startYYYY-MM-DD or YYYY-MM-DDTHH:MMclears
dueYYYY-MM-DD or YYYY-MM-DDTHH:MMclears
logrefused — what kind of logged entry a note is, is set when create_notes makes itrefused
hardtrue/yes/1 → true, else false→ false
tagscomma-separated; a tag may contain spacesclears
(other)free text → a custom frontmatter propertyremoves it

The lost-update guard (update_body’s base)

An editor that has been open a while may be holding a version of the note that no longer exists — most obviously when a pull merged someone else’s edit into it. Saving then would overwrite their text and leave a history saying you wrote it.

FileStore::put already refuses a write whose file moved on disk since we indexed it, but that check cannot see this case: pull merges and then reindexes (a merge is invisible until it does), which records the post-merge mtime and stands the guard down exactly when it mattered. The staleness is in the client, so the client declares what it edited: send the version you last saw (it comes back on get) as base, and hold the one update_body returns for your next write.

A mismatch returns this note changed on disk since you opened it — reload before saving. The UI reloads and puts your unsaved draft back below the merged text with conflict markers — the same stance as the .md merge driver: both versions where a human can see them, never a silent choice.

The token is the sha256 of the body, not the updated stamp. A stamp only moves for writers that bump it — the app does and the merge driver does, but hand-editing in Vim does not — so a stamp left exactly the case put’s mtime guard could not cover. Content cannot lie about whether the body moved. It costs ~1.6 ms on the largest body there is (a whiteboard scene), against a save debounce that then writes and fsyncs that same body.

Asset references

An asset is referenced as asset:sha256-<hex> (canonical, in Markdown) or sha256:<hex>. resolve_asset/asset_status accept either, plus a bare hash.

Routes that are not commands

A command answers with a value. These cannot, so they live in the transport instead — putting them in dispatch would push an HTTP concern into the shared surface.

POST /api/alive

Liveness, and only liveness: the UI beats it every 15 s so the auto-shutdown watchdog knows a tab is open. It takes no lock, reads no files, and never reaches dispatch. It is separate from ping because a hidden tab must keep the app alive without making it reindex a vault nobody is looking at — and because the watchdog belongs to this server, so a frontend without one would never call it.

POST /api/remind_set and POST /api/rest_end

The desktop program’s side of reminders. remind_set takes { items: [{ title, text, at }] } (at in milliseconds), the list the page worked out from reminders; the program keeps it in <config>/formicaria/reminders.json and says each through the system’s notification when its moment comes and no page is open. While one is still waiting, the program rests instead of stopping when its last page closes: it answers 503 to the assistant, which then stops its model. rest_end is how a newer copy asks a resting one to make way; a program somebody is using answers 409. Both are host-only, and neither is a command: they are about this process.

POST /api/browser_status, browser_setup, browser_set, browser_open

formicaria’s own browser on a computer (Linux for now): its state, setting it up (Firefox ESR downloaded from Mozilla, checked against Mozilla’s signature and the pinned SHA-512, made formicaria’s by the kit, into <config>/formicaria/browser/), the person’s two choices (open_in_it, block_ads), and opening formicaria in it. Host-only, like the updater’s routes: they are about this computer, not a vault.

The browser’s add-on reaches eight routes and no others — clip_save, recipe_from_page, list_vaults, for a download kept in formicaria ingest, create_notes and music_library, and the read-only page_notes and search (the toolbar’s count and fm in the address bar) — and only from a moz-extension:// origin carrying this computer’s key (X-Formicaria-Key, kept 0600 in that folder). Any other extension is refused by the same cross-origin guard that refuses a web page. Once it has, and until the program stops, the app’s pages may be framed by that add-on and nothing else (frame-ancestors moz-extension://<its id>, otherwise 'none'): its sidebar and new-tab page.

GET /api/blob/<reference>

Blob bytes, streamed from disk with the sniffed Content-Type, Accept-Ranges: bytes and honest Range support (206 with Content-Range, 416 when unsatisfiable). This is what <img>/<video>/<iframe> point at, so opening a note with a large attachment costs no memory and seeking a video costs one range request instead of a whole-file download.

It is a route rather than a command because a command answers with a Vec<u8> — the shape that forces the whole file into memory in the first place.

Two response headers are load-bearing, not decoration. X-Content-Type-Options: nosniff stops the browser second-guessing the sniffed type. And anything outside an inline-safe allowlist (image/* except SVG, video/*, audio/*, application/pdf) is sent Content-Disposition: attachment: blobs arrive from collaborators, and a blob is now at a URL the browser can navigate to, so an SVG or HTML attachment rendered as a top-level document would run its script in the app’s own origin. Subresource loads ignore the disposition, so inline SVG images still render.

Frontmatter schema

Each note is Markdown with a YAML frontmatter header. Well-known fields are below; any additional key you add is preserved and immediately usable for grouping (e.g. project: alpha) — with the reserved exceptions noted in the table (thread_of / reply_to, proposes / base, and log with the keys of the food and training logs), the first of which mark a note as a discussion message or a proposal and are managed for you rather than set by hand.

FieldTypeMeaning
schemaintschema version (currently 1).
idULIDthe note’s identity (also the filename).
typeenumnote | asset. Not user-settable — differentiate notes with tags.
titlestring (optional)display title; for assets, the original filename.
statusstring (optional)any workflow label (e.g. todo, doing, done).
startstamp (optional)when the work/meeting begins; the left end of the calendar bar.
duestamp (optional)the deadline/end; drives the agenda and urgency.
hardboola hard deadline (marked ◆).
tagslist of stringstags.
assetslist of stringsblob references (sha256:<hex>) this note points at.
codelist of stringscode references (repo + commit).
createddatetime (RFC 3339)set once, on creation.
updateddatetime (RFC 3339)bumped on every edit.
reviewday (optional)when the note comes back for review; set by Again · Good · Easy after Recall. Not a deadline: never overdue, not in the Agenda.
review_gapdays, as text (optional)the gap the last review chose; the next one doubles or triples it.
thread_ofnote:<ULID>reserved. Marks this note as a message in another note’s discussion. A note carrying it is hidden from Board/Agenda/Timeline and is not offered as a link target — so it is not groupable like a custom key. Set by Reply, not by hand or set_property.
reply_tonote:<ULID>reserved. The message (or note) this one answers, for indentation only. Same handling as thread_of.
proposesbranch:<name>reserved. Marks this note as a proposal of a git branch. Like a message, a note carrying it is hidden from Board/Agenda/Timeline and gathered by the Collaboration view instead. See Proposal semantics below.
basecommit SHAreserved. The commit a proposal’s branch is measured against (an immutable SHA, not a branch name). Used by the diff, not for grouping.
remindminutes, or offwhen to be reminded of this note: that many minutes before its start or due; off leaves it out. Without it, at the time itself.
logfood | workout | body | keptreserved. Marks this note as a logged entry of the food and training logs. A note carrying it is kept out of Board, Agenda, Timeline and search, and it is set by the logging sheets, not by hand.
amount_g, amount_mlwhole numberhow much of a food a logged entry is: grams, or millilitres for a food whose label is by volume. An entry has one or the other; neither is turned into the other.
unitmlon a packaged food’s note: its label is per 100 ml and it is measured in millilitres. Absent for grams.
product, kitchen, routine, weekdays, planned, program, plan, profile, keptvariousused by the food and training logs (a packaged food, something in your kitchen, a routine and the days it repeats on, a planned entry, the diet or regime followed). Written by their own screens; not meant for grouping.
(custom)anypreserved verbatim; groupable with no code change.

Proposal semantics

A proposal is an ordinary note that names a git branch it proposes merging. Four rules keep it honest, because a note lives in git history forever while a branch does not:

  • proposes is a tolerant, historical pointer — not live state. A branch may be merged, renamed, or deleted while the note remains. A proposal whose branch no longer resolves is shown with a warning, never treated as an error or hidden.
  • How a proposal ended is written on it, once (since 0.18): accepted: <time> when it was merged, declined: true with declined_at: <time> (and declined_why) when it was turned down, closed: true when its branch went with no record of either. An ending cannot become untrue when a branch moves, and the branch is exactly what an ending deletes. A proposal with none of these is open, and that is still read from git. Proposals accepted before 0.18 are given their accepted time from git’s own accept commit the first time the app starts.
  • status on a proposal means author readiness only — draft (don’t review yet) or ready (please review). It is the same status field, reused. It never carries how a proposal ended: that is the keys above.
  • base is an immutable commit SHA, so the diff still resolves years later. A branch name would dangle.
  • Who proposed it is git’s answer, not a field. There is no author/agent/proposed_by key — a proposal by an AI agent differs from a human’s only in the git commit identity, which the “edited by” label already shows. A proposal can never be accepted (merged) by an agent; that is a human action.

Stamps: start and due

A stamp is a calendar day with an optional wall-clock time:

Written asMeans
2026-07-20all day — a deadline with no particular hour.
2026-07-20T14:3014:30 on that day — a meeting, a talk, a call.

A stamp is naive: it carries no UTC offset, because 14:30 means 14:30 where you are. (created/updated are different — they are instants, so they keep a full RFC 3339 offset.)

Both spellings are accepted when you hand-edit a note; fm normalizes them to the two forms above on its next write:

  • 2026-07-20 14:30 (a space instead of T)
  • 2026-07-20T14:30:00 (seconds — truncated; stamps are minute-granular)

Give a note a start and a due and it draws as a bar across those days in the calendar. When both ends carry a time, the bar is labelled with its window (14:30–15:00) — that is what a meeting looks like.

Notes:

  • id, created, updated, and schema are not editable through set_property.
  • Urgency (overdue / soon / week / later) is derived from due against the local date — there is no stored priority field. It is day-granular: a time changes how a note is displayed, never which urgency band it lands in.
  • The body is literal Markdown; it round-trips byte-for-byte through edits.
  • assets/code are lists of references. Ingest sets assets; both are editable from the note’s details panel like any other field, comma-separated.

Example:

---
schema: 1
id: 01J8Z9X0K2A3B4C5D6E7F8G9H0
type: note
status: doing
start: 2026-07-20T14:30
due: 2026-07-20T15:00
hard: true
tags:
  - meeting
  - meta-rl
assets:
  - sha256:39908450001673e971ff2e6ecd0e43b0ae534d74dfd91759cff9a4bdb06a5f2b
created: 2026-07-15T10:00:00Z
updated: 2026-07-15T12:30:00Z
project: alpha
---

Meeting notes go here.

Getting started

Fifteen minutes from a clone to a running app and a green gate. If you would rather read about the design first, Architecture is next door — but the build is quick and it makes the rest concrete.

1. Install pixi

pixi pins the entire toolchain: the Rust compiler, Node, pnpm, mdBook, and the optional media tools. Nothing else is a prerequisite, and nothing here expects cargo, node or pnpm on your PATH — if you have them, they are not the ones this project uses.

curl -fsSL https://pixi.sh/install.sh | sh      # or: brew install pixi / winget install prefix-dev.pixi

2. Clone and set up

git clone https://github.com/formicaria-org/formicaria.git
cd formicaria
pixi run setup      # points git at .githooks

pixi run setup is one line — git config core.hooksPath .githooks — and it installs a pre-commit hook that rejects any staged file over 5 MB. This repo is text; media belongs in the vault’s content-addressed blob store. The hook is what keeps a clone small a decade from now, and it is easy to forget, which is why it has a task.

The first pixi run of anything downloads the toolchain. That is the slow one.

3. Run it

pixi run serve      # builds the UI, then serves it against ./vault

Open http://127.0.0.1:8765. serve points at a scratch ./vault in the checkout (gitignored), not at your real notes, and it turns off the close-the-tab-quits behaviour — under a dev loop a closed tab means “I am about to reload”, not “I am finished”.

Some things to know about the loop:

  • The UI is compiled into the binary. crates/fm-serve/build.rs bakes ui/dist in, so after a frontend change you rebuild the binary — checking ui/dist’s timestamp will fool you. pixi run serve does both.
  • Restart after a backend change. There is no watcher.
  • pixi run build produces the real thing at target/release/{fm-serve,fm}, and pixi run app runs an already-built one without rebuilding.

4. The gate

pixi run ci

This is the whole gate, and it runs locally. Every GitHub workflow in this repo is manual; none of them gates a push. If pixi run ci is green, you are done — see Testing & CI for what is inside it, which environments exist, and the four opt-in suites that are not in it.

One trap, from docs/context/known-issues.md: pixi run ci | tail reports tail’s exit code, which is always 0. Read the run’s own status, not a pipe’s.

5. Where things are

crates/fm-model     the data model — no I/O
crates/fm-query     the query engine — CANNOT touch the filesystem (seam 1)
crates/fm-core      FileStore, BlobStore, ingest, git, backup
crates/fm-app       dispatch — the one command surface — and the commands themselves
crates/fm-serve     an HTTP shell over dispatch, and the embedded UI
crates/fm-cli       the `fm` binary; also what git invokes as the .md merge driver
crates/fm-fetch     downloads checked against a pinned hash
crates/fm-update    updating the app in place
crates/agent-serve  the assistant's binary; the assistant itself is Myrme, linked by tag
ui/                 Svelte 5 + Vite
mobile/             the Tauri shell for Android and iOS
docs/src/           this manual
docs/context/       the maintainer's working notes — not documentation

6. Before you add anything

Read How to add a feature — but the short version, and the part this project has actually been bitten by, is that every addition is justified locally and nothing checks the sum. So before adding a dependency, a file to the release archive, a relaxed guard or a changed default, ask:

  1. What subject is this? Grep the #subject index at the top of docs/context/decisions.md.
  2. Read the entries it names — and read past them. The index is a starting point, not a contents page.
  3. Classify honestly: permitted / extends an exception / contradicts a standing decision. If everything you ever check comes back permitted, you are not applying this.
  4. Does it widen what ships? If so it earns a decisions.md entry whatever the verdict.

If it contradicts a standing decision, write the dated reversal first, with a > SUPERSEDED banner on the entry it supersedes. Writing it first forces the argument while changing course is still cheap.

decisions.md is append-only. A decision is superseded, never edited away — the value of “we tried X, then Y” is the whole chain.

Architecture

formicaria is a small Rust workspace behind a browser UI. The design is built on three seams so that each layer can change without breaking the others.

The three seams

        Browser (Svelte 5)
  Board · Agenda/Calendar · Timeline · Activity · Discussions · Search · NotePanel
             │  ipc.ts:  POST /api/<cmd>  (prod)  ·  in-memory mock (dev/test)
             ▼
        fm-serve  ── transport shell: frames HTTP, nothing else. Also serves the
             │        UI, GET /api/blob/<ref> (streamed, Range) and POST /api/alive
             ▼
   fm_app::dispatch ── THE one command surface: takes the vault lock, runs the
             │           command, hands back Output::{Json,Bytes}
             │
   ┌─────────┼──────────────── seam 1 ────────────────────────────┐
   │   fm-query  the query engine — CANNOT touch the filesystem    │
   └─────────┼──────────────────────────────────────────────────┘
             ▼  seam 2 (Store)                    seam 3 (OS)
        fm-core:  FileStore = Markdown + SQLite FTS5     → pdftotext / vipsthumbnail
                  BlobStore = content-addressed media    → restic / git (subprocess)
  • Seam 1 — the query engine. fm-query compiles queries against objects and never performs I/O. This is a compile-time guarantee: the crate has no dependency on rusqlite, std::fs, or path types, and CI greps to keep it that way. It is the whole insurance policy — the durable core cannot rot into a filesystem tangle.
  • Seam 2 — the store. fm-core implements the Store trait twice: MemoryStore (zero-I/O, used to verify the query contract) and FileStore (Markdown files + a disposable SQLite FTS5 index). Swapping storage is a backend change, not a rewrite.
  • Seam 3 — the OS. Heavy tools (pdftotext, vipsthumbnail, restic, git) are shelled out to, not linked — so their (often GPL) licenses never enter our binary and they can be upgraded independently. The one exception is libgit2, linked where there is no git program to call: the phone and Windows (decisions.md#track-m).

The crates

CrateRole
fm-modelObject, Kind, PropertyValue — the data model (no I/O).
fm-querythe query engine + Store contract tests (no I/O — seam 1).
fm-coreFileStore, BlobStore, ingest, verify, manifest, backup, git.
fm-applibrary: dispatch (the one command surface + the Host trait), the command functions, .view execution, the vault registry (vaults), DTOs.
fm-servethe HTTP transport over fm_app::dispatch; owns only framing.
fm-clithe fm command-line tool over the same core.
fm-fetchdownloads with a pinned hash: models, runtimes, reference packs.
fm-updatefinding, verifying and installing a newer version of the app.
agent-servethe binary of the assistant’s resident process (package fm-agent-serve). Its code is Myrme’s; this crate only gives it a binary in this workspace.

The assistant, Myrme, lives in its own repository (formicaria-org/myrme), and fm-serve links its fm-agent-run crate by a pinned tag. There it is a deterministic orchestrator (fm-agent): a fixed pipeline whose model touch-points and web search sit behind seams, so it is unit-tested with fakes and needs no model and no network; the model never drives control flow, holds a tool, or loops. All vault I/O goes through a running fm-serve, never a second FileStore, so fm-serve stays the single writer.

The assistant is behind an optional agent feature, in fm-serve and in the phone’s shell alike, and a build without it contains no assistant at all — which is what an Android --no-default-features build ships.

The command surface

The frontend never sends SQL or a query struct — it calls named commands with simple args, and fm-app builds the query behind dispatch. Each command is a plain function in crates/fm-app/src/commands.rs over the Store seam, so it is unit-testable with MemoryStore and behaves identically against FileStore.

Adding a frontend therefore means writing a shell — parse a request into (cmd, args, body), call dispatch, encode the Output — not a second copy of the dispatch table. fm-cli is what that costs when you don’t: it re-implements the flows against fm-core instead, which is the fork dispatch was extracted to stop repeating.

See Commands for the full list, and How to add a feature to extend it.

How to add a feature

formicaria is designed to be extended along its seams, without a plugin API. Here are the common recipes.

Add a command (backend function the UI can call)

A command is a pure function over the Store seam, fronted over HTTP. It touches five places — keep them in sync. The fifth is the one that fails your build if you forget it, and it was missing from this list until 2026-09-05:

  1. The pure function — crates/fm-app/src/commands.rs:

    #![allow(unused)]
    fn main() {
    /// All notes tagged `tag`, newest first.
    pub fn tagged(store: &dyn Store, tag: &str) -> Result<Vec<ObjectMeta>, StoreError> {
        let q = Query {
            filter: Filter::new().and(Predicate::TagsAll(vec![tag.to_string()])),
            sort: vec![SortKey::desc("created")],
            ..Default::default()
        };
        Ok(store.query(&q)?.rows.iter().map(ObjectMeta::from).collect())
    }
    }

    Add a unit test alongside the others in crates/fm-app/tests/ (drive it with MemoryStore or a temp-dir FileStore).

  2. The dispatch arm — crates/fm-app/src/dispatch.rs, in dispatch():

    #![allow(unused)]
    fn main() {
    "tagged" => json(commands::tagged(&lock()?.store(scope), &s("tag")).map_err(err)?),
    }

    store(scope), not store — the scope decides which vaults this caller may read, and every arm takes it. This sample said &lock()?.store until 2026-09-05, which does not compile.

    Not in fm-serve. dispatch is the single command surface; the server is a transport shell over it, so an arm added here is reachable from every frontend rather than only over HTTP. lock() takes the vault mutex for exactly as long as the arm needs it — if your command does anything slow (a subprocess, the network), clone what you need out and drop the guard first, the way backup_status does.

  3. The mock — ui/src/lib/mock.ts, a case in handle() so dev/tests work without a backend.

  4. The typed wrapper — ui/src/lib/ipc.ts:

    export const tagged = (tag: string) => invoke<ObjectMeta[]>('tagged', { tag });
    
  5. The command reference — docs/src/reference/commands.md: one row, in the table for the group it belongs to. This is the CI-enforced step. ci/checks.sh checks both directions and the count, so an arm with no row fails the build, and so does a documented command that no longer exists. CONTRIBUTING.md says the same thing; this page did not, which is how a contributor met the guard without having been told about it.

Args are camelCase in ipc.ts and map to the Rust snake_case params. That’s it — no Tauri, no codegen.

Add a view (renderer)

A view is “a query + a renderer”.

  1. Add (or reuse) a command that returns the objects you want (above).
  2. Create ui/src/renderers/MyView.svelte taking { cards, onopen } and painting them. It must stay generic: never hard-code a status literal (todo/doing/done) — color and group only via card.type, col.value/col.label, and urgency(card.due) surfaced through data-value / data-urgency / data-type; the actual tints live in ui/src/app.css. CI (ci/checks.sh) greps ui/src/renderers/** and fails the build on a leaked status word — this keeps renderers reusable.
  3. Wire it into the pane workspace: add the kind to PaneKind and give it a feedKey in ui/src/lib/panes.ts, fetch that feed in ui/src/App.svelte, and render it from ui/src/lib/Pane.svelte. One view at a time is the default layout and the tiled grid is a setting; either way N panes over M distinct feeds cost M fetches.

Add a store

Implement the Store trait (crates/fm-core/src/lib.rs) for your backend — five methods (get, put, delete, reindex, candidates) — query is a default method that runs candidates and hands the residual filter to the pure engine once, which is exactly what lets MultiStore federate by concatenating (you cannot union already-sorted/grouped/paginated results and recover sort/limit/total). Because the query engine is behind seam 1, your store only has to return objects; the engine does the rest. Verify it against the shared contract the way FileStore does.

Add an extractor (make a new file type searchable)

Text extraction lives in crates/fm-core/src/ingest.rs (extract_text). Add a match arm for the MIME type and shell out to the right tool (as the PDF arm shells out to pdftotext). The extracted text lands in the asset note’s body and becomes full-text searchable — no other change needed.

Add a theme

A theme is one CSS file. Override the semantic design tokens under a :root[data-theme="…"] block in ui/src/app.css (see Design system). Because every renderer reads tokens (via the legacy aliases), a new theme re-skins the whole app with no component edits.

Add a subprocess tool

Pin it in pixi.toml [dependencies] (conda-forge) so it’s reproducible, then shell out to it from fm-core following the backup.rs / ingest.rs pattern (std::process::Command, map failure to StoreError). Do not link a GPL tool — invoke it.

There is exactly one exception, and it is named rather than general: libgit2, linked where the operating system ships no git binary (Android, and Windows). It qualifies on its own GPL linking exception, and deny.toml records the scope. Adding a second such dependency needs a dated decisions.md entry first.

Design system

The UI has no CSS framework and no runtime style dependency — just CSS custom properties in ui/src/app.css, organized in three layers so that a theme is one file and renderers never need editing to be re-skinned.

The three layers

  1. Scales (theme-agnostic) — the raw vocabulary:

    • spacing: --space-1 … --space-8 (a 4px base)
    • type: --text-xs … --text-2xl with paired --lh-* line-heights, and --measure (the reading column width)
    • --radius-{sm,md,lg,pill}, --shadow-{sm,md,lg}
    • motion: --ease, --dur-fast, --dur-med
    • layout: --rail-w, --header-h
  2. Semantic tokens (per theme) — meaning, not raw values. Defined for dark (default) and overridden under :root[data-theme="light"]:

    • surfaces: --bg, --surface, --surface-elevated, --surface-hover
    • lines: --border, --border-strong
    • text: --text, --text-muted, --text-subtle
    • accent: --accent, --accent-hover, --accent-contrast, --accent-subtle
    • state: --danger-*, --ok-*; value/urgency tints (--tint-*, --u-*)
  3. Legacy aliases — the token names renderers already use (--card-bg, --muted, --column-border, --tag-bg, …) alias the semantic tokens. This is why adding the light theme required zero renderer edits.

Rules of thumb

  • Use tokens, not literals. Reach for --space-3, --text-sm, --radius-md rather than hand-picked px/rem, so rhythm stays consistent.
  • Tints are value-keyed. Status/urgency colors are applied via [data-value="…"] / [data-urgency="…"] selectors in app.css, never in a renderer (see How to add a feature).
  • Focus is global. One :focus-visible rule styles every interactive element; don’t remove outlines locally.
  • Respect reduced motion. Transitions collapse under prefers-reduced-motion — keep animations compositor-only (transform / opacity).
  • Note-body decorations are closed-vocabulary, semantic-token, and sanitize-safe. Highlights, callouts, and coloured text are marked extensions in render.ts that run upstream of the single DOMPurify pass (pure syntax→HTML belongs in a marked extension; only async vault resolution is a post-sanitize DOM walk). They emit a DOMPurify-default element (mark/span/ div) + a class drawn from a closed set (render-vocab.ts) — the sanitizer never learns the vocabulary, and an unknown value degrades to literal Markdown. Colours are semantic tokens (accent/ok/warn/…), never a colour name or hex, so a note stays truthful across themes; a new theme must define those tokens. A note body never carries arbitrary HTML/CSS (unportable
    • a shared-vault XSS hole). New body syntax follows this shape; user-supplied rendering is the off-by-default Lua hatch, never a widened render seam.
  • A header shows identity + primaries; everything else goes behind ⋯. For a note/board/discussion pane header the operational test is: visible = identity (which vault, who edited) plus what mutates the note’s primary content in place (the status chip, Edit/Details); the ⋯ “more actions” overflow = lifecycle / cross-cutting / destructive actions (Copy to…, Delete), with the destructive one last and red. The trigger is ⋯, never + — + means add / create (it is already “add media” and “new note”). When a new action is kind-specific, let the action declare which kinds it applies to; never keep a per-kind list of actions (that is a menu fork). This keeps the overflow from re-accreting into a junk drawer.

Adding a theme

Copy the :root[data-theme="light"] block, rename the theme, and change only the semantic token values. Wire it into the theme toggle in App.svelte (which sets document.documentElement.dataset.theme and persists to localStorage).

Testing & CI

Everything runs through pixi so the toolchain is reproducible. One gate:

pixi run ci        # = fmt + fmt-ui + clippy + test + test-native-git
                   #   + test-ui + check-ui + deny + checks + third-party-check + docs
                   #   (the list that is true is the `ci` task in pixi.toml)

The suites

TaskWhat it runs
pixi run testcargo test --workspace — the Rust unit + integration tests.
pixi run test-uiVitest (jsdom) — the markdown→HTML render seam and app flows.
pixi run check-uisvelte-check over every component. vite build does not typecheck — it strips types and emits — so without this a component calling a function it never imported builds clean and throws in the browser.
pixi run seamthe zero-I/O fm-query suite (seam 1).
pixi run perfsearch-under-budget (< 100 ms at 10k notes).
pixi run denycargo deny — license/advisory gate (permissive-only).
pixi run checksarchitectural greps (see below).
pixi run third-party-checkTHIRD-PARTY.md still describes the tree it claims to. Regenerate with pixi run third-party.
pixi run docsbuilds this book; broken links fail the build.

Environments

pixi.toml defines three, and a task belongs to exactly one. Running a task from the wrong one is a real hazard rather than a tidiness point: the environments resolve their own nodejs/pnpm, and a mobile CLI run from the wrong one has already re-resolved a dependency and broken a build.

EnvironmentFor
defaulteverything above, and the optional media tools (pdftotext, vipsthumbnail, restic), so the tests that probe for them exercise them instead of skipping.
androidthe Android toolchain: pixi run -e android android-release, android-smoke.
crossthe cross-compilation targets. pixi run -e cross check-cross type-checks Myrme’s fm-agent crate for Windows, macOS and both iOS targets.

Opt-in suites — not in the gate, and each for a reason

These are cheap, they run locally, and none of them needs CI. They are outside pixi run ci because they are slow, need a toolchain the gate does not, or are for one platform.

TaskRun it when
pixi run -e cross check-crossafter touching anything per-OS in Myrme’s fm-agent. It found a no-op std::mem::forget on a raw pointer and a deprecated libc::mach_host_self on its first run, in code that had shipped without ever being compiled for either target.
pixi run check-pins (in Myrme’s repository)when a model or runtime pin moves. Downloads ~110 MB and checks every pinned runtime is really there.
(the assistant)its own tests — the download wrappers, the evals, pixi run integration against this app — run in Myrme’s repository, https://github.com/formicaria-org/myrme.
pixi run -e android android-smokeafter an Android change, with a device or emulator attached.

Conventions

  • Hermetic. Tests use tempfile::tempdir or the in-RAM MemoryStore; no network, no shared state. Tests needing a subprocess tool (e.g. restic, pdftotext) probe for it and skip with a message when it’s absent, so the suite stays green outside the full env while pixi run exercises it for real.
  • Contract equivalence. FileStore is tested to behave identically to MemoryStore, so command tests written against the memory store hold in production.
  • Byte round-trip. A note read → edited → written back is byte-for-byte identical; this invariant is pinned by a test.

The architectural greps (ci/checks.sh)

Dozens of invariants are enforced as build-failing greps — run pixi run checks and read the [check] lines, which are the list. (No number here on purpose: this page said “two” long after there were dozens. A count in prose is a claim nothing verifies.)

The two the seams rest on:

  1. Seam 1 — fm-query must not reference a database crate, std::fs, std::path, or File. The query engine physically cannot do I/O.
  2. Generic renderers — no todo|doing|done literal may appear under ui/src/renderers/**. Status names live only in data and CSS.

The rest cover the two git backends staying in step, the release archive’s contents, the iOS and Android shells, licence and font notices, the workflow triggers, and the documentation this manual is part of — including a check that every dispatch arm has a row in the command reference.

Run pixi run checks before committing a renderer or a query-engine change.

UI dev without a backend

pnpm -C ui dev (or the vitest suite) runs the UI against the in-memory mock in ui/src/lib/mock.ts — no server, no vault. import.meta.env.PROD selects the real HTTP backend only in the built bundle.

Reading watch files (FIT): provenance

formicaria reads a sports watch’s activity files (FIT) — on the phone, files shared to it or found in one granted folder (import_fit_files); on a computer, a folder the person names is read into the training log (import_fit, host-only). This page says what that reading is built from, as decisions.md (2026-11-20, Reading and writing FIT: open crates, a provenance note) requires. The same note heads the decoder, crates/fm-core/src/fit.rs.

Decoderthe rustyfit crate, 0.11.2, BSD-3-Clause — https://github.com/muktihari/rustyfit
Message and field numbersfrom that crate’s generated profile (FIT profile 21.221, which the crate generates from the FIT SDK’s Profile.xlsx). formicaria carries no profile of its own
Why not fitparserthe decision named fitparser (MIT) for reading. It brings chrono, which the advisory database lists as unmaintained with no safe upgrade (RUSTSEC-2026-0543), so the licence and advisory gate (pixi run deny) refuses it. rustyfit is the decision’s other crate, named there as the writer; it reads too
Written in formicariathe frame check before decoding (header size, the .FIT signature, the data size, the header and file CRC-16), the scales applied to a few raw values, and the message numbers the reader names (fit::mesg), from the protocol’s published description
Brought in with itembedded-io (MIT OR Apache-2.0). No time-zone library: the crate returns raw counts, and formicaria converts on the app’s own clock
Writerthe same crate, 0.11.2: crates/fm-core/src/fit_write.rs writes a workout file (type 5: file_id, workout, workout_step) from a planned Coach session (workout_fit). Scales are the profile’s: time in ms, distance in cm, speed in mm/s, weight in kg × 100, heart rate as bpm + 100 (a custom value of 100 or below would mean “% of maximum”, which is never written). embedded-io is named directly for the in-memory Write + Seek the encoder needs; it was already in the build
Licenceformicaria relies on the FIT Protocol License’s §1 grant to use the FIT protocol in software the licensee creates. §2(c), §2(d) and §2(f) were read; the residual legal question is accepted, not settled

What is tested, and how

  • Every file in the tests is synthetic: written by a small test-only writer (crates/fm-core/src/fit_synth.rs) from the protocol’s description, with invented values and invented serial numbers. It is deliberately not rustyfit, so a mistake the reader made would not be hidden by a writer that shares its code. No real person’s file is in the repository.
  • The decoder is run over seeded random and mutated inputs and must never panic; a damaged file is refused with a sentence that names what is wrong.
  • ci/checks.sh fails if the decoder, the writer, the import or the workout builder names a way to the network.
  • T18: a workout written by the writer is read back by the decoder step for step (time, distance, repetitions, weight, the repeat, heart rate and pace ranges), and no step carries a percentage or zone target. Writer and reader share the crate here, so the file must also pass formicaria’s own frame check (sizes and both CRCs), written independently of the crate.

Not yet verified

The reader has decoded synthetic files only. That it reads length (swim) and set (strength) messages, and workout_rpe, from a real watch’s files as it reads the synthetic ones is still to be checked on real files locally (the coach plan’s experiment E0); see docs/context/known-issues.md.