Skip to content

No-Instructions/Relay

Repository files navigation

Relay 🛰️

True multiplayer mode for Obsidian. 💃🕺

  • Collaborate in real time with live cursors.
  • Edit offline and sync seamlessly when you're back on.
  • Share folders and manage access to updates.

Relay Product Demo

Relay is a collaborative editing plugin for Obsidian by System 3. It uses CRDTs to enable snappy, local-first, real-time and asynchronous collaboration.

Join our Discord for support and a good time.

How does Relay work?

In a nutshell, Relay:

  1. Tracks updates to designated folders. The plugin uses conflict-free replicated data types (CRDTs) to track updates to folders that you designate within your vault.
  2. Relays updates. It sends those updates up to Relay servers 🛰️, which then echo the updates out to all collaborators on the relay.
  3. Integrates updates. Your collaborator receives the updates and integrates them seamlessly as they come in.

What's a CRDT?

Great question. CRDT stands for conflict-free replicated data type and it's a technology that's critical to making local-first real-time collaboration work.

The fundamental idea is this: You have data. This data is stored on multiple replicas. CRDTs describe how to coordinate these replicas to always arrive at a consistent state. [1]

For a great intro and overview, watch the first 10 minutes of this video by Martin Kleppmann. If you want to get into the nitty-gritty, watch the whole thing.

Intro to the Modern State of Synchronization

For more, check out this video: Intro to the Modern State of Synchronization by Kevin Jahns. Jahns is the maintainer of Yjs, which is the the open source CRDT that we use in Relay.

What can I do with Relay?

Oh, the things you can do.

Here's a video tour:
Watch the video

Create a new relay

  1. Go to Obsidian settings (gear icon in lower left of Obsidian)
  2. Go to Relay settings (on the left, at the bottom)
  3. Create new relay
  4. Add shared folder(s) to the relay

Demo - Create a new Relay

Add users to the relay by giving them a share key

  1. Go to settings for your relay
  2. Grab the share key
  3. Give it to your people

Demo -Sharing a Relay

Collaborate to your heart's content

  • If you're in a note at the same time, you'll see each others' cursors
  • You can edit the same block at the same time (magic of CRDTs)
  • You can edit offline and it'll all be fine when you come back on (CRDTs ftw)
  • If you hit any bugs or have questions/requests let us know in the Discord

Kick user from a relay

  • Right now anyone with the share key can join the relay
  • So you can kick the user but they could rejoin if they want
  • We'll be adding stricter sharing options in the future

Demo - Kick a user from a Relay

Join someone else's relay

  1. Get their share key
  2. Use it to join their relay
  3. Add the folders you want to your vault

Demo - Join a Relay

Destroy the relay when you're done

If you're the owner of a relay, you can destroy the copy on the server.

If you're a member but not the owner, you can leave the relay (destroy your connection to the server), and you can destroy the local data.

FAQ

Asked more or less frequently.

Which file types are supported?

Relay currently syncs:

  • folders
  • markdown files

Other file types are coming soon!

How much does Relay cost?

Each user can create up to 25 Relay Servers.

Free Relay Server

  • 3 Users
  • 100MB markdown edit-history storage

Team Server $10/mo

  • Includes 10 seats ($1 per user per month)
  • Unlimited markdown edit-history storage

Professional Plan

  • Contact us

Do I need to be online to use Relay?

Relay is local-first -- this means that all of your edits are tracked locally and the server is used to relay the edits to your collaborators. You can work offline and your edits will be merged once you come back online.

How are edits merged?

We use a Conflict-Free Replicable Data Types (CRDTs) provided by the excellent yjs library.

Is Relay Open Source?

The Obsidian plugin code is MIT licensed (this repo).

The Relay Server is a fork of y-sweet and is MIT licensed.

Our login, permissions, and billing server code is proprietary.

Can I self-host?

We support "On-Prem" deployment of a Relay Server.

If you self-host your Relay Server on a private network then your users will still perform login and permissions checks through our servers, but they will connect directly to your server. Your content will be completely private and inaccessible by us.

For instructions on hosting your Relay Server on fly.io, see Relay Server Template.

Join our Discord for help on configuring your on-prem deployment.

Who's behind Relay?

Relay is made by System 3. The legal entity behind System 3 is No Instructions, LLC.

Right now the whole operation is two people:

  • Dan, a software engineer who has worked at places like Planet and Benchling
  • Matt, a product manager and psychotherapist (in training) who has worked at places like Meta AILumosity, and Big Health

Do you have a privacy policy?

Yes: https://system3.md/Privacy+policy.

How can I make a resonsible security disclosure?

Please email [email protected]

Installing Relay

You can search for Relay in the Obsidian Community plugins list, or click this Obsidian Plugin Link.

Join our Discord!


[1] Intro to CRDTs by Lars Hupel https://lars.hupel.info/topics/crdt/01-intro/