Search

Search components and blocks

Sign in

Analytics Blocks

Dashboards and trackers that make numbers easy to scan.

Analytics Tracker

Open page

A four-metric site tracker covering API uptime, SEO score, visitors and error budget. Each card pairs a count-up number and a trend chip with a bar of fine ticks that recolor left to right to show progress against target. A 24h / 7d / 30d switcher (sliding pill) swaps the readings: numbers roll from their previous value, ticks re-sweep, and chips pop in. Cards enter with a staggered blur-in and lift on hover.

pnpm dlx shadcn@latest add @ditherui/analytics-tracker

Site tracker

API, SEO and traffic at a glance

API uptime0.03%

0.00%

2.9M requests
SEO score5%

0/100

5 issues open
Visitors3.1%

0.0K

of 70K weekly goal
Error budget left8%

0%

6.2 min downtime

Install

$ pnpm dlx shadcn@latest add @ditherui/analytics-tracker

Props

className / ...div propsReact.ComponentProps<"div">—

Stat Number Cards

Open page

Four headline numbers in a single row (two-by-two on medium widths, one column on phones). Each card pairs a large count-up figure with a trend arrow and a sparkline that draws itself in, then fills with a soft tint. Cards enter with a staggered spring, lift on hover, and the trend arrow nudges forward.

pnpm dlx shadcn@latest add @ditherui/stat-number-cards
Revenue12.4%

$0.0K

Active users8.1%

0

Conversion2.3%

0.0%

Orders5.6%

0

Install

$ pnpm dlx shadcn@latest add @ditherui/stat-number-cards

Props

className / ...div propsHTMLMotionProps<"div">—

API Uptime Dashboard

ProOpen page

A complete monitoring screen for one story: is the API up, where is the traffic, and which endpoints are hurting. A breadcrumb with a pulsing Production dot, a 1h / 24h / 7d range switcher (morph tabs) and a Live toggle sit above three cards. Uptime shows a count-up percentage over a 60-day status strip whose bars grow in sequence and dim around the hovered day. Traffic by region is a donut that draws itself, with a legend that spotlights a segment and swaps the centre readout. Latency tracks p95 against Fast / Slow / Critical zones with a spring-driven marker that moves on every live tick. The Endpoint Explorer below filters with morph tabs, slides rows in and out, and exports through a confirm-swap button.

pnpm dlx shadcn@latest add @ditherui/api-uptime-dashboard
UptimeSLA 99.9%

0.00%

0.04%
Last 60 days1 incident
Traffic by region

Requests

868k

  • US East47%
  • EU West27%
  • Asia Pacific18%
  • South America7%
Latencyp95

0ms

2%
FastSlowCritical

Endpoint explorer

7 visible · 2 degraded · 1 down

EndpointStatusUptime
GET/v1/usersHealthy99.99%
POST/v1/ordersHealthy99.97%
GET/v1/searchDegraded99.41%
POST/v1/paymentsHealthy99.98%
GET/v1/reportsDown96.42%
PUT/v1/profileHealthy99.95%
GET/v1/webhooksDegraded99.62%

Props

className / ...div propsReact.ComponentProps<"div">—

Funnel Analytics

ProOpen page

A five-stage signup funnel (Visited to Retained) drawn as columns joined by translucent ribbons, so drop-off reads as a shape, not just a number. Bars grow from the baseline in sequence, counts roll up, and a drop-off chip sits on each ribbon. Hovering a stage spotlights it and its neighbouring ribbons while dimming the rest. The morph tabs switch the traffic source (All, Organic, Paid, Referral): bars and ribbons spring to their new heights, and the summary tiles below recompute overall conversion, the biggest drop-off and the best-retaining stage.

pnpm dlx shadcn@latest add @ditherui/funnel-analytics

Signup funnel

From first visit to retained customer

−60%−40%−70%−30%

Visited

0

100%

Signed up

0

40%

Activated

0

24%

Subscribed

0

7%

Retained

0

5%

Overall conversion

5.0%

Biggest drop-off

Activated → Subscribed (−70%)

Best stage

Retained

Props

className / ...div propsReact.ComponentProps<"div">—

Suggested components