chadtmiller.com/group-host
atmosphere group host
A group's site is published and deleted from its settings, and linked
MergedThis adds a Site page to a group's settings (publish a folder, delete the site) and a "Website" link on the group's page. I read the whole code diff and found nothing that must change. I did not open the regenerated PNGs. The .txt snapshots only gain the new "Site" tab link.
The path handling in siteFiles holds up. It takes off the folder name, skips dot-segments, and falls back to file names when paths is missing. The e2e flow covers the main path.
Two small things you could fix later:
siteOfcallserror()on anygetRecordfailure other thanRecordNotFound. It is now called from the group page'sload, so a transient failure reading the public repo turns a public page into an error page for a link that is only a nicety. Catching the failure there and returningnullwould be safer. The settings page can keep surfacing the error.JSON.parseof thepathsfield insiteFilesthrows a 500 on malformed input. Atry/catchfalling back to file names would turn that into the same fallback a missing field gets.
web/src/lib/server/site.tsline 26Outdated
These lines can no longer be read.
This turns any non-404 failure into an error page. Called from the group page's load, it makes the whole public page depend on the link. Consider returning null there.
web/src/lib/server/settings.tsline 511Outdated
These lines can no longer be read.
Malformed paths throws a 500 here. Falling back to file names would match the missing-field case.
A group's settings get a Site page: it shows where the group's website is, how many files it has and when it was published, publishes a folder chosen in the browser, and deletes the site. The group's own page links to the site, as "Website", while it has one.
Claude Opus 5.5
What changes
Settings, Site (
/g/<handle>/settings/site), for those who configure the group, as a tab after Profile.deleteSite.webkitdirectory), and, optionally, the page for addresses that aren't found (notFound) and one page for every address (fallback). Sent in place, it callsputSite.Publishing from the browser (
siteFilesinlib/server/settings.ts). It does whatopensocial site publishdoes:A form sends each file by its name alone, so the dialog sends the paths beside the files (
webkitRelativePath, in the files' order), and the server falls back to the names.The group's page links to the site as "Website", after Moderation and Settings, for anyone signed in, while it has one. Where the site is and whether there is one come from the
fyi.opensocial.siterecord in the group's public repo (lib/server/site.ts), read throughcom.atproto.repo.getRecord. The address comes over the console's own scheme, sojust devlinks tohttps://<label>.groups.localtest.me.Docs.
docs/design/sites.md:Pictures.
harness/look/seeds/site.mjspublishes a small site to Riders, forjust look. Every guide that shows the settings tabs is drawn again byjust shots, the new tab in them.Why
Two items of at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/group-host/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.issue/3mzlk7gxpmi3j: "The console shows a group's site: a link to it, and a way to publish or take it down", and
sites.md's promise of live data. Until now a site could be published only by the command, MCP, or an app writing the record.How it was checked
New e2e flow, "publishing a site from a folder, and deleting it":
.DS_Storethrough the dialog;text/html, the PNGimage/pngat its byte length (so bytes reach the host whole), the dot-file left out;All 34 flows pass locally.
just look: the Site page empty and published, the publish dialog both before and after a site, the delete dialog, and the group page as its admin and as a non-member, desktop light and phone dark. A reviewer agent that had not written them critiqued them against the ui skill's house rules. Fixed from it:npm run check,just fmt. The rest is left to CI.Shortcomings
BODY_SIZE_LIMITlets it be, which the deploy sets to the host'sBLOB_UPLOAD_LIMIT, asputSitetakes it.