getlago/lago

Open Source Metering and Usage Based Billing API ⭐️ Consumption tracking, Subscription management, Pricing iterations, Payment orchestration & Revenue analytics

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 30 minutes ago
Added to GitGenius on April 30th, 2024
Created on February 28th, 2022
Open Issues & Pull Requests: 26 (+0)
Number of forks: 726
Total Stargazers: 10,381 (+0)
Total Subscribers: 52 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 15.0 hours
Mean response time: 48.2 days
90th percentile: 82.1 days
Tracked items: 74

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 5% of issues opened in the past year have been closed. Three people close 64% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 18
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 303 days
Stale 30+ days: 16
Stale 90+ days: 13

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • stale (18)
  • issue: enhancement (16)
  • issue: help wanted (11)
  • Github (10)
  • issue: feature request (9)
  • issue: bug (8)
  • Infrastructure (6)
  • issue: need information (4)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Lago is an open-source metering and usage-based billing API designed for product-led companies that need to track consumption and generate invoices based on real-time usage data. Written primarily in Go, the platform provides a complete billing infrastructure that handles consumption tracking, subscription management, pricing iterations, payment orchestration, and revenue analytics. The repository is classified across multiple domains including scalable systems, real-time analytics, business intelligence, data processing, and API management, reflecting its role as a comprehensive billing platform.

The core functionality centers on real-time event ingestion and aggregation for any pricing dimension, allowing companies to bill for virtually any measurable metric. Lago supports multiple pricing models including usage-based, subscription-based, and hybrid approaches. The platform is payment-agnostic, integrating with major payment gateways like Stripe, Adyen, and GoCardless. Every feature is accessible through a REST API, making it suitable for programmatic integration into existing systems. The platform includes automated invoice generation, entitlements management for feature access control tied to billing plans, cash collection with dunning and retry logic, and revenue analytics providing visibility into MRR and usage trends.

Deployment flexibility is a key design principle. Users can self-host Lago using Docker and Docker Compose for complete data control, or use Lago Cloud for faster setup without infrastructure management. The self-hosted option supports advanced configurations including S3 and GCS storage, SMTP setup, SSL, and dedicated workers for high-volume scenarios. The platform is SOC 2 Type II certified and uses ClickHouse for data processing, as indicated by the repository topics.

The codebase overlaps with contributors from other significant projects including Vitess, LiteLLM, and ComfyUI, suggesting cross-pollination with other infrastructure and data processing communities.

Lago provides SDKs for multiple languages including Node.js, Python, Ruby, and Go, along with a complete OpenAPI specification. The platform includes white-label capabilities through Lago Embedded for platforms and marketplaces, AI-powered billing intelligence, and integrations with enterprise systems like NetSuite, Xero, Salesforce, HubSpot, and Avalara. The repository is distributed under the AGPLv3 license and is backed by Y Combinator. The project maintains comprehensive documentation covering getting started, API reference, billing templates reproducing pricing models from companies like Algolia and OpenAI, development environment setup, architecture details, and monitoring with Prometheus metrics.