PublicTxt

page · updated

PublicTxt is an experiment in using Git repositories as an interoperability layer and online storage for public and community knowledge. Using free Git hosting and plain-text Markdown, individuals and communities can share, curate and collaborate on content without relying on centralized platforms or paid infrastructure.

At its core is a format specification: plaintext conventions that any tool can read and write. Tools built on it sync your repository, follow and aggregate other people’s repositories, and publish everything to the web as a static site.

What PublicTxt is, for now

The differentiator is selective aggregation across many Git-hosted repositories: following other people’s PublicTxt repos and pulling chosen pages into a local view. Plain-text Markdown in Git, published as a static site, is the substrate; aggregation is the value. Everything else supports that, or is deferred.

v1 success looks like:

“I can keep my notes and writing in a Git repository, publish them to the web for free via gh-pages or similar, and pull selected pages from other people’s PublicTxt repos into a local aggregate view I can browse and search.”

How it works

  • Plain text. Markdown with YAML front matter and inline #tags, compatible with Obsidian Properties.
  • Zero-cost storage and hosting — free Git hosting for storage, distribution and static sites.
  • Static website generation — PublicTxt Pages: push and you’re live, with full-text search and facets. See Publishing.
  • Selective aggregation — pull chosen content from other repositories into a local aggregate. In progress: Obsidian PublicTxt Remotes follows repos and forks their pages.
    • Follow, then filter. You follow whole repositories and filter when reading.
    • Mirror the pages you want at hand into community/
    • Fork with provenance. A page copied from another repo records where it came from in its own front matter, so you can see when the source changes.
  • Obsidian compatible — a PublicTxt repository is an Obsidian vault. Obsidian PublicTxt Facets brings the site’s browsing into the editor, and Obsidian PublicTxt Remotes Plugin handles aggregation from other wikis

Status

PartState
Format specification v0.1 and conformance fixturesDraft
Architecture decisionsRecorded; several still proposed
PublicTxt-Pages: static siteWorking: live at publictxt.github.io/publictext
Obsidian-PublicTxt-Facets: browse a vault by facetsv1.0 released
Obsidian PublicTxt Remotes: follow repos, fork pagesv0.5 released
WikiToolIn progress
PublicTxt.net: .NET implementationIn progress
CuratedCommonsSpecification stage
ptx CLI: validate, publish, follow, aggregatePlanned
Desktop and web appsDeferred (ADR-0008)
PublicTxt WebPlanned

Components

PublicTxt-Pages

PublicTxt Pages: zero-backend static site for a PublicTxt repository, or any Obsidian or Markdown wiki.

  • Builds with Hugo; deploys to GitHub Pages or any static host.
  • Works on plain Obsidian vaults that use relative Markdown links, with no conversion step.
  • Full-text search and facets (tags, tag combinations, type) via Pagefind.
  • Single repo in v1.

see publictxt/publictxt-pages GitHub repo

Obsidian-PublicTxt-Facets

Obsidian PublicTxt Facets: the same faceted browsing inside Obsidian. Offline by design.

  • Filter notes by combinations of tags; the tag list narrows to tags that co-occur with the selection.

see publictxt/obsidian-publictxt-facets GitHub repo

Obsidian-PublicTxt-Remotes

Obsidian PublicTxt Remotes: the pulling half of v1.

  • Follow whole repos, one note per repo in follows/; narrow what’s shown by folder (include).
  • See what changed since you last looked, by git blob SHA.
  • Mirror the pages you want at hand into community/, as their authors wrote them, with mirror_* provenance.
  • Fork a page into your own notes, with fork_* provenance in its front matter.
  • Named remotes: each follow note is named for its remote, and forks record the name (fork_remote).
  • Local sources: a git repo on your computer, such as another vault, can be followed too, with no path in its note. Snapshot commits what changed in it; a plain folder can be made a repo.
  • Local copies: a repo followed by URL that is also cloned on your computer stays one source, fetched from the folder.
  • Desktop only, over the git CLI: any host, your own SSH keys.
  • Decisions: ADR-0011, ADR-0012, ADR-0014, ADR-0015.

