npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bek-ui/charts

v1.0.0-beta.2

Published

BEK Design System charts and diagrams — 69 SVG React components on @bek-ui/tokens

Readme

@bek-ui/charts

BEK Design System chartlari va diagrammalari — Figma 4.18 Chart va 4.19 Diagram sahifalarining React (SVG) nusxasi. Ranglar va o'lchamlar faqat @bek-ui/tokens dan (--bek-dataviz-*, --bek-chart-*); geometriyani d3 modullari hisoblaydi (d3-scale, d3-shape, d3-array), chizish va uslub — BEK.

Ishlatish

import '@bek-ui/tokens/tokens.css';
import '@bek-ui/react/styles.css';
import '@bek-ui/charts/styles.css';
import { ChartCard, ChartContainer, LineChart, formatNumber } from '@bek-ui/charts';
  • Responsiv: chart SVG koordinatalarini width / height raqamlarida chizadi; ChartContainer konteyner enini o'lchab (ResizeObserver) beradi — geometriya cho'zilmaydi (Figma CMP-11).
  • Client/Server: ChartContainer (render-prop) va LineChart (formatValue, formatLabel funksiyalari) — client komponentlar: ularni client fayl ichida ishlating; Server Component'dan faqat seriyalanadigan prop'lar bilan chaqiring.
  • Format uz-UZ: formatNumber(12400) → 12 400, formatNumber(4820000, { compact: true }) → 4,8 mln, formatPercent(-3.1, { signed: true }) → −3,1% (haqiqiy minus).
  • Ranglar: seriesColor(i) → dataviz/categorical/0i; matnli heatmap kataklari faqat textCellLevel() dagi 200 · 300 · 600 · 700 darajalarda (CMP-07).
  • A11y: har chart role="img" + label (qisqa xulosa) va ko'rinmas ma'lumot jadvali; rang yolg'iz ma'no tashimaydi.
  • Dark: alohida yozilmaydi — tokenlar data-theme="dark" da almashadi.
  • Motion: animatsiyali chartlar (RaceChart, DrawTheLine, Pictogram animate) prefers-reduced-motion ni hurmat qiladi — tween yo'q, holatlar qadam bilan.
  • Map data: svg-maps (https://github.com/VictorCazanave/svg-maps), CC BY 4.0 — RegionMap geometriyasi (soddalashtirilgan, ISO 3166-2:UZ id'lar); o'zgarishlar — LICENSE-ASSETS.md.

Komponentlar

| Komponent | Figma sahifasi | Hujjat | | ---------------------------- | ------------------------------- | ----------------------------------------------------- | | LegendItem · ChartLegend | 4.18 Chart · Legend item | README | | ChartTooltip | 4.18 Chart · Tooltip | README | | Delta | 4.18 Chart · Delta | README | | Sparkline | 4.18 Chart · Sparkline | README | | BarChart | 4.18 Chart · Bar | README | | LineChart | 4.18 Chart · Line | README | | DonutChart | 4.18 Chart · Donut | README | | ChartCard | 4.18 Chart · Card | README | | KpiCard | 4.18 Chart · KPI card | README | | LollipopChart | 4.18 Chart · Lollipop | README | | DumbbellChart | 4.18 Chart · Dumbbell | README | | BulletChart | 4.18 Chart · Bullet | README | | RadialBarChart | 4.18 Chart · Radial bar | README | | BumpChart | 4.18 Chart · Bump | README | | SlopeChart | 4.18 Chart · Slope | README | | ChartInsight | 4.18 Chart · AI insight | README | | ChartPoint | 4.18 Chart · Data point | README | | ChartAxis | 4.18 Chart · Axis | README | | ChartGridLine | 4.18 Chart · Grid line | README | | ChartAnnotation | 4.18 Chart · Annotation | README | | ChartCrosshair | 4.18 Chart · Crosshair | README | | ChartPredictionZone | 4.18 Chart · Prediction zone | README | | ChartBrush | 4.18 Chart · Range brush | README | | LiveChart | 4.18 Chart · Live | README | | CalendarHeatmap | 4.18 Chart · Calendar heatmap | README | | TreemapChart | 4.18 Chart · Treemap | README | | WaffleChart | 4.18 Chart · Waffle | README | | FunnelChart | 4.18 Chart · Funnel | README | | WaterfallChart | 4.18 Chart · Waterfall | README | | SankeyChart | 4.18 Chart · Sankey | README | | RadarChart | 4.18 Chart · Radar | README | | ScatterChart | 4.18 Chart · Scatter | README | | BeeswarmChart | 4.18 Chart · Beeswarm | README | | NetworkGraph | 4.18 Chart · Network graph | README | | CandlestickChart | 4.18 Chart · Candlestick | README | | CohortHeatmap | 4.18 Chart · Cohort heatmap | README | | GaugeChart | 4.18 Chart · Gauge | README | | ForecastChart | 4.18 Chart · Forecast | README | | AnomalyChart | 4.18 Chart · Anomaly | README | | ConfidenceMeter | 4.18 Chart · Confidence meter | README | | UsageMeter | 4.18 Chart · Usage meter | README | | GeneratedChart | 4.18 Chart · Generated chart | README | | FeatureImportance | 4.18 Chart · Feature importance | README | | ClusterMap | 4.18 Chart · Cluster map | README | | ModelComparison | 4.18 Chart · Model comparison | README | | DiagramNode | 4.19 Diagram · Node | README | | DiagramConnector | 4.19 Diagram · Connector | README | | AgentNode | 4.19 Diagram · Agent node | README | | OrgCard | 4.19 Diagram · Org card | README | | Timeline · TimelineItem | 4.19 Diagram · Timeline item | README | | MarimekkoChart | 4.18 Chart · Marimekko | README | | CirclePacking | 4.18 Chart · Circle packing | README | | ChordDiagram | 4.18 Chart · Chord | README | | ConfusionMatrix | 4.18 Chart · Confusion matrix | README | | BoxPlot | 4.18 Chart · Box plot | README | | RidgelineChart | 4.18 Chart · Ridgeline | README | | Streamgraph | 4.18 Chart · Streamgraph | README | | HorizonChart | 4.18 Chart · Horizon | README | | MindMap | 4.19 Diagram · Mind map | README | | JourneyMap | 4.19 Diagram · User journey map | README | | Swimlane | 4.19 Diagram · Swimlane | README | | RegionMap | 4.18 Chart · Map | README | | RaceChart | 4.18 Chart · Race | README | | DrawTheLine | 4.18 Chart · Draw the line | README | | SurveyChart | 4.18 Chart · Survey | README | | Pictogram | 4.18 Chart · Pictogram | README | | Gantt | 4.18 Chart · Gantt | README | | NumberTicker · Countdown | 4.18 Chart · Number ticker | README | | DataExplorer | 4.18 Chart · Data explorer | README |