SiYuan is a local-first notes app with block-level references, bidirectional links, databases, and encrypted sync. It runs on desktop, mobile, and via Docker on a server.
Overview
SiYuan is a privacy-first personal knowledge management system centered on content blocks rather than whole documents. Blocks support references, two-way links, custom attributes, and markdown WYSIWYG editing with outlines, formulas, charts, and embedded SQL queries.
The editor handles large documents, multi-tab layouts, split views, templates, and JavaScript or CSS snippets. Built-in databases provide table views; flashcards support spaced repetition. AI writing and Q&A can use an OpenAI API, and web clipping, PDF annotation links, and export to markdown, PDF, Word, or HTML are included in the free feature set.
Data stays on devices you control, with end-to-end encrypted sync between clients. Mobile apps are available for Android, iOS, and HarmonyOS, and the mobile app can act as a server on a local network. For server use, the official Docker image exposes a browser interface with lock-screen or OIDC access controls.
SiYuan describes itself as a workspace where humans and AI agents can collaborate, with API and marketplace extensions. Docker deployment suits self-hosted cloud notes with password-protected browser access.
Key features
- Block-level references and bidirectional links
- Markdown WYSIWYG block editor
- Databases with table views
- End-to-end encrypted sync
- Flashcard spaced repetition
- Docker server deployment
- Mobile apps with LAN server mode
- OpenAI API writing and Q&A
Use cases
- Personal knowledge management offline
- Encrypted multi-device note sync
- Self-hosted team notes via Docker
- Large structured documents and outlines
- Spaced-repetition learning decks