Next.js

Next.js

Minimal Next.js example demonstrating basic actor state management and real-time updates.

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:

Resources

Read more about Next.js integration, actions, state, and events.