title: trilium - Build Your Personal Knowledge Base
date: 2022-01-26 16:17:07
tags:
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.
Features
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.
Running
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.
Installation
The client can be installed from trilium - release. If Chinese translation is needed, trilium-translation - release can be installed.
Deployment
In general, server deployment can be done using the compressed package method. The process is simple, just follow the steps.
Showcase
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.
Note Editing
A mature rich text editor.
Custom Buttons
Custom buttons can be added to the sidebar, which, when clicked, generate a daily note and its two sub-notes, "Study" and "Entertainment."
Note Synchronization
Synchronization of note content with a remote server.
Advanced
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:
- Front-end: Class: FrontendScriptApi
- Back-end: Class: BackendScriptApi