LL

lobehub/lobe-charts

Developer tools
120ย stars Quality 38 Trend 43

๐Ÿ“Š Lobe Charts - React modern charts components built on recharts

Overview

Charts for Dashboards and Model Leaderboards Beautiful React charts for dashboards and AI benchmarks, themed with Lobe UI. Documents ยท Changelog ยท Report Bug ยท Request Feature ![][npm-release-link] ![][vercel-link] ![][discord-link] ![][npm-downloads-link] ![][github-releasedate-link] ![][github-action-test-link] ![][github-action-release-link] ![][github-contributors-link] ![][github-forks-link] ![][github-stars-link] ![][github-issues-link] ![][github-license-link] Lobe Charts (@lobehub/charts) is a React chart library for dashboards and AI products, built on recharts and designed to fit Lobe UI apps.

README

๐Ÿ’ก Why Lobe Charts?

Lobe Charts (@lobehub/charts) is a React chart library for dashboards and AI products, built on recharts and designed to fit Lobe UI apps.

  • Everything a dashboard needs - business charts, sparklines, heatmaps and status trackers in one package
  • Made for AI products - ready-made charts for model benchmarks and leaderboards, with your own brand icons
  • Fits your Lobe UI app - charts follow the Lobe UI theme, so they look consistent without extra styling
  • Simple, data-first props - pass an array of objects and choose which keys to plot
  • Fully typed - TypeScript types for every component
  • Agent-ready - coding agents can learn the library from skills.md and llms.txt

๐Ÿš€ Getting Started

$ bun add @lobehub/charts

@lobehub/ui (v6), react and react-dom (v19) are peer dependencies; install them too if your project does not have them yet. The package is ESM only.

import { LineChart } from '@lobehub/charts';

const data = [
  { date: 'Jan 22', Inverters: 2338, SolarPanels: 2890 },
  { date: 'Feb 22', Inverters: 2103, SolarPanels: 2756 },
  { date: 'Mar 22', Inverters: 2194, SolarPanels: 3322 },
];

// `index` is the x-axis key, `categories` are the series to plot
export default () => (
  
);

See the documents for every component, live demos and props.

๐Ÿค– AI-Powered Development

Lobe Charts publishes agent-readable docs, generated from the same source as the documentation site.

Resource What it is How to use it
Agent Skill - skills.md Skill entry point: setup, a recommended workflow and an index of every component page Give the URL to your agent (Cursor, Claude Code, Codex, โ€ฆ), or save it as a SKILL.md in your agentโ€™s skills folder
llms.txt - llms.txt llms.txt index of every docs page Point any llms.txt-aware tool at it
Component reference - https://charts.lobehub.com/skills/components/.md Markdown page for one component, e.g. line-chart.md Fetch it before writing code with that component

Works with Cursor, Claude Code, Codex, Windsurf, GitHub Copilot and any tool that can read a URL or llms.txt. Copy-paste prompt:

Use @lobehub/charts. Read https://charts.lobehub.com/skills.md first,
then fetch the reference page of each component you use before writing code.

[!NOTE]
There is no MCP server or skill install CLI yet; skills.md and llms.txt are the agent entry points.

๐Ÿ“– Documentation

  • Docs & live demos: charts.lobehub.com - line, area, bar, composed, donut / pie, funnel, scatter, radar, sparklines, heatmaps, trackers, benchmark charts and more
  • Changelog: CHANGELOG.md

โŒจ๏ธ Local Development

$ git clone https://github.com/lobehub/lobe-charts.git
$ cd lobe-charts
$ bun install
$ bun start

๐Ÿค Contributing

Contributions of all types are more than welcome, if you are interested in contributing code, feel free to check out our GitHub Issues to get stuck in to show us what youโ€™re made of.

๐Ÿฉท Sponsor

Every bit counts and your one-time donation sparkles in our galaxy of support! Youโ€™re a shooting star, making a swift and bright impact on our journey. Thank you for believing in us โ€“ your generosity guides us toward our mission, one brilliant flash at a time.

Credits

  • recharts -
  • tremor -
  • react-activity-calendar -

Copyright ยฉ 2023 LobeHub. This project is MIT licensed.

View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add lobehub/lobe-charts