Litemetrics - White-label embedded analytics for your SaaS
Open Source Β· MIT License

Embedded analytics
for your SaaS

Open-source analytics dashboard you embed into your product. White-label, multi-tenant, self-hosted. Five lines of code.

$npm install @litemetrics/react

5 Lines

To Integrate

10

Theme Presets

Multi

Tenant

<3.5KB

Tracker

How it works

Integrate analytics in
three steps

Give your customers a full analytics dashboard. No building from scratch.

1

Install

Add the UI package to your project

npm install @litemetrics/ui
2

Wrap

Connect to your Litemetrics server

<LitemetricsProvider baseUrl="/api/stats" siteId={customerId}>
3

Render

Your customers now have analytics

<AnalyticsDashboard theme="midnight" />

That's it. Your customers now have a full analytics dashboard with charts, maps, and tables.

Features

Everything you need,
nothing you don't

Built for developers who ship analytics to their customers.

Ready-Made Dashboard

Drop a full analytics dashboard into your React app. Charts, maps, tables. All pre-built. Your customers get analytics without you building anything.

White-Label Theming

10 built-in presets. CSS custom properties for full control. Your brand colors, your dashboard. Dark mode included.

Multi-Tenant

Each customer gets their own isolated analytics. One database, zero cross-contamination. Built-in site_id isolation.

Multi-Platform

First-class SDKs for React, React Native, Next.js, Vue, and plain HTML. One API everywhere.

Lightweight

3.5KB gzipped tracker. Zero performance impact. Loads async, batches events, never blocks your UI.

Self-Hosted

ClickHouse, Postgres, or MongoDB with full feature parity. Deploy on your infra. No cookies, no third parties, GDPR-compliant by design.

Setup

Five lines. That's it.

Integrate a full analytics dashboard in under a minute.

import { LitemetricsProvider, AnalyticsDashboard } from '@litemetrics/ui';
function CustomerDashboard({ customerId }) {
return (
<LitemetricsProvider
baseUrl="/api/stats"
siteId={customerId}
>
<AnalyticsDashboard theme="midnight" />
</LitemetricsProvider>
);
}
tsx

Dashboard

This is what your
customers get

Ship this dashboard as part of your product. Fully themeable, dark mode included. No iframe. Native React components.

your-app.com/analytics

Pageviews

24,831

+12.5%

Visitors

8,492

+8.2%

Sessions

11,247

+5.1%

Events

3,104

+22.8%

Visitors Β· Last 30 Days

30D7D24H

Top Pages

/pricing3,241
/docs/getting-started2,187
/blog/privacy1,842
/features1,523

Countries

πŸ‡ΊπŸ‡ΈUnited States4,821
πŸ‡©πŸ‡ͺGermany2,103
πŸ‡¬πŸ‡§United Kingdom1,847
πŸ‡ΉπŸ‡·Turkey1,204

Browsers

Chrome58%
Safari22%
Firefox12%
Edge6%

Built in the open

Litemetrics is open source and MIT licensed. Built for SaaS developers who want to offer analytics to their customers without building from scratch. Inspect every line, contribute, or fork it entirely.

FAQ

Frequently asked questions

Everything you need to know before you embed Litemetrics.

Litemetrics is an open-source analytics SDK and dashboard you embed inside your own SaaS product. Your customers get a full pre-built analytics view (charts, maps, top pages, sessions) without you having to design or build it. The whole stack (tracker, server, query API, and dashboard) is MIT licensed and self-hosted on your infrastructure.