Source: /cirosantilli/trillium-notes

= Trillium Notes
{tag=Personal knowledge base software}
{wiki}

https://github.com/zadam/trilium[].

Tree based organization at last. Infinitely deep.

Amazing <WYSIWYG>, including maths and tables, plus insane plugins like canvas mode, and specific file formats like code/mermaid diagrams/drawing mode.

Version history.

No multiuser features. Except for that, could have been a good starting point of an online multiuser thing such as <OurBigBook.com>!

Only possible to see one page at a time on output? Output chunking is a major feature of <OurBigBook>, I'm so proud. No proper built-in HTML static website export? https://github.com/zadam/trilium/issues/558

No CLI to export to HTML? https://github.com/zadam/trilium/issues/3012

HTML export keeps all data as HTMl is their native format. The files are mostly visible, but there is some CSS missing, it is not 100% like editor, notably math is broken. There is also a hosted way of exposing: https://github.com/zadam/trilium/wiki/Sharing[].

HTML export uses frame navigation, with a toc fixed on the left frame. Efficient, but not of this century.

There is no concept of user created unique text IDs: you can have the same headers in the same folders in the UI. It's not even a matter of scopes. On exports they are differentiated as `1_name`, `2_name`, etc.
``
./Trilium Demo/Books/To read/1_HR.md
./Trilium Demo/Books/To read/2_HR.md
./Trilium Demo/Books/To read/HR.md
``

Markdown export warns:
\Q[this preserves most of the formatting.]

Architecture: runs on local SQLite database via better-sqlite3. Data apparently stored in SQLite database at `~/.local/share/trilium-data`, no raw files.

Markup is stored as HTML as seen from: `sqlite3 document.db 'SELECT * from note_contents'`. HTML is their native storage format, quite interesting. But this means it is not source centric, so any source editing would have to go via import/export. It can be done apparently: https://github.com/zadam/trilium/wiki/Markdown but involves shoving a ZIP around.

WYSIWYG based on https://ckeditor.com/ which is a dependency. It is kind of cool that the view in which you view the output is exactly the same as the one you edit in, and there is no intermediate format, just the HTML.

Math is <KaTeX> based.