Languages & Frameworks
Next.js
The Rivet Next.js client allows you to connect to and interact with actors in Next.js applications.
View Example on GitHub
Check out the complete example
View the backend integration
Use Next.js API routes to run RivetKit Registry
Getting Started
See the Next.js quickstart guide for getting started.
API Reference
Package: @rivetkit/next-js
See the full Next.js API documentation at rivetkit.org/docs/actors/clients.
The Next.js client uses the same hooks as the React client:
RivetKitProvider- React context provideruseActor- React hook for actor instancescreateClient- Create a clientClient- Client typeActorHandle- Handle for interacting with actorsActorConn- Connection to actors