Grimoire is a collaborative documentation tool. People write and read pages together in a WYSIWYG editor, and every page is stored as Markdown. It is being built by Tektum to replace the team's current documentation tool. It is meant for the staff of a single company, from about 100 to 1,000 people, who sign in through the company login.
Grimoire is in development. It is not deployed anywhere, and it has no web client yet. The web client is a later milestone.
Built and tested so far:
- the server skeleton;
- the live collaboration back end (Yjs through Hocuspocus), with limits and abuse protection;
- conversion of pages to Markdown, checked against a regression corpus, and saving pages together with their Markdown;
- sign-in verification (Descope tokens are verified on the server);
- users and access rules, with read-only access enforced by the server;
- access re-checks on connections that are already open.
Planned next: the HTTP API, file uploads, the web client, search, an importer for Markdown and CSV exports from other tools, hardening and a first deployment.
This repository is being opened step by step. The code arrives through small pull requests, so for now there is little to run.
- Markdown is the durable format for pages.
- Pages are edited together in real time, with a page tree, page history, and images and files inside pages.
- Search is full-text plus semantic (meaning-based) search. The embeddings are computed locally, and they are used only for search.
- There are no AI product features: no assistants, chat or text generation.
- There are no database features (tables as data, boards, relations, formulas), and no calendar or mail.
- Sign-in goes through Descope. There are no local accounts or passwords.
- Dependencies must have permissive licences.
- The first version is for one company. It has no external guests and no public pages.
Screenshots of the web client, in the light theme (it follows your system setting).
The sign-in page (the local development form).
The collections you can open.
A collection and the contents tree beside it.
A page with the tree beside it.
The live editor.
Lists in a page: bullets, numbered steps and task boxes.
Headings, one to six, in the page's reading font.
The block menu: type / at the start of a line, narrow it by typing, choose with the arrow keys and Enter.
The bubble over selected text: bold, italic, strikethrough, code and a link; Ctrl or Cmd with K opens the link editor.
The link editor refuses an address of a kind that is not allowed (a script address, for one) and says so, in a message the screen reader announces.
The handle beside a block opens the list of kinds to turn it into.
Turning a block into a list, a quote or a code block is held back while another person's cursor is in it; "Why?" says what the lock can and cannot do.
The help page on editing together.
Two people in one page: each sees the other's cursor and selection, with the name from the directory.
Two cursors on the same character: both carets and both name labels stay visible.
A page opened read-only.
Raw HTML in a page is shown as inert text, with an Edit source button.
The same block in the dark theme.
A page that was reset under a tab with unsent changes: the notice, and the copy to download or copy.
An administrator's page: a History link, and the Reset saved state action (it opens the reset dialog shown further down).
Moving a page with Move to.
The trash.
A page that does not exist.
Administrators: resetting a page's saved state, with an optional replacement text.
The second question when the saved text is older than the page.
Administrators: people, their roles, and who is suspended.
Administrators: a group and its members.
Administrators: the Admin link in the header, on a desktop.
The same on a phone, where there is no keyboard for the command palette.
Administrators: an empty workspace offers New collection. Anyone else is told to ask an admin.
The new collection form: a name, and who can open it.
The same form in the dark theme.
Administrators: who may read and write a collection.
The versions of a page, with when each was kept, why, and who edited.
One version, drawn as the page would show it.
The line diff between a version and the page as it is now.
Restoring a version asks first.
A restore is refused while the page's last edits are still being saved.
A viewer can read a version and its changes, but has no Restore button.
On a wide window, the headings of the page are listed in the right margin, with the one you are in marked.
On a window narrower than 1,200 pixels the outline is left out.
In a table, the controls to add or delete a row or a column sit right under it, and the cell you are in is marked.
In a code block, a select below it sets the language written after the fence.
The line under the title says Saving while changes wait for the server, Saved once it has them, and (below) what it is when the connection is gone.
After ten seconds without a connection: the changes are kept in the tab.
When the page is full, the line says so and when to try again.
A page past its size limit stays readable; an admin has the reset action in the header.
An uploaded image is shown through a link the file store signed for it.
An image from another address is not fetched: the page says where it would have come from.
While a file is being uploaded the page says so; a file that is not an image becomes a link with its name.
A file the server does not accept is told once, in plain words, and leaves nothing in the page.
In the dark theme:
The contents tree and a dialog, reached with the keyboard: the focused row and the focused choice have a ring.
The same page, edited by two people, in Chromium, Firefox and WebKit (the exit test runs it in all three):
The import report: for a page, how many pictures from the web were not copied and why, in words, never with an address.
The same report in the dark theme.
- TypeScript on Node.
- Hono for the HTTP API.
- Yjs with Hocuspocus for live collaboration.
- PostgreSQL with pgvector.
- An S3-compatible file store.
- Milkdown for the editor.
- Descope for sign-in.
- Docker Compose for the local development environment.
- Repository, local environment and the collaboration server proof: done.
- Markdown conversion and saving: done.
- Sign-in, permissions and access re-checks: nearly done.
- Database schema, migrations and the HTTP API: planned.
- File storage and attachments: planned.
- The web client: planned.
- Search, background jobs and the importer for exports from other tools: planned.
- Hardening, operations and the first deployment: planned.
If one person splits, joins or list-wraps a paragraph while another person is editing that same paragraph at the same instant, the collaboration library can lose, move or double text. If two people type at exactly the same position at the same instant, it can scramble their words; nothing is lost. Both screens still agree afterwards, so nothing signals it. Guard rails for both are planned after the first version.
Grimoire is not yet deployed or audited. Please report vulnerabilities privately, using "Report a vulnerability" on this repository's Security tab once it is enabled.
Grimoire is developed in the open. Issues are welcome. Pull requests from outside are welcome later, but the maintainers are not yet set up to review them promptly.
Grimoire is licensed under the Apache License, Version 2.0. See LICENSE.






























































