Skip to content
tektumPublic

About

Collaborative docs tool: a WYSIWYG editor whose pages are stored as Markdown. In development.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

461 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grimoire

codecov

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.

Status

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.

What it is and is not

  • 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.

What it looks like

Screenshots of the web client, in the light theme (it follows your system setting).

The sign-in page

The sign-in page (the local development form).

The list of collections

The collections you can open.

A collection with its contents tree

A collection and the contents tree beside it.

A page with the contents tree beside it

A page with the tree beside it.

The live editor open on a page

The live editor.

Lists in a page: bullets, numbers and task boxes

Lists in a page: bullets, numbered steps and task boxes.

Headings one to six in the page text

Headings, one to six, in the page's reading font.

The block menu that opens on a slash, with one item highlighted

The block menu: type / at the start of a line, narrow it by typing, choose with the arrow keys and Enter.

The bubble over a selection, with bold on

The bubble over selected text: bold, italic, strikethrough, code and a link; Ctrl or Cmd with K opens the link editor.

The link editor refusing an address that is not allowed

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 block handle beside a paragraph

The handle beside a block opens the list of kinds to turn it into.

The lock message: another person is in the block, with the help open

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

The help page on editing together.

Two people in one page: each sees the other's cursor and selection with a name label

Two people in one page: each sees the other's cursor and selection, with the name from the directory.

Two people with their cursor on the same character

Two cursors on the same character: both carets and both name labels stay visible.

A page opened read-only

A page opened read-only.

Raw HTML in a page, shown as text with an Edit source button

Raw HTML in a page is shown as inert text, with an Edit source button.

The same raw HTML block in the dark theme

The same block in the dark theme.

A page that was reset while you had unsent changes

A page that was reset under a tab with unsent changes: the notice, and the copy to download or copy.

A page for an administrator: History, and Reset saved state

An administrator's page: a History link, and the Reset saved state action (it opens the reset dialog shown further down).

The Move to dialog

Moving a page with Move to.

The trash

The trash.

The not-found screen

A page that does not exist.

The reset-state dialog

Administrators: resetting a page's saved state, with an optional replacement text.

The warning when the saved text is older

The second question when the saved text is older than the page.

The users screen for administrators

Administrators: people, their roles, and who is suspended.

A group with its members

Administrators: a group and its members.

The header of an administrator on a desktop, with the Admin link

Administrators: the Admin link in the header, on a desktop.

The header of an administrator on a phone, with the Admin link

The same on a phone, where there is no keyboard for the command palette.

An empty workspace for an administrator, with a New collection button

Administrators: an empty workspace offers New collection. Anyone else is told to ask an admin.

The new collection form on a phone

The new collection form: a name, and who can open it.

The new collection form in the dark theme

The same form in the dark theme.

Who has access to a collection

Administrators: who may read and write a collection.

The versions of a page

The versions of a page, with when each was kept, why, and who edited.

One version of a page

One version, drawn as the page would show it.

The changes between a version and the page

The line diff between a version and the page as it is now.

Confirming a restore

Restoring a version asks first.

The page is still being saved

A restore is refused while the page's last edits are still being saved.

A viewer's view of a version

A viewer can read a version and its changes, but has no Restore button.

The outline of headings beside a page

On a wide window, the headings of the page are listed in the right margin, with the one you are in marked.

The same page on a narrower window, with no outline

On a window narrower than 1,200 pixels the outline is left out.

A table with its controls

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.

The language picker of a code block

In a code block, a select below it sets the language written after the fence.

The status line under a page title: Saving

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.

The status line when the connection is lost

After ten seconds without a connection: the changes are kept in the tab.

A page that already has 100 people editing

When the page is full, the line says so and when to try again.

A page too large to edit, with the reset action for admins

A page past its size limit stays readable; an admin has the reset action in the header.

The size-limit banner

An image in a page

An uploaded image is shown through a link the file store signed for it.

The placeholder for an image from another site

An image from another address is not fetched: the page says where it would have come from.

An attachment link and an upload in progress

While a file is being uploaded the page says so; a file that is not an image becomes a link with its name.

A refused upload

A file the server does not accept is told once, in plain words, and leaves nothing in the page.

In the dark theme:

A page with the contents tree beside it, dark theme

A page that was reset while you had unsent changes, dark theme

The contents tree with the keyboard focus on a row, dark theme

The contents tree and a dialog, reached with the keyboard: the focused row and the focused choice have a ring.

The Move to dialog with the keyboard focus on a choice, dark theme

The editor reached with Tab: a ring around the text, dark theme

The contents in a window 320 pixels wide (a page at 400% zoom)

Two people editing the same paragraph in Chromium: both texts kept, the other person's cursor named

The same page, edited by two people, in Chromium, Firefox and WebKit (the exit test runs it in all three):

Co-editing in Firefox, dark theme

Co-editing in WebKit

The import report: pages that were imported, with the pictures from the web that were not copied and why

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

The same report in the dark theme.

How it is built

  • 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.

Roadmap

  1. Repository, local environment and the collaboration server proof: done.
  2. Markdown conversion and saving: done.
  3. Sign-in, permissions and access re-checks: nearly done.
  4. Database schema, migrations and the HTTP API: planned.
  5. File storage and attachments: planned.
  6. The web client: planned.
  7. Search, background jobs and the importer for exports from other tools: planned.
  8. Hardening, operations and the first deployment: planned.

Known limits

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.

Security

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.

Contributing

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.

Licence

Grimoire is licensed under the Apache License, Version 2.0. See LICENSE.

About

Collaborative docs tool: a WYSIWYG editor whose pages are stored as Markdown. In development.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages