StealThis .dev

SaaS — Usage / Quota Meter

A compact, scannable usage and quota meter set for SaaS dashboards. Each metered resource (API calls, object storage, team seats, CI builds) shows used versus limit with a progress bar that shifts from brand to warn to danger as it nears the cap, plus a projected-overage note and a billing period reset countdown. A simulate-usage control ticks values upward, a smart upgrade prompt surfaces when thresholds are crossed, and a monthly/yearly toggle reframes every quota.

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

Code

Usage / Quota Meter

A trustworthy, at-a-glance panel for showing how much of a plan a workspace has consumed. Four metered resources — API calls, object storage, team seats, and CI builds — each render a value, a used/limit pair, and a colored progress bar that turns amber near the cap and red once usage is critical or over. A per-meter note does the honest math: how much headroom is left, a projected-overage warning when growth would blow past the limit, or how far over the cap you already are.

The header rolls everything up into an aggregate capacity bar, a health pill (all clear / near cap / over limit), and a reset countdown that recalculates against the next billing boundary. Click Simulate usage to watch values tick upward over a few events; as a resource crosses its warn or danger threshold, the bars recolor, the health pill updates, and a contextual upgrade prompt slides in. Toggle Monthly / Yearly to reframe every quota against the larger annual allowance.

Everything is vanilla HTML, CSS, and JavaScript — no chart libraries, no images — with keyboard-focusable controls, progressbar roles with live aria-valuenow, a polite toast, and a layout that collapses from a two-up grid to a single column on small screens.

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