v0.0.9 — Gossip Protocol
Problem
All sync goes through the central server (hub-and-spoke). If the central server goes down, nodes cannot discover or sync from each other.
Acceptance Criteria
Files to create/modify
apps/api/src/lib/sync/client.ts (add multi-relay support)
apps/api/src/lib/sync/gossip.ts (NEW — peer discovery + direct sync)
apps/api/src/trpc/routers/sync.ts (return peer URLs in sync response)
apps/api/scripts/test-gossip.ts (NEW)
Test
Version bump
All package.json files: 0.0.8 to 0.0.9
v0.0.9 — Gossip Protocol
Problem
All sync goes through the central server (hub-and-spoke). If the central server goes down, nodes cannot discover or sync from each other.
Acceptance Criteria
GET /rpc/peersalready exists)Files to create/modify
apps/api/src/lib/sync/client.ts(add multi-relay support)apps/api/src/lib/sync/gossip.ts(NEW — peer discovery + direct sync)apps/api/src/trpc/routers/sync.ts(return peer URLs in sync response)apps/api/scripts/test-gossip.ts(NEW)Test
Version bump
All
package.jsonfiles:0.0.8to0.0.9