Front end
A client component handles loading, form submission, and error states.
Next.js 16 + Supabase
This worktree now contains a minimal App Router project with a single API route backed by Supabase. Add your environment variables, create the messages table, and the page is ready to run.
Front end
A client component handles loading, form submission, and error states.
API route
/api/messages exposes GET and POST handlers inside the App Router.
Database
Supabase stores messages in PostgreSQL and returns the newest items first.
Setup flow
.env.example to .env.local.supabase/schema.sql inside the Supabase SQL editor.npm run dev.Live demo