examples/hello-world/README.md
A minimal example demonstrating RivetKit with a real-time counter shared across multiple clients.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/hello-world
npm install
npm run dev
@rivetkit/react for seamless React hooks integrationThis example demonstrates the core RivetKit concepts with a simple counter:
src/actors.ts): Counter actor with persistent state and broadcast eventssrc/server.ts): Minimal Hono server with RivetKit handlerfrontend/App.tsx): Counter component using useActor hook and event subscriptionsRead more about actions, state, and events.
MIT