React SDK
Full hook-based API for game state, player actions, timers, events, and session management. TypeScript-first with complete type safety.
View API reference
Create real-time multiplayer games that run on any device. No app download required.
# Scaffold a new game
npx create-leedle-game my-game
# Start the dev server with demo harness
cd my-game
npm install
npm run devThe demo harness opens at http://localhost:3001/demo with side-by-side player panels for testing multiplayer interactions.
Every Leedle game uses a host/client model. One player runs the game logic, all others send actions and receive state updates in real time.
Player A --sendAction--> Host --state update--> Player A
Player B --sendAction--> --state update--> Player B
Player C --sendAction--> --state update--> Player CThe SDK provides React hooks for the entire lifecycle: useGameState, useActions, useTimers, usePlayers, and more. Your game is a standard React app -- just add multiplayer.