Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Ztd Charts

БесплатноПоддерживается

36 animated, interactive React charts in pure SVG with zero runtime dependencies, a JSON spec, and CLI and MCP tools for AI agents

GitHubEmbed

Описание

36 animated, interactive React charts in pure SVG with zero runtime dependencies, a JSON spec, and CLI and MCP tools for AI agents

README

ztd charts

Animated, accessible React charts that read like a report.
36 charts in pure SVG with no runtime dependencies, and a JSON spec your AI agent can write.

npm version MIT license No runtime dependencies

Docs · Gallery · Example dashboards · Playground · 한국어

A dashboard built with ztd charts in the light theme: active users, visit to purchase, conversions, quarterly revenue, viewing hours and share price

Why ztd charts

  • Each card says one thing. One item takes the accent color and the rest stay neutral, with a bold takeaway under the chart, so a reader sees the point before reading the axes.
  • Motion that explains. Charts draw in as they scroll into view, move on from where they are when the data changes, and let you drag over a range to read its change, high and low.
  • Accessible by default. Keyboard navigation, a screen reader description and data table for every chart, reduced motion, and every label at WCAG AA contrast.
  • Small, with nothing else to install. React is the only peer dependency. A chart with the shared core is about 12 to 26 kB Brotli, and very large data switches to canvas on its own.
  • Ready for AI. Every chart is also a JSON spec with a public JSON Schema, and a CLI, an MCP server and an agent skill validate it and render it to PNG, SVG or HTML.
  • English and Korean. en-US by default. locale="ko-KR" switches number formats (1.2만, 3.4억) and chart text to Korean.

Two cards drawing in, the bar chart moving to new data from where it is, and a drag over the candlestick chart showing the change, high and low for that range

Quick start

npm i ztd-charts
import { ChartCard, PieChart } from "ztd-charts";

const sales = [
  { device: "Mobile", share: 72 },
  { device: "Desktop", share: 23 },
  { device: "Tablet", share: 5 },
];

export function SalesByDevice() {
  return (
    <ChartCard
      title="Sales by device"
      subtitle="Share of revenue (%)"
      legend={[{ label: "Mobile", color: "accent" }, { label: "Desktop", color: "ink" }, { label: "Tablet", color: "neutral" }]}
      takeaway="Mobile brings in most sales"
    >
      <PieChart data={sales} label="device" value="share" highlight="Mobile" />
    </ChartCard>
  );
}

The same chart as a JSON spec, which is what the CLI, the MCP server and an AI agent work with:

import { Chart } from "ztd-charts";

<Chart
  spec={{
    type: "pie",
    data: sales,
    encoding: { label: "device", value: "share" },
    options: { highlight: "Mobile" },
  }}
/>;

36 charts

All 36 charts in the light theme, from pie and donut to histogram and scatter plot

Group Charts
Proportion Pie · Donut · Waffle · Marimekko · Segmented bar
Hierarchy Treemap · Sunburst
Flow Funnel · Sankey · Chord
Comparison Bar · Waterfall · Pareto · Radar · Slope · Dumbbell · Lollipop
Trend Line (range band too) · Area · Streamgraph · Sparkline · Calendar heatmap · Bump · Candlestick · Skyline
Distribution Box plot (violin too) · Beeswarm · Ridgeline · Histogram
Relationship Heatmap · Bubble · Scatter · Parallel coordinates
KPI Gauge · Bullet · Radial bar

Each chart has a page with a live demo, its props and copyable code in the gallery. Why each one made the cut, and what was left out, is in the chart catalog.

Use it with AI

# Add the MCP server to Claude Code (Cursor and Claude Desktop are in the guide)
claude mcp add ztd-charts -- npx -y ztd-charts-mcp

# Chart ideas and ready specs from your data, then a PNG
npx ztd-charts-cli suggest sales.csv --out-dir charts
npx ztd-charts-cli render donut.json --out donut.png --theme light --scale 2

The MCP server lists charts, returns a chart's schema and example, validates a spec with suggestions for wrong fields, renders it to PNG, SVG and React code, and suggests charts from CSV, rows or a URL. The agent skill walks an agent from picking a chart to a checked preview, and llms.txt gives a model the whole library in one file.

Packages

Package What it is
ztd-charts The React charts, cards, grid, themes and data hooks, plus spec tools (ztd-charts/spec) and server rendering (ztd-charts/server)
ztd-charts-cli List, validate, render, start a project and suggest charts from the terminal
ztd-charts-mcp An MCP server with five chart tools for AI agents

Learn more

  • Guide: common props, cards and grid, theme tokens, animation and interaction, accessibility, connecting data (REST, CSV, Supabase, Google Sheets, Postgres), the JSON spec, the CLI, the MCP server and development
  • Docs site: every chart with a live demo, five example dashboards, data connection and a playground
  • QA report: screenshots, contrast, frame rate, a 10,000-point stress test and bundle sizes
  • Coming from @junhanlee/chart-kit? See Migrating.

License

MIT. Every number in the examples is made up.

from github.com/Junhan2/ztd-charts

Установить Ztd Charts в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install ztd-charts

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add ztd-charts -- npx -y ztd-charts

Пошаговые гайды: как установить Ztd Charts

FAQ

Ztd Charts MCP бесплатный?

Да, Ztd Charts MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Ztd Charts?

Нет, Ztd Charts работает без API-ключей и переменных окружения.

Ztd Charts — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Ztd Charts в Claude Desktop, Claude Code или Cursor?

Открой Ztd Charts на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Opencode Omniroute Plugin

OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc

GitHub Actionsавтор: GitHub Actions
80

Roblox Studio

Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce

paralovавтор: paralov

Antigravity Drawio

MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.

S-SUJAN-Sавтор: S-SUJAN-S

Fetch

Web content fetching and conversion for efficient LLM usage.

автор: Community

AWS KB Retrieval

Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.

modelcontextprotocolавтор: modelcontextprotocol

Spring AI MCP Server

Provides auto-configuration for setting up an MCP server in Spring Boot applications.

автор: Community

llm-analysis-assistant

A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also

xuzexin-hzавтор: xuzexin-hz

MCP-Agent

A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)

lastmile-aiавтор: lastmile-ai

Spring AI MCP Client

Provides auto-configuration for MCP client functionality in Spring Boot applications.

автор: Community

mcp.natoma.ai

A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)

автор: Community

Compare Ztd Charts with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai