examples/per-tenant-database-vercel/README.md
Note: This is the Vercel-optimized version of the per-tenant-database example. It uses the
hono/verceladapter and is configured for Vercel deployment.
Example project demonstrating per-company database isolation with Rivet Actor state.
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/per-tenant-database
npm install
npm run dev
c.state for every actor instanceaddEmployee and listProjectsThe dashboard connects to one CompanyDatabase actor per company. The actor key is the company name, and its state becomes that company database.
See the implementation in src/actors.ts and frontend/App.tsx.
Read more about state, actions, and events.
MIT