see publictxt/obsidian-publictxt-remotes GitHub repo

WikiTool

WikiTool: multiplatform .NET tool for handling multiple wikis.

  • Converts between wiki formats and syntaxes, including Obsidian ↔ md-wiki.
  • Copies between wikis by search, tag expressions (tag1 + tag2 - tag3) and attributes.

see jaysen/WikiTool GitHub repo

PublicTxt.net

PublicTxt.net: .NET implementation. Core libraries, feature services, Git and database infrastructure.

see publictxt/publictxt.net GitHub repo

CuratedCommons

CuratedCommons: social bookmarking and curation on PublicTxt repos. Commentary lives in plain-text repos that are public, forkable and followable.

see publictxt/curated-commons GitHub repo

Repository layout

The spec follows the PublicTxt-Pages layout (ADR-0013); details in Repository structure and spec §4.

publictxt.yaml          manifest: spec version, author, ignore
_index.md               home page; any folder's _index.md is its own page
wiki/  posts/  notes/   one collection per top-level folder
blog/                   2023/12/17/post.md, 2024/09/20240922-title.md or 20260509-title.md
bookmarks/sites/<domain>/…   one file per web resource, with a bookmark: URL
media/                  shared attachments
follows/                one note per repo you follow (ADR-0014)

Any folder layout works: an existing vault’s top-level folders become its collections, with no remapping.

A minimal manifest (spec §3):

publictxt: "0.1"
author:
  name: Your Name

A follow, follows/example-notes.md (spec §3.2):

---
url: https://github.com/example/notes
include: [blog/]
rating: 4        # how far I trust this repo, 1–5: the source rating of its pages
---
Why I follow it, and what to read there.

Front matter on a wiki page that is also a bookmark:

---
title: Pro Git
created: 2026-10-13T00:36:00+02:00
tags: [git, books]
bookmark: https://git-scm.com/book/en/v2
---

Use cases

  • Personal knowledge management: your own Markdown knowledge base with version control and free hosting.
  • Distributed blogging: posts that others can follow and aggregate.
  • Research and learning: pull selected pages from peers’ repos into a local view for study and synthesis.
  • Social bookmarking (CuratedCommons): share and annotate web resources; aggregate other people’s bookmarks and tags.
  • Community wikis (lightweight): small groups using Git’s own collaboration: pull requests, branches, forks.

Later

Deferred until the v1 aggregation-and-publish story works and is used. Each has a trigger in IDEAS.md; the Roadmap has the order.

  • Visibility: public, semi-public and private content. Private content needs private repos; how they fit into following is undecided.
  • Community: profiles, groups, discussion and moderation. (community/ now holds mirrors of followed repos’ pages; where these live is open.)
  • Desktop and web apps that hide Git, with a local cache for fast search.
  • MetaWeb: a browser extension showing Git-stored notes on web pages; W3C Web Annotation export.
  • Federation: ActivityPub; Git commits as public records.
  • Richer data: RDF semantic edges, weighted links, a TerminusDB graph backend, consensus and reputation.

This repository

A working PublicTxt repository, published as publictxt.github.io/publictext/ (see Publishing). It also holds the project’s own docs:

  • wiki/publictxt/: project documentation
  • wiki/publictxt/docs/spec/: format specification and conformance fixtures
  • wiki/publictxt/docs/IDEAS.md: parked ideas, each with a trigger for revisiting it
  • wiki/publictxt/docs/adr/: architecture decision records
  • wiki/publictxt/docs/history/: earlier versions of this README

Suggest changes through issues, pull requests or by forking.

License

GPLv3: https://www.gnu.org/licenses/gpl-3.0.en.html. See LICENSE.

Contributing

See CONTRIBUTING.md.