SiYuan is a free, open source note taking & knowledge management project written in TypeScript and released under AGPL-3.0. It has 46,409 GitHub stars, 3,012 forks and 18 open issues, and was last pushed 11 hours ago. On this registry it ranks #4 of 25 tracked projects in Note Taking & Knowledge Management, and is listed as an open source replacement for 1 paid product, with 5 head-to-head comparisons available. It gained 92 stars over the last 6 tracked days.

SiYuan — Privacy-first knowledge management with block-level linking

What is SiYuan?

What it is

SiYuan is an open-source, self-hosted knowledge management system built for privacy-first workflows. It operates as a local-first workspace where users store data in encrypted repositories on their own infrastructure, avoiding reliance on third-party cloud services. The project lives in the productivity and utilities ecosystem, specifically targeting note-taking and knowledge management use cases, and positions itself as a privacy-respecting alternative to Notion.

It solves the problem of fragmented, vendor-locked knowledge work by enabling block-level linking, two-way references, and local-first editing without sacrificing collaborative or AI-assisted capabilities. Users retain full control over their data while gaining tools for structured writing, querying, and integration with AI agents via MCP and OpenAI-compatible APIs.

Key capabilities

  • Block-level referencing and two-way linking for granular knowledge connections
  • Markdown WYSIWYG editor with support for mathematical formulas, charts, flowcharts, Gantt charts, timing charts, and musical staves
  • SQL query embedding for dynamic data extraction and display within notes
  • Local-first data storage using encrypted data repos (dejavu) with optional sync via third-party services
  • AI writing assistance and Q&A chat via configurable OpenAI API endpoints
  • Export to PDF, Word, HTML, and platform-specific formats (WeChat MP, Zhihu, Yuque)
  • Plugin system (petal) and REST API for extensibility and automation

Who uses it and how

  • Individuals self-hosting SiYuan on personal servers or NAS devices for secure, offline-capable knowledge bases
  • Teams using Docker or Unraid deployments to collaborate on shared documentation while keeping data on-premises
  • Researchers and writers leveraging block-level linking and SQL embedding to build interconnected, queryable research notes

Getting started

SiYuan offers Docker images (b3log/siyuan), native installers via its homepage, and package managers (e.g., snap, homebrew). The README outlines CLI usage (siyuan server), Docker deployment (-v volume mounts for data persistence), and hosted options via community marketplaces.

When to use it — and when not to

SiYuan replaces Notion for users prioritizing data sovereignty and local-first operation, but requires managing its own SQLite-based data repo, encryption keys, and optional SMTP for notifications. It lacks built-in real-time collaboration or role-based access control—features present in paid alternatives—so teams needing those must supplement with external tooling or accept limitations. The AGPL-3.0 license mandates source disclosure for modified deployments, which may deter some commercial users.

project readme (upstream, from github) — read inline

SiYuan
From thought to insight, with agents






X Follow

siyuan-note%2Fsiyuan | Trendshift

English | 中文 | 日本語 | Türkçe


Table of Contents


💡 Introduction

SiYuan is a privacy-first personal knowledge management system, supporting fine-grained block-level reference and Markdown WYSIWYG.

feature0.png

feature5-1.png

To learn more, read the online user guide or join the SiYuan English Discussion Forum.

🔮 Features

Most features are free, even for commercial use.

  • Content block
    • Block-level reference and two-way links
    • Custom attributes
    • SQL query embed
    • Protocol siyuan://
  • Editor
    • Block-style
    • Markdown WYSIWYG
    • List outline
    • Block zoom-in
    • Million-word large document editing
    • Mathematical formulas, charts, flowcharts, Gantt charts, timing charts, staves, etc.
    • Web clipping
    • PDF Annotation link
  • Export
    • Block ref and embed
    • Standard Markdown with assets
    • PDF, Word and HTML
    • Copy to WeChat MP, Zhihu and Yuque
  • Database
    • Table view
  • Flashcard spaced repetition
  • AI writing and Q/A chat via OpenAI API
  • Tesseract OCR
  • Multi-tab, drag and drop to split screen
  • Template snippet
  • JavaScript/CSS snippet
  • Android/iOS/HarmonyOS App
  • Docker deployment
  • API
  • Community marketplace

Some features are only available to paid members, for more details please refer to Pricing.

🏗️ Architecture and Ecosystem

SiYuan Arch

Project Description Forks Stars
lute Editor engine GitHub forks GitHub Repo stars
chrome Chrome/Edge extension GitHub forks GitHub Repo stars
bazaar Community marketplace GitHub forks GitHub Repo stars
dejavu Data repo GitHub forks GitHub Repo stars
petal Plugin API GitHub forks GitHub Repo stars
android Android App GitHub forks GitHub Repo stars
ios iOS App GitHub forks GitHub Repo stars
harmony HarmonyOS App GitHub forks GitHub Repo stars
riff Spaced repetition GitHub forks GitHub Repo stars

🗺️ Roadmap

🚀 Download Setup

It is recommended to give priority to installing through the application market on desktop and mobile, so that you can upgrade the version with one click in the future.

App Market

Mobile:

readme truncated — read the full docs on github

Frequently asked questions

Is SiYuan free to use?

SiYuan is open source under the AGPL-3.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does SiYuan do?

Privacy-first knowledge management with block-level linking

What is SiYuan written in?

SiYuan is primarily written in TypeScript. Its source is publicly available at https://github.com/siyuan-note/siyuan, and it has 46,409 GitHub stars.

What is a good open source alternative to Notion?

SiYuan is one of the open source options listed as an alternative to Notion. Compare licences, stars and activity side by side on the SiYuan profile.