bklit-ui
БесплатноБез исполняемых скриптовНе проверенInstall, compose, theme, and animate Bklit UI charts (the @bklit shadcn registry) in a React / Next.js app. Use when the user wants a chart, graph, or data…
от bklit★ 2 058 звёзд на GitHubОб этом скилле
Bklit UI
Composable React chart components (d3 + motion) distributed through the @bklit shadcn registry. shadcn add copies the source into the user's project — the user owns that code, and it is the source of truth for props.
Run the shadcn CLI with the project's package runner:
npx shadcn@latest,pnpm dlx shadcn@latest,bunx --bun shadcn@latest, oryarn dlx shadcn@latest.
Current Project Context
!`npx shadcn@latest info --json`
If the block above is empty or still shows the command (agents that do not expand ! injections), run npx shadcn@latest info --json yourself before writing code. Use it for framework, aliases (@/…), Tailwind version, and installed components.
- No
components.json? Runnpx shadcn@latest initfirst. - No
@bklitinregistries? Add"@bklit": "https://ui.bklit.com/r/{name}.json"(see installation.md), or install by URL:npx shadcn@latest add https://ui.bklit.com/r/line-chart.json.
Principles
- Install before inventing.
npx shadcn@latest add @bklit/<item>— never hand-roll SVG charts or reimplement a registry piece. - Import from the installed files, never from
@bklitui/ui/charts. That is a private monorepo package. Items install tocomponents/charts/<file>.tsx(undersrc/when the project uses it); import with the user's alias, e.g.@/components/charts/line-chart. See Imports. - Translate other libraries' words first. If the request uses Nivo, Recharts, TanStack Charts or d3 names (
groupMode,stackId,useMesh,elementType,d3.stack…), map them with the bklit-ui-vocabulary skill (references/library-crosswalk.md, including its False friends list) before choosing components. Never copy another library's prop onto a Bklit component. - Read the installed source. After
add, open the files incomponents/charts/to confirm prop names and defaults before using them. - Compose, don't flatten. Root chart →
Grid/Background→ series → axes → overlays →ChartTooltip. See composition.md. - Theme with tokens.
--chart-*variables andchartCssVars, not one-off hex values. See theming.md.
Imports
There is no barrel for component items — import each export from the file that defines it (paths relative to the components/charts/ alias):
| Import from | Exports |
|---|---|
line-chart |
LineChart, Line |
area-chart |
AreaChart, Area |
bar-chart / bar / bar-x-axis / bar-y-axis |
BarChart / Bar / BarXAxis / BarYAxis |
bar-lollipop · bar-squares |
BarLollipop · BarSquares, BarColumnTrack (installed by @bklit/bar-chart) |
sparkline |
LineSparkline, AreaSparkline, BarSparkline, useSparklineHover |
composed-chart / series-bar |
ComposedChart / SeriesBar (+ Line, Area from their charts) |
scatter-chart |
ScatterChart, Scatter |
candlestick-chart / candlestick |
CandlestickChart / Candlestick |
live-line-chart / live-line / live-x-axis / live-y-axis |
LiveLineChart / LiveLine / LiveXAxis / LiveYAxis |
pie-chart / pie-slice / pie-ticks / pie-center |
PieChart / PieSlice / PieTicks / PieCenter |
ring-chart / ring / ring-center |
RingChart / Ring / RingCenter |
radar-chart, radar-grid, radar-axis, radar-labels, radar-area |
one component each |
radial-chart, radial-bar, radial-ring-bar, radial-dot-bar, radial-line, radial-area, radial-axis, radial-scrubber, radial-center, radial-legend |
RadialChart, RadialBar, … (one component each, installed by @bklit/radial-chart) |
gauge |
Gauge (installed by @bklit/gauge-chart) |
funnel-chart |
FunnelChart |
sunburst-chart, sunburst-segment, sunburst-center, sunburst (buildArcs) … |
sunburst parts |
heatmap · choropleth · sankey |
folder index.ts re-exports every part |
grid · x-axis · y-axis · background · reference-area · projection-line · trend-line |
Grid · XAxis · YAxis · Background · ReferenceArea · ProjectionLine · TrendLine |
band · bollinger |
Band · withBollingerBands (installed by @bklit/line-chart, also @bklit/band) |
weekends · deadline |
Weekends · Deadline (date-axis shading and due-date marker) |
tooltip · legend · markers · patterns |
folder index.ts (ChartTooltip, Legend*, ChartMarkers, deprecated PatternLines etc.) |
pattern-preset · pattern-tile |
PatternPreset, renderPatternPreset, PATTERN_PRESETS · PatternTile (installed by @bklit/patterns) |
chart-context |
chartCssVars, useChart, TooltipData |
import { LineChart, Line } from "@/components/charts/line-chart";
import { Grid } from "@/components/charts/grid";
import { XAxis } from "@/components/charts/x-axis";
import { ChartTooltip } from "@/components/charts/to
Установить bklit-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(npx shadcn@latest *)Bash(pnpm dlx shadcn@latest *)Bash(bunx --bun shadcn@latest *)Bash(yarn dlx shadcn@latest *)Вложенные файлы
FAQ
Что делает скилл bklit-ui?
Install, compose, theme, and animate Bklit UI charts (the @bklit shadcn registry) in a React / Next.js app. Use when the user wants a chart, graph, or data visualization: line, area, bar, live/streaming line, composed, scatter, candlestick/OHLC, pie, ring/donut, radial bar/clock, radar, gauge, heatmap, funnel, sankey, sunburst, or choropleth/world map; a sparkline or tiny inline chart (LineSparkline, AreaSparkline, BarSparkline, useSparklineHover) for tables, KPI cards, or dense dashboards; a dashboard, analytics page, KPI or stat card; chart tooltips, crosshairs, legends, markers, reference bands, projections, trend lines, axes, or grids; or when code imports from components/charts/* or mentions @bklit/* or bklit.com. For styling vocabulary (patterns, squircle/rounded/3D bars, fades, loading looks, matching the app theme) also use bklit-ui-design. For moving from Recharts, shadcn ChartContainer, or TanStack Charts to Bklit, use bklit-ui-migrate. When the user can't name the chart or part they want, use bklit-ui-vocabulary.
Как установить скилл bklit-ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bklit-ui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic