siyuan vs Trilium

Personal knowledge management apps compared

siyuan and Trilium are TypeScript, AGPL-3.0 projects for building personal knowledge bases, with desktop and self-hosting options. siyuan centers on linked content blocks and Markdown WYSIWYG, while Trilium centers on a hierarchical note tree with multiple note types, revisions, and scripting.

siyuanTrilium
LanguageTypeScriptTypeScript
LicenseAGPL-3.0AGPL-3.0
Stars46.6k38.2k
Forks3k2.6k
Last analyzedOct 6, 2026Oct 3, 2026

Key differences

  • siyuan organizes knowledge in linked blocks with backlinks and embedded SQL queries; Trilium organizes notes in a tree, and a note can appear in multiple places.
  • siyuan offers Markdown WYSIWYG, flashcards, and export to PDF, Word, and HTML; Trilium offers note revisions, protected-note encryption, and note and relation maps.
  • siyuan provides desktop and mobile apps, a CLI, and browser-only Docker hosting; Trilium provides a desktop app or a self-hosted server with a browser interface and mobile-friendly frontend.
  • siyuan lists AI writing and chat through the OpenAI API; Trilium lists scripting, a REST API, and a Web Clipper.
  • Both projects use TypeScript and AGPL-3.0. siyuan reports 46.6k stars and 3k forks; Trilium reports 38.2k stars and 2.6k forks.

Choose siyuan if you…

  • need block-level references, backlinks, or SQL queries in your notes.
  • want Markdown WYSIWYG editing, flashcards, or AI features through the OpenAI API.
  • prefer desktop or mobile apps, or browser-only Docker hosting.
Read the siyuan analysis →

Choose Trilium if you…

  • want a hierarchical note tree where notes can appear in multiple places.
  • need note revisions, protected-note encryption, or a choice of note types such as canvas and mind map.
  • want self-hosted synchronization, scripting, or a REST API for workflows.
Read the Trilium analysis →

Compare the numbers side by side, or add more projects

This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.