Check it out, it works! Live chess matches, on nostr. Recieve notifications when being challenged, accept the challenge and start the game. Other people can view the live game by clicking the link, they don't even have to log in to Plume, they can just watch it play out. Some testing to do, but this should work. Should be able to switch devices mid game too, assuming the relays return all the events :)

Replies (5)

This has already been a thing with webxdc
JL's avatar
JL 2 weeks ago
Says note not found?
That relay assumption is where this breaks, and it is worth designing around now. Public relays keep what they choose, and a query returns a bounded slice, so a replayed game can come back half a match. Ephemeral kinds fix the traffic side, since relays may drop them right after broadcast, but then the board lives nowhere and switching devices fails. The middle ground: moves as ephemeral events for speed, plus a signed snapshot of the board every few moves, FEN and move number included. A late joiner or a second phone then rebuilds from the last snapshot instead of trusting a full history.
โ†‘