Skip to content

Keyukemi/Billet

Repository files navigation

Billet by Lago

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.

Features

  • 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

Quick Start

  1. Start Lago (requires Docker):

    docker run -d --name lago -p 80:80 -p 3000:3000 getlago/lago:latest
  2. Configure environment:

    cp .env.example .env.local

    Add your Lago API key (found at http://localhost → Developers → API Keys).

  3. Install and run:

    npm install
    npm run dev
  4. Open http://localhost:3001 in your browser.

Tech Stack

  • Next.js 16 (App Router)
  • React 19
  • Tailwind CSS 4
  • Lago JavaScript Client

For detailed setup and architecture, see SETUP.md.

About

A demo SaaS billing app built with Next.js and Lago, featuring plans, usage-based metering, and invoices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors