PublicTxt v1 (personal storage and publishing) is now working for me day to day, through my Obsidian Plugins for PublicTxt and PublicTxt-Pages for publishing. Community aggregation has already started: the Obsidian-PublicTxt-Remotes Plugin pulls in content from subscribed repos on one machine, and community features in PublicTxt-Pages are coming along. The next step is a hosted aggregator that follows repos at scale.
That’s also my excuse to learn Erlang properly, not through toy exercises but through a project that needs what Erlang is good at: lots of small, independent, long-lived things that sometimes fail. I started PublicTxt in .NET because it was the tool at hand. The aggregator’s shape is very Erlang.
PublicTxt is a decentralised, Git-backed knowledge platform. Each person keeps their notes and bookmarks as plain Markdown in their own Git repo. CuratedCommons is the curation layer on top: social bookmarking across many repos.
The stack is free. But following hundreds or thousands of repos, keeping an index fresh and pushing updates to readers is work someone has to run. That’s where PublicTxt-Web comes in: a hosted service that aggregates, indexes and, potentially, offers convenient paid hosting, without locking anyone in.
In Erlang, every followed repo gets its own process. Each one wakes on a timer, fetches, parses what changed and reports back. If a repo is broken, slow or gone, only its own process crashes, and a supervisor restarts it. Everything else carries on. In most stacks you’d hand-build that isolation; in Erlang it’s the default.
The pieces:
A few ideas clicked while designing this:
The in-memory index is for speed. But committing a snapshot to a public Git repo turns it into something more: a free, persistent discovery layer. Anyone can clone it and find PublicTxt repos without my server existing at all.
That makes each server just one node. Nodes can follow each other’s index repos and trust lists, and discovery spreads without a central registry.
Inclusion is opt-in, plus a list of already-public repos I trust. Public isn’t quite the same as consent to aggregation, so nodes should honour an opt-out flag and respect licences. Indexing links and tags is a lighter touch than republishing content.
The trust list itself lives in Git, so others can follow my curation, which makes it CuratedCommons for repos. To stop trust from sprawling, following is limited to a hop or two.
Theory’s done. The first piece of code is a single follower: one gen_server polling one repo on a timer. Small, but it’s the seed of the whole thing.
see the repo here https://github.com/publictxt/publictext
PublicTxt is an experiment in using Git repositories as an interoperability layer and online storage for public and community knowledge. By leveraging free Git hosting services and plain text markdown files, it enables individuals and communities to share, curate, and collaborate on content without relying on centralized platforms or paid infrastructure.
The core idea is simple: Desktop and Web applications that sync between local and multiple Git repositories to store and share knowledge, subscribe to repositories and aggregate content from different sources, collaborate through user friendly abstractions over Git’s branching and merging workflows, and publish everything to the web using static site generation.
The experiment is in early stages. Links to software repositories for tooling that works with these plain-text repositories to follow.
The directory structure for a Public Text repository is as follows: