BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ncdai/metrics-01

Metrics 01

ncdai/metrics-01
UnverifiedBlock

A metrics section with a line chart.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/exekartik/exeKartik/main/metrics-01.json

Source

src/registry/blocks/metrics-01/metrics-01.tsxraw.githubusercontent.com/exekartik/exeKartik/main/metrics-01.json · first 6 KB
1import { format } from "date-fns"
2
3import Grid from "@/components/charts/grid"
4import LineChart, { Line } from "@/components/charts/line-chart"
5import { ChartTooltip } from "@/components/charts/tooltip"
6import {
7 Metric,
8 MetricLabel,
9 MetricValue,
10} from "@/registry/blocks/metrics-01/components/metric"
11
12export function Metrics01() {
13 return (
14 <div className="max-w-screen overflow-x-clip">
15 <div className="container mx-auto px-4">
16 <div className="border-x border-line py-8">
17 <div className="screen-line-top screen-line-bottom">
18 <h2 className="screen-line-bottom ml-4 font-heading text-3xl font-medium tracking-tight">
19 Insights
20 <sup className="top-[-0.75em] ml-1 text-sm font-medium tracking-normal text-muted-foreground">
21 ({format(new Date(data.startDate), "dd.MM")} –{" "}
22 {format(new Date(data.endDate), "dd.MM")})
23 </sup>
24 </h2>
25
26 <div className="relative">
27 <div className="pointer-events-none absolute inset-0 -z-1 grid grid-cols-2 md:grid-cols-4">
28 <div className="border-r border-line" />
29 <div className="border-r border-line max-md:hidden" />
30 <div className="border-r border-line max-md:hidden" />
31 </div>
32
33 <dl className="grid grid-cols-2 md:grid-cols-4">
34 <Metric>
35 <MetricLabel>Unique visitors</MetricLabel>
36 <MetricValue>
37 {data.summary.uniqueVisitors.toLocaleString()}
38 </MetricValue>
39 </Metric>
40
41 <Metric>
42 <MetricLabel>Sessions</MetricLabel>
43 <MetricValue>
44 {data.summary.totalSessions.toLocaleString()}
45 </MetricValue>
46 </Metric>
47
48 <Metric>
49 <MetricLabel>Views</MetricLabel>
50 <MetricValue>
51 {data.summary.totalScreenViews.toLocaleString()}
52 </MetricValue>
53 </Metric>
54
55 <Metric>
56 <MetricLabel>Session duration</MetricLabel>
57 <MetricValue>
58 {formatDuration(data.summary.avgSessionDuration)}
59 </MetricValue>
60 </Metric>
61 </dl>
62 </div>
63
64 {data.series.length > 0 ? (
65 <LineChart
66// … truncated

What it pulls in

npm packages

  • date-fns

Other registry items

  • @bklit/line-chart
  • https://chanhdai.com/r/style.json

Files it writes

  • src/registry/blocks/metrics-01/metrics-01.tsx
  • src/registry/blocks/metrics-01/components/metric.tsx

Facts

Registry
ncdai
Type
registry:block
Access
Unverified
Files written
2
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

chanhdai.com Prathamesh-exe/prathfolio on GitHub Raw registry item This item as JSON

More from ncdai

All 17 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Blog 01blog-01ncdaiBlocksUnverified1 dep · 2 files
Blog 02blog-02ncdaiBlocksUnverified1 dep · 2 files
Experience 01experience-01ncdaiBlocksUnverifiedno deps
Hero 01hero-01ncdaiBlocksUnverifiedno deps · 2 files
Login 01login-01ncdaiBlocksUnverifiedno deps · 2 files
Not Found 01not-found-01ncdaiBlocksFree3 deps · 11 files
Social Links 01social-links-01ncdaiBlocksUnverifiedno deps
Social Proof 01social-proof-01ncdaiBlocksUnverifiedno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex