openflarestack Star this repo
  1. Catalog
  2. Notes
  3. Logseq Self-hosted
Ranked 79 of 234

Logseq Self-hosted

yshalsager/logseq-selfhost

Runs your own Logseq DB sync server, publishing service and web app.

A self-hosted alternative to Logseq Sync.

What it sets up in your account

  • R2
    R2 bucket
    Storage for files and uploads.
  • DO
    Durable Objects
    Keeps live sessions and realtime state.
  • D1
    D1 database
    A SQL database for the app’s records.
Category
Notes
Licence
AGPL-3.0
Stars
121
Last commit
3 days ago

Use it with AI or code

  • Markdown for AIPaste into ChatGPT, Claude or any LLM./apps/logseq-selfhost.md
    Open
  • JSON APIFree, no key, CORS open./api/v1/apps/logseq-selfhost.json
    Open

More in the API docs and llms.txt.

Keeping it up to date

Run this in your copy whenever a new version comes out.

terminal
git remote add upstream https://github.com/yshalsager/logseq-selfhost.git
git pull upstream master
npx wrangler deploy

Logseq Self-hosted questions

What is Logseq Self-hosted?

Runs your own Logseq DB sync server, publishing service and web app. It’s an open-source, self-hosted alternative to Logseq Sync. It runs on Cloudflare Workers in your own account.

What does Logseq Self-hosted set up in my Cloudflare account?

R2 bucket, Durable Objects and D1 database. They are created in your account, so the data stays yours.

How do I deploy Logseq Self-hosted?

It installs from the command line. Follow the steps in the yshalsager/logseq-selfhost README.

Is Logseq Self-hosted free and open source?

Yes. It’s published under the AGPL-3.0 licence. Running it uses your own Cloudflare account, and small setups usually fit in the free plan.

How do I update Logseq Self-hosted?

Pull from the original repository and redeploy: add https://github.com/yshalsager/logseq-selfhost.git as an upstream remote, run git pull upstream master, then npx wrangler deploy.