PublicTxt Web Client
Part of PublicTxt Web.
A browser UI that does what Obsidian plus the PublicTxt plugins do today, for people who won’t use Git.
Why parked
ADR-0008: Obsidian is the editor. Custom clients wait until a workflow can’t be done with Obsidian, the CLI and the static site.
Unparks when: someone who won’t use Git wants to contribute, or cross-repo browsing via a PublicTxt Aggregator needs a UI that PublicTxt-Pages can’t provide.
Scope (when unparked)
| Capability | Reads from | Writes to |
|---|---|---|
| Open a repo or folder; browse by facets; search | Repo (clone/fetch), Discovery Index | Local cache only |
| Follow repos; mirror and fork pages | Discovery Index, source repos | User’s repo |
| Write and edit pages | User’s repo | User’s repo (commit + push) |
| Discover repos and resources | Aggregator API, or index repos directly | — |
Output must be identical to Obsidian output under the spec.
Candidate architectures
Both consume the same format-neutral Aggregator API (JSON + feeds). The client choice must not shape the node.
A. Blazor WebAssembly (PublicTxt.net): local-first.
- Client-side SQLite cache of opened repos for fast search and facets.
- Server side only where the browser can’t do the work (Git auth, CORS, large fetches). Prefer the Aggregator over a separate backend.
B. Phoenix LiveView: server-rendered, live-first.
- UI state is a server process per user over a socket; PubSub and Presence are built in.
- Shares a codebase with the Aggregator if it is Elixir.
| A. Blazor WASM | B. LiveView | |
|---|---|---|
| State | Browser (SQLite) | Server process per user |
| Offline | Possible | No |
| Search latency | Local | Round trip |
| Live collaboration and presence | Hand-built (SignalR) | Built in |
| Server cost | Static + API | Memory per connected user |
| Fit with Git-as-truth / local-first | Strong | Adequate; the server is the hub |
| Ecosystem | .NET (marketable, existing code) | Elixir (one stack with the Aggregator) |
Deciding question: local-first/offline vs live collaborative editing. If live co-editing becomes a must-have, B gains a lot of ground.
(The nearest .NET match to B is Blazor Server, not WASM.)
Open questions
- Git in the browser (isomorphic-git or similar) vs a server-side proxy.
- Auth: OAuth to GitHub/GitLab vs a service-hosted Git (shared with PublicTxt Web Hosting).
- Offline and sync model for the SQLite cache.
- Live collaborative editing (“Google Docs for the wiki”): worth the cost? It conflicts with Git-as-truth unless sessions commit out.
- Sanitising untrusted Markdown from followed repos.