Building Pay-As-You-Go apps with Next.js, Unkey and Supabase
A starter template for building Pay-As-You-Go apps with Next.js, Unkey and Supabase
Features · Clone and run locally · More Examples
Clone the repository
1git clone git@github.com:unrenamed/unkey-nextjs-pay-as-you-go2cd unkey-nextjs-pay-as-you-go
Install the dependencies
1pnpm install
Use .env.example
to create .env.local
file and update the following:
1NEXT_PUBLIC_SUPABASE_URL=your-project-url2NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key3SUPABASE_SERVICE_ROLE_KEY=your-serice-role-key4UNKEY_ROOT_KEY=your-unkey-root-key5UNKEY_API_ID=your-unkey-api-id6CRON_SECRET=your-cron-secret
You will find more info about where to get each variable in the file.
You can now run the Next.js local development server:
1pnpm dev
The starter kit should now be running on localhost:3000.
2500 verifications and 100K successful rate‑limited requests per month. No CC required.