โš›๏ธ
๐ŸŸข LIVE deployed 2026-03-10

BONDING

Molecular Social Protocol

A multiplayer chemistry game applying Kโ‚„ impedance matching to human relationships. Every atom placed, every bond formed is a timestamped engagement event โ€” legally defensible evidence of parental presence across distance.

01. Architecture

Full-stack 3D chemistry game running entirely in the browser. The render pipeline, physics, multiplayer sync, audio, and engagement logger all execute client-side โ€” no server round-trips for gameplay.

  • โ–ธ Vite 7 + React 19 + Three.js r183 โ€” React Three Fiber 9 + drei 10 for declarative 3D scene management
  • โ–ธ Zustand v5 โ€” curried create<T>()() pattern, no middleware (breaks store signature in v5)
  • โ–ธ Tailwind v4 โ€” @import "tailwindcss" directive, not v3 plugin syntax
  • โ–ธ Multiplayer relay โ€” Cloudflare Workers KV at bonding-relay.trimtab-signal.workers.dev. localStorage mock relay for two-tab local testing when VITE_RELAY_URL is empty
  • โ–ธ 413 tests / 30 suites โ€” Vitest 4, strict TypeScript, verbatimModuleSyntax, erasableSyntaxOnly
  • โ–ธ Dev server โ€” localhost:5188 (port 5173 avoided โ€” N0 PWA service worker conflict)
  • โ–ธ 7 elements โ€” H, C, O, N, P, Ca, Bashium (Willium) โ€” custom periodic table entries with VSEPR geometry engine
  • โ–ธ ExhibitA logger โ€” 10 event types, localStorage persistence, JSON + summary export. Uses logEventA/EngagementEventA to avoid collision with legacy ledger
  • โ–ธ Bond chord audio โ€” spatial audio engine, element tone synthesis, 4 ping sounds, quest audio cues

02. Purpose & Meaning

Built for Bash's 10th birthday โ€” March 10, 2026. Designed to bridge parental distance: Dad plays alongside both kids remotely, in real time, through shared molecular construction.

Every atom placement, every bond formation, every ping is a timestamped engagement event captured by ExhibitA. This is not gamification โ€” it is a legally defensible record of parental presence.

Kโ‚„ IMPEDANCE MATCHING
4
Kโ‚„ nodes =
stable tetrahedron
150
Dunbar's
number
863
ยณยนP Larmor
frequency (Hz)

Quest chains mirror the mathematical framework: Genesis (origin bonding), Kitchen (Hโ‚‚O, everyday chemistry), Posner (Caโ‚‰(POโ‚„)โ‚† โ€” the molecule that may carry quantum cognition in biological systems).

Quest steps advance on checkpoint fire when KNOWN_MOLECULES match โ€” not on molecule completion. Three game modes: Seed (tutorial), Sprout (guided), Sapling (open). Touch-hardened for Android Chrome on 10" tablets.

Deployment
Status ๐ŸŸข LIVE
Ship date 2026-03-10
Tests 413 / 30 suites
Stack React 19 + R3F 9
Tech Stack
React 19 Three.js r183 R3F 9 Zustand v5 Tailwind v4 Vitest 4 CF Workers KV