Features
- Next.js integration: Use RivetKit actors with Next.js App Router and server actions
- Real-time messaging: Broadcast messages to all connected clients instantly
- Persistent chat history: Message history automatically saved in actor state
- Multiple chat rooms: Each room is a separate actor instance with isolated state
Implementation
This example demonstrates using Rivet Actors with Next.js:
- Actor Definition (
src/backend/registry.ts): Defines thechatRoomactor integrated with Next.js App Router
Resources
Read more about Next.js integration, actions, state, and events.



