Try it
Open a chat in Zend, tap + → Apps → Flip.
Source
examples/coinflip in the AppKit repo.Manifest
zapp.json
flip interaction with both people and opens /coinflip/?interaction=<id>.
Page
What to notice
- No server. Both players can call
zend.randomwith the same label; the second call gets the recorded result, so neither page can reroll. - Idempotency keys like
${id}:endmake retries safe if a call times out. INTERACTION_FINISHEDmeans the flip is already resolved. The example tells the user to tap Flip again on the card.- Plain copy. Errors show “That didn’t go through. Try again.” rather than the SDK’s
message.
resolved to a serverOnly transition and let a server decide the winner. See Interactions.