A demo SaaS billing application built with Next.js and Lago (open-source billing engine). Simulates a real billing flow with plans, subscriptions, usage tracking, and invoices.
- Pricing plans: Standard ($10/mo), Premium ($20/mo), Gold ($50/mo)
- Usage-based billing: Simulate API calls ($0.01/unit) and storage ($1.00/GB)
- Invoice tracking: View generated invoices on the dashboard
- Lago integration: All billing logic handled by a local Lago instance
-
Start Lago (requires Docker):
docker run -d --name lago -p 80:80 -p 3000:3000 getlago/lago:latest
-
Configure environment:
cp .env.example .env.local
Add your Lago API key (found at http://localhost → Developers → API Keys).
-
Install and run:
npm install npm run dev
-
Open http://localhost:3001 in your browser.
- Next.js 16 (App Router)
- React 19
- Tailwind CSS 4
- Lago JavaScript Client
For detailed setup and architecture, see SETUP.md.