examples/hello-world-vercel/README.md
Note: This is the Vercel-optimized version of the hello-world example. It uses the
hono/verceladapter and is configured for Vercel deployment.
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