testing lopecode as a browser substrate for ecological computing
`lopecode-substrate` is a browser-based document editor that publishes directly to the web using the AT Protocol (ATProto) — the same open protocol that powers Bluesky. There are two key files: atsw.js is a service worker and auth library. It handles OAuth and app-password authentication with your
Updated April 13, 2026
`lopecode-substrate` is a browser-based document editor that publishes directly to the web using the AT Protocol (ATProto) — the same open protocol that powers Bluesky.
There are two key files:
atsw.js is a service worker and auth library. It handles OAuth and app-password authentication with your ATProto identity, manages sessions in IndexedDB, and transparently attaches authorization headers to outbound requests to your PDS (Personal Data Server). When you log in, it resolves your handle to a DID, finds your PDS, and authenticates against it.
standard-site-document.html is the editor itself — a self-contained web component that runs entirely in the browser. It lets you write in a rich-text editor, fill in metadata (title, path, description, tags), and publish. When you hit Publish, it calls com.atproto.repo.putRecord to write a site.standard.document record to your ATProto repo on your PDS.
To publish: sign in with your Bluesky handle and an app password (created in Bluesky settings), create a Publication record once to register your site, then write and publish documents. Each document lives in your ATProto repo as a structured record. Standard.site reads those records and renders them as web pages at your domain.
Your content lives in your repo. You own it.