Documents
Letters, reports and long documents in an editor built for them.
The web version shows the development preview notice once before it starts. My experiment in building an office suite. AI helps with the coding; I document the decisions, tests and limits. Not finished software or for sale. About the experiment →
- Lines of Dart
- ~38.000As of Oct 11, 2026
- Tests
- 376As of Oct 11, 2026
- Tests on the collaborative editing branch (stage C)
- 605As of Oct 18, 2026
- MCP tools
- 16
The balance
Word processor with its own editor built on Flutter's basic building blocks, page view, styles, track changes and in-house engines for DOCX, ODT, Markdown, HTML and PDF in pure Dart. Also runs in the browser and, on a working branch, can be edited together without a server.
23 findings from the repository, by kind. Each one is in the logbook with its date and source.
- 6worked26%
- 7limits30%
- 7bugs30%
- 3decisions13%
What worked with AI
On top of that, 3 decisions, each with its date and source in the logbook. All findings in the logbook ↓

Logbook
23 findings from to
- Day 12
Diff bridge with 1,000 random sequences
DocumentDelta breaks every edit into neutral operations; 1,000 random edit sequences with about 6,500 steps satisfy the law apply(old, diff(old, new)) == new, at about 0.5 ms per comparison with 2,000 paragraphs. A counter-test with a deliberately faulty application makes the test fail.
WorkedSource apps/docs/docs/gemeinsam-bearbeiten.mdComments remain marks on the text
Deviating from ADR 0014, comments are not anchored via Loro cursors but remain marks on the text that move with it and may overlap. Instead of a snapshot in the file, the shared state is stored sealed in the app's storage (.bdoc version 4).
DecisionSource apps/docs/docs/gemeinsam-bearbeiten.mdUnintentionally inherited marks in Loro
During the build it turned out that even marks without extent (such as a tracked insertion) are inherited by inserted text when typing at a boundary between several marks. After each insertion, the bridge reads the paragraph and removes unwanted marks.
BugSource apps/docs/docs/gemeinsam-bearbeiten.mdCollaborative editing without a server (stage C)
On the feat/gemeinsam-bearbeiten branch, documents can be shared without a server via balane_sync 0.2.0, with invitation, a “read only” role, an anchor and undo limited to one's own changes. Backed by 200 random sequences with two devices and three real nodes with an anchor whose storage contains no plain text.
WorkedSource ADR 0014Tables overwrite each other, networks untested
In collaborative editing, tables, header and footer, footnotes and the comment list are each a single value, so two people editing different cells overwrite each other. Presence is missing; separate networks, Windows, iOS, Android and the browser have not been tested, and the usability test with two people is still pending.
LimitSource apps/docs/docs/gemeinsam-bearbeiten.md
- Day 9
Last change lost on reload
Because the app saves with a delay, the last change was lost in the browser when the page was reloaded or the tab was closed. Pending changes are now written when the page is left or hidden (BalanePageExit).
BugSource apps/docs@b892fc1
- Day 8
Feature comparison with Word and Pages
The comparison with Word, Pages and Google Docs lists the gaps with priority and effort and sets an order, starting with format painter, AutoFormat and tab stops. The largest gap to Word remains images with text wrapping.
DecisionSource docs/product/funktionsabgleich/docs.mdMany P1 and P2 gaps closed in one day
On the day of the comparison, the app branch gained format painter, AutoFormat, tab stops with leaders, break rules, table borders, numbering formats, images in headers and cells, formatting marks, line spacing, change case, a navigator with drag and drop, word count, version history and custom templates, each with a round trip through .bdoc, DOCX and ODT.
WorkedSource apps/docs/CHANGELOG.mdCopy lost numbering formats
“Save as copy” and imports lost numbering formats and heading numbering, because withNewId did not carry them over. The bug was fixed together with the version history.
BugSource apps/docs@885bad7No tracked moves
Sections can be moved in the navigator, but this is blocked while track changes is on, because the model has no tracked moves. Formatting changes are not tracked either.
LimitSource apps/docs/CHANGELOG.mdAI context prevented cache hits
The research found that the order of the AI context depended on the selection, so the service's cache rarely hit. The same day, excerpts were switched to document order with fixed windows, with the cursor as the last source, “fokus”.
BugSource docs/research/ki-2030/docs.md, apps/docs@26c1c3dNo timing, work on the UI isolate
The research on Documents found no timing for start-up, opening and AI responses; import, export and context building run on the UI isolate instead of a separate isolate.
LimitSource docs/research/ki-2030/docs.mdBrowser version with limitations
In the browser, documents are stored in IndexedDB and exports become downloads. AI, spell check (the editor draws its own text, so the browser's check does not apply) and linking are not available; PDF uses standard fonts with Geist as a substitute, and Arabic, Hebrew or CJK text is replaced.
LimitSource apps/docs@9da2b20Layout error on start in the browser
On start, the browser reported “RenderBox was not laid out”, because the development status notice entered the focus order too early. It now appears only after the first frame.
BugSource 8ea49f6
- Day 6
Truncated AI label and overflow in the table of contents
During the switch to German and English, the action “Rechtschreibung & Grammatik prüfen” (check spelling & grammar) was cut off and is now called “Korrektur lesen” (proofread); the table of contents reported an overflow of a fraction of a pixel. Both were fixed.
BugSource apps/docs@b50e0e5
- Day 5
Table cells overflowed, fallback font in lists
Table cells overflowed by the width of their border, and list markers and the table of contents used a fallback font because of the package prefix of the interface font. Both were fixed during the switch to the design language.
BugSource apps/docs@910b303System spell check on four platforms
The check calls NSSpellChecker, UITextChecker, ISpellChecker and SpellCheckerSession through a dedicated channel, without its own dictionary and without an additional dependency. The document model is not touched; the results only affect the rendering.
WorkedSource apps/docs/docs/spelling.mdWindows spell check never built
The Windows code for the spell check is written but has not yet been built on Windows; Android only checks when a spell-check service is installed. Grammar checking and language per text passage are missing.
LimitSource apps/docs/docs/spelling.mdMCP server and protection against overwriting
The balane-docs MCP server gives Claude 16 tools that work on stable paragraph IDs; the AI in the app uses the same operations. If Claude changes the open file, the app asks before saving (reload, overwrite, save as copy).
WorkedSource apps/docs@4edd666
- Day 1
Own editor instead of an existing package
Existing Flutter editors (super_editor, flutter_quill, appflowy_editor) come with their own models for a continuous view. The decision was for a custom document model in pure Dart with its own page layout, shared by the engines, .bdoc, the editor and PDF; the cost is more of its own code to maintain.
DecisionSource apps/docs/docs/decisions/0001-editor.mdDOCX and ODT with round-trip tests
Read and write engines for DOCX and ODT were built on the same day, with round-trip tests. LibreOffice 26.2 opens both formats without repair, and after saving in LibreOffice, Balane reads headings, table, images, footnote and comments back in.
WorkedSource apps/docs/docs/compatibility.mdCross-check in Word still open
In the format matrix, Microsoft Word is listed as “not yet checked”. Whether DOCX exports look as intended in Word has to be checked by a person using Word.
LimitSource apps/docs/docs/compatibility.mdScreen readers and large documents still open
Body text is not yet connected to screen readers, only building blocks have Semantics; performance with several hundred pages has not been measured. The feature comparison still lists the screen reader as a P1 gap with high effort.
LimitSource apps/docs/docs/decisions/0001-editor.md
What the app does today
Documents is a word processor with an editor of its own: letters, minutes, reports and long texts, saved on your own device. Word and ODT files open and save back.
Writing and layout
- Styles for title, headings 1–6, quote and code
- Lists with nine levels, numbering such as 1.1, a) or I.
- Tab stops with leaders, line spacing “at least” and “exactly”
- Format painter and AutoFormat as you type
- Show formatting marks (⌘8)
Tables, images, pages
- Tables with merged cells, borders, shading and row height
- Images in the text, in table cells, footnotes, headers and footers
- Page view and continuous view, keep paragraphs together
- Footnotes, table of contents, internal and external links
Reviewing
- Comments with replies
- Track changes: accept or reject, one by one or all at once
- System spell check with your own dictionary
- Navigator: drag sections, promote and demote them
- Version history: view and restore earlier states
- Word count for the selection and the document
Templates and output
- Template gallery on the home screen: DIN 5008 letter, report, minutes, CV, your own via “Save as template …”
- Export to DOCX, ODT, Markdown, HTML, text and PDF with bookmarks
- Print through the system dialog
Claude and protection
- MCP server: Claude edits text, tables, footnotes, headers, footers and page setup
- Several edits by Claude make one version; it can also accept or reject tracked changes
- App lock with a passcode, optionally with Face ID, Touch ID or fingerprint
- Screen protection hides content in the app switcher
On iPhone and iPad
The adaptation for iPhone and iPad is in progress.
Features in detail
- DIN 5008 letterDIN 5008 sets out where the address, information block and subject line go on an A4 page, so a letter fits a window envelope and reads the same everywhere.
- Track changesWith change tracking on, every insertion and deletion stays visible with a name and time until someone accepts or rejects it.
- Mail mergeMail merge turns one letter with placeholders and a list with one row per recipient into many personal letters.Soon
- Open Word filesA DOCX file arrives by email, but Word isn’t installed.
File formats
- DOCX
- ODT
- Markdown
- HTML
- .bdoc
How it connects
- Inserts data published by Sheets, Reports and Forms as a table or chart and refreshes it when you choose.
- Finished texts go to Paperwork as PDF or to Mail as an attachment.
- The same in every app: command search with ⌘K, German and English, automatic saving on your device.
Platforms
- macOS
- available
- Windows
- available
- iOS
- planned
- Android
- available
- Web
- available
Not finished software: expect bugs and changes to the file format. Please don’t keep important data only in the apps, and back up regularly.
App privacy policy →Editing together
Several people work in the same file at the same time – without a cloud. The devices sync directly, over the same network as Dialog. Built and in testing, not released yet.
- Type at the same time, even in the same paragraph; everything is merged
- Other people’s cursors and selections show in colour with their names
- Comments and replies written at the same time are all kept
- Edits made offline or outside the app are merged when the file opens, not overwritten
- Undo only reverts your own changes
- Read-only role: tools greyed out, input locked
- Every change encrypted and signed; an anchor only sees size and time
- Limit: if two people change the same table or image at once, the last version wins – with a notice
Articles about Documents
- Nov 11, 2026Nine office apps for Apple: why I’m changing courseWhy am I planning one combined app for Mac, iPhone and iPad instead of 18 separate platform versions?
- Oct 16, 2026Why doesn't a company just build its own Office?Maintenance, Word files, risk: when is building it yourself worth it?
- Oct 15, 2026Is AI eating its own makers? I rebuilt OfficeWhat does it mean if Office can be rebuilt with AI?
- plannedFile formatsHow well does the suite open and write Word, Excel and PowerPoint files?
- plannedEditing togetherDoes simultaneous editing work without a central cloud?