/ concept-collection / commoncall
Sign in
concept-collection / commoncall
commoncall / CLAUDE.md
3.2 KBPreviewCodeBlameHistoryRaw

CLAUDE.md#

Tips for future agents working in this repo. It borrows the p2p techniques of the sibling project commonview — read that first; this file only covers what is different here.

Architecture#

src/p2p/
  identity.ts  schnorr keypair; pubkey hex = peer ID  — ported from commonview
  nostr.ts     minimal relay client + topic scheme    — ported (adds event-id dedup)
  peer.ts      WebRTC wrapper: media tracks + a control data channel
  network.ts   the heart: presence roster + the call state machine
  settings.ts  shared per-call settings: types, quality presets, validators
src/App.tsx    join form, roster, ring/accept UI, video views

Key design decisions#

Testing#

npm run dev, then open two browsers (identity is per-browser-profile via localStorage, so two tabs in one profile are the SAME peer — use a private window or second browser). npm run build type-checks (tsc -b) and bundles.

moveopenescclose