A Next.js 14 App Router demo for subscription SaaS apps, with Lemon Squeezy billing, GitHub OAuth through Auth.js v5, and Postgres on Neon via Drizzle ORM. A webhook endpoint at /api/webhook processes subscription_created and subscription_updated events. The README notes that Lemon Squeezy's own Customer Portal covers the same features.
Who it is for: Developers building subscription SaaS on Next.js with Lemon Squeezy
Strengths
Auth, billing and database already wired together in one TypeScript codebase
Includes a Setup webhook action that registers the webhook via the Lemon Squeezy SDK
Drizzle with Neon serverless Postgres works with Vercel Edge Functions
MIT license
Weaknesses
Tied to Lemon Squeezy, Neon and GitHub OAuth; swapping any means rewriting code
Only handles subscription_created and subscription_updated webhook events
Local webhook testing needs a tunnel such as ngrok or LocalCan
Pinned to Next.js 14; no release is published
What it needs
TypeScript
Needs Lemon Squeezy account, Neon Postgres, GitHub OAuth app, ngrok or similar tunnel for local webhooks