Skip to content

latebit-io/obsidian-demarkus

Repository files navigation

Demarkus for Obsidian

Fetch, edit, and publish markdown documents to demarkus servers directly from your Obsidian vault using the Mark Protocol.

Features

  • Fetch Document — pull a document from any demarkus server into your vault
  • Publish Note — push the active note to a demarkus server with optimistic concurrency
  • List Documents — browse a server's documents and fetch any of them

Fetched documents store mark-url, mark-version, and mark-etag in frontmatter so publishes know where to go and detect conflicts. Existing Obsidian frontmatter (tags, aliases, etc.) is preserved on both fetch and publish.

Requirements

The plugin shells out to the demarkus CLI binary, which must be installed and available on your PATH (or configured in settings).

Install demarkus: https://github.com/latebit-io/demarkus

Installation

Via BRAT (recommended for now)

  1. Install the BRAT plugin in Obsidian
  2. Open BRAT settings and choose Add Beta Plugin
  3. Enter latebit-io/obsidian-demarkus
  4. Enable the plugin in Obsidian's Community Plugins settings

Manual

  1. Download main.js and manifest.json from the latest release
  2. Create a folder <your-vault>/.obsidian/plugins/demarkus/
  3. Place both files in that folder
  4. Enable the plugin in Obsidian's Community Plugins settings

Configuration

Open Settings > Demarkus to configure:

Setting Description
Server URL Default mark:// host (e.g. mark://soul.demarkus.io)
Token Capability token for publish operations (stored securely, never in vault files)
CLI Path Path to demarkus binary (default: demarkus)
Insecure Skip TLS verification for local dev servers

Usage

All commands are available from the command palette (Cmd/Ctrl + P):

  • Demarkus: Fetch document — prompts for a mark:// URL, fetches the document, and creates or updates a note in your vault under demarkus/<host>/
  • Demarkus: Publish note — publishes the active note to the server recorded in its frontmatter (or prompts for a URL if none)
  • Demarkus: List documents — lists documents on your configured server and lets you pick one to fetch

How it works

The plugin bridges Obsidian and demarkus by shelling out to the demarkus CLI. Documents are stored in your vault under demarkus/<server-host>/ with their server path preserved. Frontmatter tracks the mark-url, version, and etag so the plugin can publish back with conflict detection.

License

AGPL-3.0-only

About

demarkus plugin for obsidian

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors