Moments turns any moment in your web game into a link. A friend taps it in WhatsApp or X and plays that exact moment in their browser, with the same luck, then sends it back.
No download for players. No server for you. One script and three small functions, which Claude can write for you.
Block Moments: I scored +40 in 3 moves 🎮 Bet you can't beat it.
The SDK quietly keeps the last few seconds of play as game state, not video. That's why the link can drop your friend into the real game at that exact instant.
Something great happens: a triple combo, a near miss, a heartbreaking loss. Your game calls Moments.highlight() and the player gets a nudge to share.
One tap makes a link with a preview of that moment. WhatsApp, X, Discord or iMessage show who sent it and the score to beat.
Same board, same enemies, same luck. 3, 2, 1, go. Beat the score, send it back, or keep playing the full game.
Moments is built to be added by Claude, Cursor or any coding agent. The guide tells the agent exactly what to write, and a built-in self-test tells it exactly what to fix.
Canvas, WebGL, Three.js, Phaser, PixiJS, Kaplay, plain JavaScript or HTML. Games on requestAnimationFrame or timers.
Randomness and the clock are recorded with the moment, so the friend faces exactly what you faced, on any device.
Open your game with ?moments-selftest. It replays the same second twice and names the exact field that's missing.
The moment runs in the friend's own browser. You host your game wherever you like; Moments hosts the links and previews.