
klar
io.github.klar-run/klar
Search, pick and install 125 hand-drawn React SVG charts and 12 dashboards into your app.
Documentation
Klar
125 React charts, drawn by hand in plain SVG.
No chart library underneath. Light and dark. Free and open source.
Website: https://klar.run
Chart atlas · Docs · Dashboards · Use with AI
Why Klar
- The charts other libraries don't have. Candlestick with volume, order-book depth, yield curve, volatility surface, Kaplan–Meier with log-rank test, forest plot, volcano and Manhattan plots, PCA biplot, dose–response fits, SPC control charts, IBCS variance charts, forecast bands, spectrogram, flame graph, dependency Gantt, chord, Sankey and more, next to the everyday line, bar, area, pie and funnel.
- Zero chart dependencies. Every chart is hand-written SVG in React: no D3, no Recharts, no canvas framework. What you install is what renders.
- Light and dark, one prop. Design tokens are scoped to
<ThemeScope>, so they never touch the rest of your app or your shadcn/ui theme. - Accessible and exportable. Keyboard navigation, screen-reader descriptions, data-table views, and SVG/PNG/CSV export built in.
- Yours to own. Import from npm, or copy any chart's source into your project with the shadcn CLI.
- Built for AI assistants. An MCP server and a Claude Code plugin let your coding assistant pick the right chart for your data and install it.
![]() | ![]() |
![]() | ![]() |
![]() | ![]() |
Install
Pick the way that fits your project. All three install the same charts.
npm
npm i klar-charts
import 'klar-charts/styles.css' // or, with Tailwind v4: @import 'klar-charts/tailwind.css';
import { ThemeScope, LineChart } from 'klar-charts'
export function Revenue() {
return (
<ThemeScope theme="light" accent="#3366ff">
<LineChart
x={['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']}
series={[{ id: 'mrr', label: 'MRR', values: [42, 47, 51, 58, 63, 71] }]}
unit="currency"
ariaLabel="Monthly recurring revenue"
/>
</ThemeScope>
)
}
shadcn
Copies one chart, and only the files it needs, into components/klar/:
npx shadcn@latest add https://klar.run/r/fin-candlestick.json
Every chart page in the atlas shows its command. Whole dashboards install the
same way, e.g. https://klar.run/r/dashboard-halo.json.
Your AI assistant (MCP)
# Claude Code
claude mcp add klar -- npx -y klar-mcp
# or as a plugin, with a Klar skill included
/plugin install klar --marketplace klar-run/klar
Works with Cursor, VS Code, Windsurf, Claude Desktop and any MCP client. Then just ask: "add a Kaplan–Meier chart of survival by arm to the trial page". Setup for every tool →
Twelve example dashboards
Complete dashboards built from the charts, with layout, navigation and sample data. Install one as source and swap in your data.
![]() Halo · Campaign performance | ![]() Synapse · Model operations |
![]() Meridian Freight · Control tower | ![]() Sentinel · Service health |
What's in the box
| Collection | Charts |
|---|---|
| Basics | Line, area, stacked and grouped bar, pie, scatter, bubble, funnel, waterfall, box plot, timeline, KPI cards |
| Finance | Candlestick, order-book depth, yield curve, volatility surface, drawdown, correlation matrix, market treemap |
| Science | Kaplan–Meier, forest plot, volcano, Manhattan, clustered heatmap, PCA biplot, dose–response (4PL), Bland–Altman, Q–Q + ECDF, ternary, regression with bands, raincloud, hexbin, histogram + KDE, spectrogram, parallel coordinates |
| BI | Forecast band, control chart (SPC), IBCS variance, tornado, decomposition tree, horizon, quadrant matrix, bullet, bump, slope, dumbbell, Marimekko, Pareto, calendar heatmap |
| Engineering | Flame graph, Sankey, chord, network graph, dependency Gantt, radial dendrogram, wind rose |
| Kit | Sparklines, gauges, radars, rings, dot matrices, hatched columns, waffles |
Plus 42 charts drawn for the example dashboards: Sankeys, hex maps, lane maps, cohort triangles, streamgraphs and more.
Contributing
Issues and pull requests are welcome. CONTRIBUTING.md covers the repository layout, how the npm package, shadcn registry and MCP server are built, and how to run the tests.
Questions or ideas: open an issue or write to hello@qtech.ee.
License
MIT. Every company, person and number in the examples is fictional.
klar-mcpnpm install klar-mcp









