Features
- Next.js 15 integration: Use RivetKit with Next.js App Router and server actions
- Real-time updates: Counter values synchronized across all connected clients
- Actor state management: Persistent counter state managed by Rivet Actors
- Multiple actor instances: Each counter ID creates a separate actor instance
Implementation
This example demonstrates minimal Next.js integration with Rivet Actors:
- Actor Definition (
src/backend/registry.ts): Simple counter actor integrated with Next.js App Router
Resources
Read more about Next.js integration, actions, state, and events.

