selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

SiYuan logo

Self-host SiYuan

v3.8.9

Privacy-first block-based Markdown knowledge management

ReleaseOpen SourceAGPL-3.0
docker run -d -v /siyuan/workspace:/siyuan/workspace -p 6806:6806 -e PUID=1001 -e PGID=1002 b3log/siyuan serve --workspace=/siyuan/workspace/ --accessAuthCode=xxx
Updatedlast week
LanguageTypescript
Setup difficultyEasy
MobileNative app
Stars
47 140
Port
6806 (SiYuan web UI and kernel HTTP API, reached from a browser)
Docker
b3log/siyuan
Main workspace screen with document tree and editorFlashcard review screen with spaced repetitionDatabase view with relations between two databasesGraph view showing links between blocksList outline used to organise nested notes

What is SiYuan?

SiYuan alternatives

Should you self-host SiYuan?

SiYuan scores 82/100 on selfhost.directory (how scoring works) and ranks #4 of 42 in Knowledge Management. It has 47 140 GitHub stars, +509 in the last 30 days.

It shipped 14 stable releases in the past year. The latest, v3.8.9, came out on 29 October 2026. New versions land roughly every 8 days.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Typescript.

Its closest alternative on selfhost.directory is Project N.O.M.A.D. (86/100, 42 898 stars). It scores higher overall, so compare the two before you pick. See SiYuan vs Project N.O.M.A.D. side by side.

Features

  • AI writing and chat
  • Block-level references and backlinks
  • Command Line Interface
  • Database table view
  • Document exportNot supported in the Docker deployment
  • Embedded SQL queries
  • Encrypted multi-device syncThird-party S3/WebDAV sync is a paid PRO/subscription feature; official sync needs the subscription with 8 GB storage
  • Flashcards with spaced repetition
  • HTTP API
  • Markdown WYSIWYG editing
  • Multi-tab workspace with split screen
  • OCR
  • Plugin and widget marketplace
  • Template and code snippets
  • Web clipping and PDF links

SiYuan README

How to install SiYuan

Install SiYuan with Docker

Environment variables
PUID, PGID, SIYUAN_WORKSPACE_PATH, SIYUAN_ACCESS_AUTH_CODE, SIYUAN_ACCESS_AUTH_CODE_BYPASS, SIYUAN_LANG, SIYUAN_OIDC_*
docker run -d \
  -v /siyuan/workspace:/siyuan/workspace \
  -p 6806:6806 \
  -e PUID=1001 -e PGID=1002 \
  b3log/siyuan \
  serve \
  --workspace=/siyuan/workspace/ \
  --accessAuthCode=xxx

Since v3.7.0 the `serve` subcommand must be passed explicitly. Browser use only: no desktop/mobile app connections, no PDF/HTML/Word export, no Markdown file import.

How to configure SiYuan

  • PUID1000Custom user ID for the container user created by entrypoint.sh

    values: Numeric UID

  • PGID1000Custom group ID for the container group created by entrypoint.sh

    values: Numeric GID

  • SIYUAN_WORKSPACE_PATHWorkspace folder path in the container; the command line takes priority if both are set
  • SIYUAN_ACCESS_AUTH_CODELock screen password for Docker access; the command line takes priority if both are set
  • SIYUAN_ACCESS_AUTH_CODE_BYPASSSet to true to disable the lock screen password

    values: true

SiYuan releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

What is the difference between official and third-party data sync?

The subscription bundles 8 GB of official cloud storage that works out of the box, while the S3 and WebDAV integrations in PRO Features and subscriptions require you to supply and configure your own storage service.

How is the renewal price calculated after a subscription interruption?

The renewal price stays fixed at the price of your first subscription for life, even if you resubscribe later.

Why is the official sync storage limited to 8GB?

Official sync costs more traffic than plain cloud-note services, so 8 GB per user is the current affordable limit; more space means using the third-party S3 integration.

Are refunds available after subscribing?

Refunds are not available once you subscribe, so the project suggests enabling the trial subscription in the desktop app's account settings first.

What should I do if the data repo key is lost?

If the key was initialised consistently it is identical on every device and can be copied from Settings - Account & Sync - Local Data Repo; otherwise back up the data and reset the data repo, then reinitialise and re-import the key on the other devices.

What if some blocks (such as paragraph blocks in list items) cannot find the block icon?

The block icon is intentionally omitted for the first sub-block of a list item; move the cursor into that block and press Ctrl+/ to open its block menu.

How to upgrade to a new version?

App-store installs update through the store, desktop installs can auto-download the newest package from Settings - About, and manual installs just need the package downloaded again.

Does it support data synchronization through a third-party sync disk?

No, syncing through third-party sync disks is not supported because it can corrupt data; member accounts may instead connect third-party cloud storage.

How does SiYuan store data?

Everything lives in the workspace data folder: assets, emojis, snippets, storage, templates, widgets, plugins and public data have their own subfolders, while each notebook folder holds documents as JSON files with the .sy suffix.

More in Knowledge Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…