SuperAPIAI Directory

klar

github.com · AI coding

klar is a free and open-source React chart component library offering 125 hand-written pure SVG charts with no dependency on any underlying chart library. It covers common line, bar, area, pie, and funnel charts, and also includes specialized charts such as candlestick with volume, order book depth, yield curves, volatility surfaces, Kaplan–Meier survival curves, forest plots, volcano plots, Manhattan plots, PCA biplots, SPC control charts, IBCS difference charts, spectrograms, flame graphs, chord diagrams, and Sankey diagrams. All charts support light and dark themes, toggled via a single prop, and design tokens are scoped within ThemeScope, without affecting other parts of the application or the shadcn/ui theme. Components include built-in keyboard navigation, screen reader descriptions, a data table view, and SVG/PNG/CSV export. They can be installed via npm, the shadcn CLI, or an AI assistant (MCP), or the source code of a single chart can be copied into a project. The project is MIT licensed, and the companies, people, and numbers in the examples are fictional.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

klar is a chart component library for React, whose core feature is that all charts are implemented in hand-written pure SVG, without relying on D3, Recharts, or Canvas frameworks—it renders exactly what is installed. The project is free and open-source under the MIT license.

Purpose: to provide ready-to-use chart components for React applications, especially suited to scenarios requiring specialized charts for finance, statistics, science, and operations.

Main capabilities: provides 125 charts, including everyday line, bar, area, pie, and funnel charts, as well as candlestick with volume charts, order book depth charts, yield curves, volatility surfaces, Kaplan–Meier survival curves (with log-rank test), forest plots, volcano plots, Manhattan plots, PCA biplots, dose-response fits, SPC control charts, IBCS difference charts, forecast bands, spectrograms, flame graphs, dependency Gantt charts, chord diagrams, Sankey diagrams, and more. There are also 42 charts drawn for example dashboards, such as Sankey diagrams, hex maps, swimlane charts, cohort triangle charts, stream graphs, and more. All charts support light and dark themes, toggled via a single prop; design tokens are scoped within ThemeScope and do not affect other parts of the application or the shadcn/ui theme. Components include built-in keyboard navigation, screen reader descriptions, a data table view, and SVG/PNG/CSV export.

Usage: can be installed via npm, or the shadcn CLI can be used to copy a single chart and its dependency files into the components/klar/ directory, for example @klar/dashboard-halo installs an entire dashboard. It can also be installed via an AI assistant (MCP), supporting MCP clients such as Cursor, VS Code, Windsurf, and Claude Desktop; after installation, charts can be added via natural language requests. The project also provides 12 complete example dashboards, including layout, navigation, and sample data, whose data can be replaced after installing the source code.

Use cases: React projects requiring specialized statistical or financial charts, front-end applications wishing to avoid heavy chart library dependencies, dashboards requiring light and dark themes and accessibility support, and development workflows wishing to quickly add charts via an AI assistant.

Limitations: the materials do not provide details such as specific browser compatibility, performance metrics, depth of chart customization, or server-side rendering support, so these are not yet available. The companies, people, and numbers in the examples are fictional.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools