title: trilium - Build Your Personal Knowledge Base
date: 2022-01-26 16:17:07
Recently, I came across a note-taking application called trilium. As stated in its README:
Build your personal knowledge base with Trilium Notes.
Using this software, it is convenient to build a personal knowledge base. Its unique design and high extensibility have attracted me.
There are five main features that attract me to this software:
- Unique directory structure design, where a single note can act as both a "file" and a "folder," making it easy to organize documents.
- Notes support custom icons, viewing edit history, cloning (similar to hard links in a file system), and more.
- WYSIWYG rich text editor with a good editing experience.
- Highly extensible, allowing customization of buttons, page elements, and batch operations on notes through the API.
- Separation of front-end and back-end, enabling easy sharing and synchronization of notes across multiple devices.
This software has multiple running modes, such as:
- Opening the client locally for personal use, with note content stored only locally.
- Deploying it on a server and setting the server address in the local client, enabling periodic synchronization of note content between the local and cloud.
- Deploying it on a server and accessing it directly through a web browser, interacting with the server via the front-end.
I personally recommend the second method, deploying it on a server for note backup.
In general, server deployment can be done using the compressed package method. The process is simple, just follow the steps.
Below are several typical features showcased.
Documents and Sub-documents
The right sidebar displays document content and previews of sub-documents.
Cloning of Notes
The same note can be organized in different locations within the directory.
A mature rich text editor.
Custom buttons can be added to the sidebar, which, when clicked, generate a daily note and its two sub-notes, "Study" and "Entertainment."
Synchronization of note content with a remote server.
For more advanced requirements, refer to Trilium: A Highly Customizable Personal Knowledge Base (Advanced Guide).
To write your own scripts, refer to the official API documentation: