Obsidian PublicTxt Remotes Plugin
Adds collaborative features to ‘connect’ Obsidian.md wikis to other PublicTxt Wikis. Should work well with Obsidian PublicTxt Facets Plugin
An Obsidian plugin that follows other people’s PublicTxt repos, shows what changed since you last looked, mirrors the pages you want at hand, and forks the ones you want to make your own. It is the pulling half of PublicTxt’s aggregate view; Obsidian PublicTxt Facets is the browsing half.
- Follow notes: one note per repo in
follows/, named for the remote, with itsurl,branchandincludein front matter and why you follow it in the body (spec §3.2). - Check: per repo, what’s new since you last looked, your mirrors that are behind, and your forks whose original changed. By git blob SHA, so it’s the same on every host.
- Mirror: keep upstream’s copy of a page in
community/<remote>/, at the path it has there, withmirror_*provenance (spec §5.5). Obsidian searches it and shows its backlinks; an update overwrites it. Each follow note can list the pages mirrored from it. - Fork: make a page your own, in a folder you choose (a mirrored page moves there), with
fork_*provenance in its front matter, including the remote’s name asfork_remote(spec §5.2). Each follow note can list the pages forked from it. - Local sources: a git repo on your computer, such as another vault, can be a source too. Its follow note holds no path, so it can be published; the folder stays in the plugin’s settings. Snapshot commits what changed in it; the plugin can make a plain folder a repo.
- Local copies: a repo you follow by URL that is also cloned on your computer stays one source. Set its folder as the source’s local copy and the plugin fetches from there, so checks see commits you haven’t pushed yet.
- Filters: Check view allows filters by:
- Tags
- Forks/Mirrors
Desktop only, over the git CLI: any host, your own SSH keys and credential helpers. Clones live in the vault’s hidden .clones/ folder.
Decisions: ADR-0011, ADR-0012, ADR-0014, ADR-0015, ADR-0017, ADR-0018.
Follow, mirror, fork
Reading someone’s notes and owning a copy stay apart:
- Follow a repo: a note in
follows/. Whole repos, narrowed locally byincludefolders (ADR-0005). - Mirror the pages worth having at hand: upstream’s copies under
community/<follow>/, overwritten by updates, not for editing. A mirror’s links go by full path into its mirror folder, so they never land on your same-named note. - Fork the ones to make your own: your note, wherever you put it. Its links are pointed at your copies when you accept the offer; links to pages you haven’t copied go by name. Upstream changes arrive as a compare (overwrite, write alongside, or keep yours), not a merge. Forking a mirror moves it.
Notes carry their own facts: lists of mirrors and forks are derived by scanning their keys, never stored. Settings, a cache and per-computer paths live in the plugin’s data.json, never in a note.
Documentation
In the repository’s docs/, mirrored here under community/publictxt-remotes/. Nothing is released; names and ids can change until the first release.
| File | Holds |
|---|---|
| intent.md | Why, the decisions, what’s open |
| naming.md | Vocabulary, frozen ids, code layout |
| features/ | One file per feature: sources, check, git, local, mirror, fork, fork update, lists, convert links |
| history.md | Past names and dropped designs: was obsidian-publictxt; clones were in .remotes/, mirrors and forks in remotes/<source>/; watch became mirrors |
Later
Merge a fork (
git merge-fileonfork_blob)propose changes upstream, - converting links back;
offer to fork or mirror the pages a dangling link names; warn when a local copy is ahead of its origin; mirror attachments; update mirrors at each check; per-source link style.
Links
- Repository
- Earlier notes: PublicTxt Remotes Local Copies