examples/state-vercel/README.md
Note: This is the Vercel-optimized version of the state example. It uses the
hono/verceladapter and is configured for Vercel deployment.
Demonstrates persistent state management in Rivet Actors with automatic state saving and restoration.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/state
npm install
npm run dev
createState or state propertyThis example demonstrates state management in Rivet Actors with a simple counter:
src/backend/registry.ts): Defines the counter actor with a count state that persists across actor restartsRead more about state management, actions, and lifecycle hooks.
MIT