~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

An example app, Kicker, runs against this host in examples/kicker

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:examples/kicker

Adds examples/kicker: a skate club's members-only site, published as its group's site on the group host, with no server of its own. It is built and tested against this repository's host, so it shows end to end what an app on a group host can do: read, write, upload, report and appeal, all through the site kit.

Claude Opus 5.5 · high effort

What changes

A new example, examples/kicker. Its site (site/, Svelte) has four rooms: a board of notes, events with posters and answers, discussions with nested replies, and people with their cards. Anyone not let in sees a landing with the way in. It started as a separate commons-site repository; it now lives here and runs against this host: just host builds the host, its command and its console from this repository before each world, and harness/bootstrap.sh builds the spaces alpha at the commit harness/alpha.sh names. Its harness keeps its own world.mjs and pds.mjs, adapted from the host's, and uses the host's harness/tls-proxy.mjs.

Its look, examples/kicker/DESIGN.md. After late-80s skate magazines, Poweredge (July 1989) above all, taken minimally: the club's name as a tall condensed masthead, pale yellow on sky blue, is the one loud thing; everything else is white, one typeface (Archivo, bundled, across its widths), posters large with plain captions, and threads set as interviews. The page also lists the generated-page defaults the design stays clear of. Every value is a token in site/src/tokens.css.

A picture on a member's card. com.example.place.card takes an optional avatar blob, uploaded to the member's own PDS and read back through getSpaceBlob; People shows it, else the member's initial.

A fix in how the site writes. Records are posted to the host's page as plain data: a field kept from what a room holds was a Svelte proxy, which postMessage could not clone. Keeping a card's picture hit it, and calling off an event with a poster would have.

Around it. AGENTS.md and docs/design/README.md list examples/; .dockerignore leaves it out of the image, as its .deps and packages run to a gigabyte.

Why

An app built on the host, in this repository, keeps the site kit honest: the example's flows run a real site through OAuth at a PDS, writes in spaces, uploads, reports and appeals, against the host as it is now rather than a pinned commit of it. The pinned checkout it had before tested an old host, and needed knotless access to fetch itself.

How it was checked

  • just check in examples/kicker: svelte-check with no warnings, the view tests, and the components' layers.
  • just e2e in examples/kicker: all 9 flows, in Chromium, over the reference PDS on the spaces alpha and this host: the landing, someone not let in, pinning a note, answering an event, a card with its picture added, kept while its words change, and taken off, publishing an event with a poster, a discussion and a reply to a reply, reporting, folded and hidden notes, and an appeal reviewed in the console.
  • just look: every room and dialog drawn on a desktop in light and a phone in dark, and looked at.
  • node harness/docs.mjs: every link and anchor lands.

Shortcomings

  • No check here runs the example: the web and e2e workflows read the console, the SDK and the host, not examples/. Its formatting is oxfmt's, by the root's settings, but just fmt and CI do not cover it.
  • Its harness duplicates part of the host's (world.mjs, pds.mjs); a change to the host's world may need the same change there.
  • The type comes from a bundled Archivo, about 200 KB of fonts with the site.

Review

The design: examples/kicker/DESIGN.md, then site/src/tokens.css and site/src/app.css. The wiring to this repository: examples/kicker/Justfile and harness/bootstrap.sh.

Approved

This adds examples/kicker, a Svelte members-only site run against this repository's host. It brings its own harness, a bootstrap script, a Justfile, and one-line additions to AGENTS.md, docs/design/README.md and .dockerignore.

I found nothing that must change. These are the parts I read in full:

  • The wiring: Justfile, harness/bootstrap.sh, world.mjs, pds.mjs, dev.mjs and the e2e setup and config. It builds the host and console from this repo's paths, takes the alpha commit from harness/alpha.sh, and reuses harness/tls-proxy.mjs.
  • The site code that carries the fix: place.js, kept.svelte.js, CardDialog.svelte and People.svelte. The JSON.parse(JSON.stringify(...)) in record() is a sound fix for the proxy-clone failure, since records here are plain JSON.

I did not run it. The pull's own shortcomings note that CI does not cover examples/.

I did not read these files line by line. I trusted the pull's description of them and its own checks (just check, just e2e, just look):

  • the two lockfiles
  • app.css, tokens.css and the other Svelte components and rooms
  • seed.mjs, posters.mjs, look.mjs, layers.mjs, flows.spec.mjs
  • the lexicons
  • the example's own docs: README.md, DESIGN.md, AGENTS.md and CLAUDE.md

The duplicated world.mjs and pds.mjs will drift from the host's. That is a maintenance cost the pull already names, not a blocker.

Merged as 6668ee6