metagov573 downloadsSynchronizes data from a Slack Telescope instance using the KOI-net protocol.
KOI Sync is an Obsidian plugin designed to interact with the KOI-net ecosystem. Within a vault, it operates as its own node in a Telescope KOI network. It allows an Obsidian user to share notes with other vaults (or any nodes in the network), and stream knowledge objects produced by the network into their vault in a human-readable format.
This plugin communicates with remote KOI-net nodes over the internet. This is restricted to the nodes in the network you connect to by specifying the URL endpoint and RID of the coordinator during initial setup, no other remote services are contacted. In order to use this plugin, you will need access to a KOI network.
The KOI Sync plugin can be easily installed inside of the Obsidian app.
Community plugins.Exit Restricted mode (if you haven't already).Browse button next to Community plugins.KOI Sync, and click on the result, it should say By metagov.Install and then Enable.KOI-net: 0 📜.Click to set up your KOI-net node!.Node name, make sure to enter a single word using only alphanumeric characters, hyphens, or underscores. (Example: lukes-vault).First contact RID and First contact URL, this will be provided to you by the operator of your org's KOI network.RID types of interest, unless a network operator tells you otherwise.Submit button to finish the setup process.KOI Sync directory will appear, and you'll notice the KOI-net object counter increment as connections are made with new nodes and data is synchronized.Currently, the KOI Sync plugin has two main uses:
Data published by other nodes will passively appear in your KOI Sync directory, so long as you have the corresponding RID type as being "of interest" in your settings. By default, this includes Obsidian notes (orn:obsidian.note) published by other vaults and Telescoped messages (orn:telescoped) from a Slack Telescope bot in the network.
In order to pause syncing with the remote KOI network, click on the green check mark on the status bar. It will display Synced! Click to pause when you hover over it, and switch to a paused icon after clicking on it. While synchronization is paused, no new data will be sent or received. Any changes you make to tracked notes will only be transmitted after you resume synchronization.
Click on the pause button on the status bar, which displays Paused. Click to resume syncing on hover to resume the background sync process.
All notes in the KOI Sync directory are views of remote data and should be treated as read-only. ANY EDITS MADE WILL BE OVERWRITTEN WITHOUT WARNING.
This plugin stores the node's private key within its data.json file. DO NOT PUBLISH YOUR VAULT PUBLICLY, OR SHARE IT WITH ANYONE YOU DO NOT TRUST.
In order to publish your own notes, complete the following steps:
Ctrl/Cmd + P to open the Command palette.KOI Sync: Track this note (you can start typing and hit Enter when the full command is highlighted).Settings > Editor > Display and setting Properties in document to Visible._rid field)._koi_net_enabled property. To reshare it, recheck the property again. Deleting a note in your vault will also remove it from other vaults.As the KOI Sync directory represents a view on all knowledge objects in the vault's KOI-net cache, your own tracked notes will also show up under KOI Sync > Obsidian Notes. Make sure you are editing the original note, which will show the _rid and _koi_net_enabled properties at the top of the file.
Data received from a KOI network is JSON formatted, and stored in KOI Sync > RID Cache. In order to provide a more human-readable interface for Obsidian users, the KOI Sync plugin provides a templating system to transform JSON into formatted markdown.
The default templates are automatically loaded into the KOI Templates directory, and automatically format KOI-net nodes & edges, Obsidian notes, and Telescoped messages. This plugin uses the Handlebars templating language. For most users, the default templates will be sufficient.
Templates are Markdown files named after the RID type they format, but with the orn: prefix dropped. (Example: orn:koi-net.node -> koi-net.node.md). If you modify a template, make sure to run the command: KOI Sync: Reformat all synced notes from templates. This will regenerate the note views in the KOI Sync directory, applying the new template.
In order to reset the plugin to its initial state, run the command: KOI Sync: Reset this plugin. Note that doing this will permanently delete the KOI Sync directory, the RID cache, this node's identity and private key, and any plugin settings. Resetting will also transmit a FORGET event to the KOI network to delete this node's profile and associated edges. To confirm, click the Reset button in the popup.
Shared Obsidian notes WILL NOT be deleted in remote vaults. If you wish to delete any shared notes, do this before resetting. After setting up again, any notes that were still shared will be automatically re-shared from your new node, and can be unshared as normal.
You can now set up your plugin again by returning to the Setup section of this README.