d1a25e72f2e374dbb2f24f7e1b8f3d546f3f7a23
The /admin console now looks like the member screens instead of the dark-navy site.css back office (Marty: "the admin should be the same color as the site"). Same recipe as /tools (2026-10-08): cr.css is the design system, site.css loads inside @layer legacy so the cr tokens win, tools.css restyles the shared legacy panes, and the new admin.css does the admin-only parts. - admin.html: page wrapped in #page; the pane menu (nav.bo-menu, same data-pane buttons and ids) is a dark rail with the Collapse toggle and Site links; topbar carries the crumb, #boTitle, #chainLine readout, admin who pill and Log out; a status strip with the chain and a Central clock; the sign-in card centred on the light workspace. Inline <style> moved to admin.css; the two dark-only inline backgrounds switched to panel tokens. Cache tags: admin.css/admin.js ?v=20261012a. - admin.css: rail buttons mirror cr .rail a (wide and icon-only, phone bottom bar scrolls with icon + label), tables with mono headers and hover rows, status pills and the house tag in the light scheme, drip steps, rates and kv forms, label-wrapped inputs, blue action buttons, phone grids. - admin.js: rail collapse remembers cr.rail like the member shell, strip clock, strip chain line, error text uses var(--bad) instead of #ff8a8a. Member rail and cr-shell.js are untouched; the admin sign-in flow is the same /api/admin/auth endpoints as before. Verified locally with Playwright at 1366x900 and 390x844 on every pane plus /links as a member. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sponsor fallback never names a position the contract does not have yet: on a fresh contract the first member joins with sponsor 0 and becomes #1 (Marty's activate(1) reverted 'Unknown sponsor')
LinkSpin — site
Membership advertising with immutable on-chain settlement. Zero-dependency Node server (RM Circle pattern): static pages + JSON API + SSE ledger.
Architecture
server.js— http server: pages,/api/*,/join/<id>sponsor links, SSE feedchain.js— contract reader + persistent event indexer (free public RPCs)auth.js— SIWE wallet sign-in (EIP-4361), sessions in the volumeaccounts.js— site-side records only (free members, last-touch sponsor attribution, handles). The CHAIN is the source of truth for money/credits.public/— landing, live ledger, member area; no client libraries
Chain flip (rehearsal → mainnet)
Everything chain-specific lives in data/config.json (volume):
{contract, chainId, chainName, explorer, rpcs, deployBlock}.
Defaults point at the Amoy rehearsal deployment. Launch = deploy the
mainnet contract, wipe accounts.json/sessions.json/chain-index.json,
PATCH /api/admin/chain with the mainnet values, set rehearsal:false via
/api/admin/site. Same code, different config.
Run
PORT=3100 node server.js # DATA_DIR defaults to ./data
Admin API auth: Authorization: Bearer $ADMIN_PASSWORD.
Spec: ../CONTRACT-SPEC.md (v1.0.3-frozen). Contracts: ../contracts/.
Description
Languages
JavaScript
81.3%
HTML
13.9%
CSS
3.8%
Python
0.7%
Shell
0.3%