DashboardMIT · Free

Analytics dashboard.

A reporting workflow with clear metrics, explorable charts and exact CSV export.

THE NUMBERS, WITH CONTEXT

Analytics workspace.

Daily request counts and outcomes for the selected period.

Total requests

Preparing the daily counts…

Completion rate

Calculating the proportion…

Peak day

Comparing the daily totals…

DAILY REQUESTS

Last 7 days

Loading report…

Sample data

Illustrative daily counts ending 29 Oct 2026. No analytics service is connected.

Live interface · sample data · state resets on reload

GET STARTED

Source you can customise.

Terminal
npx shadcn@latest add https://ui.bld8.dev/r/analytics-dashboard.json

Install into an existing application, or download the complete starter below.

Download the starter, unzip it and run the commands below. Choose Next.js or React + Vite. Both include the same BLD8 packages and editable source. No BLD8 npm installation is needed.

Terminal
npm install
npm run dev

Next.js opens on http://localhost:3000; Vite opens on http://127.0.0.1:5173. Use the port printed by the dev server if the default is occupied. Node 22.13+ and React 19 are used. Import AnalyticsDashboard from @bld8/blocks in your own composition.

Moving between Next.js and Vite? Keep the UI source and review the application-specific changes.

NOTES TO SELF

A clear starting point.

The default shows deterministic illustrative reports. Choose 7, 30 or 90 days, compare line/bar/area views, toggle series, explore points and open the exact data table. Total requests, completion rate and peak-day counts derive from the same records. Supply a stable loadReport(period, {signal}) callback to connect your service. The block validates matching periods, unique IDs/labels and nonnegative safe integer counts, ignores stale results and supports retry. Empty and loading reports remain explicit. CSV quotes fields and protects against spreadsheet formulas. The host owns collection, date boundaries, timezones, aggregation, authorisation and storage; no live analytics service is included.

Original BLD8 source uses MIT. Personal and commercial use are allowed; preserve the copyright, licence and applicable third-party notices when sharing source.

Licence and usage Source manifest

Public API

Generated from the same public TypeScript exports as the agent documentation. The host owns the service contracts described above.

AnalyticsDashboard

AnalyticsDashboard public properties
PropTypeDefault
classNamestring | undefined—
defaultPeriodAnalyticsPeriod | undefined'week'
loadReport((period: AnalyticsPeriod, context: { signal: AbortSignal; }) => Promise<AnalyticsReport>) | undefined

Keep the callback stable while browsing. The host owns authorisation and aggregation.

—

Tables come from the public TypeScript declarations. Related types and function parameters are shown alongside their component. A dash means no default is declared at the public function boundary.