Back to directory

Productivity & Utilities · Note Taking & Knowledge Management

SiYuan

A local-first knowledge workspace for blocks, links, databases, and sync

SiYuan is a local-first knowledge workspace for users seeking block references, bidirectional links, databases, flashcards, and AI features. Licensed under AGPL-3.0, it permits commercial use under that license and supports desktop, mobile, and Docker deployments, with paid official cloud options plus third-party S3 and WebDAV integration.

Key facts

License
AGPL-3.0
Main language
Go, JavaScript, TypeScript
Maintainer
B3log
First released
2020
Latest release
v3.8.8, October 20, 2026; v3.8.9-alpha.3 pre-release, October 21, 2026
GitHub stars
46,881, October 2026
Hosted option
Official cloud synchronization and asset hosting from $148 lifetime, including 8G of official cloud space

What SiYuan is

SiYuan is a local-first personal knowledge management system built around addressable content blocks, Markdown WYSIWYG editing, and user-controlled storage. The repository identifies 88250 and Vanessa219 as its largest contributors, with 16,431 and 12,660 contributions respectively. B3log maintains the project and publishes desktop, mobile, and server deployment paths. The repository was created on August 30, 2020, and records 46,881 stars, 3,083 forks, and five open issues. The project supports Windows, macOS, Linux, Android, iOS, and HarmonyOS. Its documentation presents SiYuan as a workspace for people and AI agents. The repository does not name institutional users or describe outside funding, so its clearest adoption signal is its GitHub activity and multi-platform distribution.

How it works

SiYuan's workflow begins with documents composed of content blocks rather than pages treated as indivisible files. Users can zoom into blocks, fold outlines, create block references and backlinks, and inspect relationships through graph views. The editor supports Markdown WYSIWYG, formulas, charts, flowcharts, Gantt charts, mind maps, PDF annotations, web clipping, and dynamic loading for large documents. Table views add relations, rollups, templates, and automations. Flashcards use the FSRS algorithm for spaced repetition. Users can export Markdown, PDF, Word, and HTML, call AI services through OpenAI API integrations, use OCR, and arrange work across tabs or split panes. This makes a typical session move from capture to linked notes, structured records, review, and export.

Architecture and recent releases

The application combines an Electron desktop client with a Go kernel and web interface, while the repository also contains JavaScript and TypeScript code. Desktop and mobile packages cover Windows, macOS, Linux, Android, iOS, and HarmonyOS. Docker serves the browser interface on port 6806 and stores the workspace in a mounted directory with a SQLite index. Stable v3.8.8, published October 20, 2026, added database automations, compact desktop mode, Gemini Interactions API support, DeepSeek Search and Fetch APIs, Linux compatibility work, and Electron 44.9.0. The latest listed pre-release, v3.8.9-alpha.3, appeared October 21, 2026, with fixes for inline memo references, copied code fences, certificate handling, and AI data consistency.

License and pricing

SiYuan uses the GNU Affero General Public License v3.0, or AGPL-3.0. Its README says most features are free, including commercial use, while the pricing page separates paid capabilities from the free tier. Free access is listed at $0 for a lifetime. PRO Features cost $64 lifetime, discounted from $96, and add third-party S3 and WebDAV synchronization and backup, with users supplying those services. Subscription costs $148 lifetime, discounted from $296, and includes official synchronization, cloud asset hosting, Cloud Inbox, third-party S3 and WebDAV support, and 8G of official cloud space. The pricing page says subscription payments are not refundable and describes renewal pricing as tied to the first subscription price.

Limitations and how it compares

SiYuan's main cost is operational complexity around a complete workspace that must be backed up as a unit. Docker server mode is browser-only and omits desktop and mobile connections, PDF, HTML, and Word export. Joplin is a more conventional open-source notebook with synchronization, while SiYuan emphasizes block references, database views, and WYSIWYG block editing. Logseq offers an outline-first knowledge workflow, whereas SiYuan supplies a broader integrated database and server package. Notion provides a polished proprietary hosted service, while SiYuan offers local storage and self-hosting. Pick SiYuan when block structure, local control, and database features matter more than a simpler hosted product.

