StealThis .dev
Pages Hard

SaaS — SaaS Metrics (MRR · Churn · LTV)

An investor-grade SaaS metrics dashboard built with vanilla HTML, CSS, and JavaScript. Headline cards surface MRR, ARR, churn, LTV, and net revenue retention with colored delta pills, beside an MRR-movement bar chart that stacks new, expansion, and churned revenue. A growth area chart, a cohort-retention heatmap, and a plan-mix donut complete the view. A 30d, 90d, and 12m period switch recomputes every figure and redraws all charts live, with hover tooltips, theme toggle, and keyboard support.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

SaaS Metrics (MRR · Churn · LTV)

A board-ready metrics console for a fictional analytics product, Meridian. Five headline cards lead with MRR, ARR, gross churn, customer LTV, and net revenue retention — each carrying a colored delta pill against the prior period. Below them, an MRR-movement chart stacks new, expansion, and churned revenue as inline SVG bars, a growth area chart traces recurring revenue over time, a cohort-retention heatmap grades monthly survival, and a plan-mix donut breaks revenue down by tier.

The 30d / 90d / 12m period switch is the core interaction: choosing a window deterministically recomputes every headline figure and delta, then redraws the movement bars, growth area, heatmap, and donut in place. Hovering any chart snaps a tooltip to the nearest data point, and a working light/dark theme toggle repaints the whole shell and its charts.

Everything is self-contained vanilla JS — inline SVG charts only, no frameworks, no build, no external images — with landmark roles, aria states, focus-visible rings, and a layout that collapses to a single column on phones.

Illustrative SaaS UI only — fictional product, metrics, and billing. No real backend.