acheong08 / obi-sync

Reverse engineering of the native Obsidian sync and publish server
https://obsidian.md/sync
GNU General Public License v2.0
1.02k stars 60 forks source link
obsidian-md obsidian-publish obsidian-sync obsidian-vault sync

Rev Obsidian Sync

Reverse engineered obsidian sync server (NOT OFFICIAL).

[!WARNING] The main branch is the development branch. For stable usage, use the latest release.

[!NOTE] The plugin is broken on obsidian >= 1.4.11. This is intentional by the official ObsidianMD team. They have made clear their dissatisfaction with this project. The Path Forward - We are in the early stages of designing an alternative plugin that does not make use of existing code by ObsidianMD team. It is still in the design phase and help is needed. For now, we can manually patch the files from https://github.com/obsidianmd/obsidian-releases/releases/. I will write up a wiki page or automate that soon.

Features

Experimental

These features are not in the latest release but in the main branch. They might not be fully tested and are probably unstable.

To do

Quickstart

[!NOTE] The comprehensive documentation by @Aetherinox can be found in the wiki.

Quickstart with Docker

Environment variables

Required:

Optional

Building & Running

Optional:

When you're done, install and configure the plugin

Adding a new user

go run cmd/signup/main.go

Alternatively:

curl --request POST \
  --url https://yourdomain.com/user/signup \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "example@example.com",
    "password": "example_password",
    "name": "Example User",
    "signup_key": "<SIGNUP_KEY>"
}'

You can set the signup key via the SIGNUP_KEY environment variable. If it has not been set, you can exclude it from the request.