Main features

  • Block knowledge model. Documents, references, backlinks, attributes, embeds, and page structures are organized around individually addressable content blocks.
  • WYSIWYG editor. The editor combines Markdown WYSIWYG with outlines, block zoom, formulas, charts, diagrams, PDF annotations, and dynamic loading.
  • Database views. Tables support relations, rollups, templates, locked-view sorting, block collections, and automated field assignments.
  • AI integrations. AI features support OpenAI API workflows, Gemini Interactions API, DeepSeek Search and Fetch APIs, and configurable embedding controls.
  • Encrypted synchronization. Users can synchronize through official cloud services or connect their own S3 and WebDAV services for synchronization and backup.
  • Spaced repetition. Built-in flashcards use the FSRS algorithm to schedule reviews and support structured learning from stored knowledge.
  • Server deployment. Docker hosting exposes the workspace through a browser interface and supports access codes, OIDC, mounted storage, and reverse proxies.

Self-hosting SiYuan

Docker is the documented server installation path, using the b3log/siyuan image with the serve subcommand, a mounted workspace, and port 6806. A community Helm chart is also documented, using a default StorageClass and a 10Gi ReadWriteOnce volume. SiYuan does not require PostgreSQL, Redis, or separate object storage for its core workspace. S3 and WebDAV are optional synchronization and backup targets. Set an access code, match PUID and PGID to mounted-directory ownership, and configure WebSocket proxying for /ws. Back up the complete workspace, authentication secrets, encryption keys, and recovery passwords before upgrades. Run one writer per workspace and expect downtime during chart replacement.

Strengths

  • Block references and backlinks remain useful when documents are reorganized.
  • The application supports desktop, mobile, browser, and Docker deployment paths.
  • AGPL-3.0 permits commercial use, while most features remain free.
  • Database automations, flashcards, OCR, exports, and AI integrations cover a broad personal knowledge workflow.

Drawbacks

  • Docker server deployment is browser-only and loses several desktop and mobile capabilities.
  • The official cloud service provides 8G of space and uses lifetime pricing rather than monthly billing.
  • Workspace backups require the complete data directory because a SQLite index copy alone is insufficient.

What teams replace with it

Teams usually evaluate SiYuan when they want to move off Notion, Evernote, Obsidian Sync.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to SiYuan

Frequently asked questions

Is SiYuan free?

SiYuan lists a free tier priced at $0 for a lifetime, and its README says most features are free even for commercial use. Paid options add synchronization and backup integrations, cloud asset hosting, Cloud Inbox, and official cloud space. The project also offers PRO Features at $64 lifetime and Subscription at $148 lifetime, both shown as discounted prices.

Can businesses use SiYuan commercially?

The README says most SiYuan features are free, including commercial use. The project uses the GNU Affero General Public License v3.0, or AGPL-3.0. Organizations should review the license obligations for modifications and network use before distributing or operating modified versions, particularly when changing server-side code or offering a service.

How do you self-host SiYuan?

The documented route uses Docker with the b3log/siyuan image, the serve subcommand, a mounted workspace, and port 6806. Set a lock-screen access code and align PUID and PGID with host-directory ownership. A community Helm chart is also documented. Back up the complete workspace before upgrades, and run only one writer against a workspace.

How does SiYuan compare with Joplin?

SiYuan centers its model on addressable content blocks, block references, backlinks, database views, WYSIWYG editing, and document zoom. Joplin is a named open-source alternative for note taking, with a different organization model. Choose SiYuan when block structure and integrated databases matter most, and compare synchronization and migration workflows before moving an existing library.

Is SiYuan private and secure?

SiYuan describes itself as local-first and privacy-first, with data stored on the user's device. Its documentation describes end-to-end encrypted synchronization and Docker access protection through a lock-screen password or OIDC. Self-hosted operators remain responsible for HTTPS, reverse-proxy configuration, mounted-volume permissions, authentication secrets, encryption keys, backups, and restore testing.

Similar projects to compare

Sources

Last updated 2026-10-22.