Back to Rivet

Hello World - Supabase Functions

examples/hello-world-supabase-functions/README.md

2.3.21.0 KB
Original Source

Hello World - Supabase Functions

A minimal Rivet Actor counter running on Supabase Edge Functions with the WebAssembly runtime.

Getting Started

sh
git clone https://github.com/rivet-dev/rivet.git
cd rivet/examples/hello-world-supabase-functions
npm install
npm run dev

rivet dev runs a local Rivet engine and spawns supabase functions serve for you.

Prerequisites

Implementation

The function calls serve from @rivetkit/supabase, which loads the WebAssembly runtime and serves the Rivet handler. RIVET_ENDPOINT is the only required variable.

See supabase/functions/rivet/index.ts.

Resources

Read more about actions and state, or follow the Supabase Functions Quickstart and deploy guide.

License

MIT