Riel St. Amand
Chartlite

active

Chartlite

An open-source SVG charting library, about 13KB gzipped with zero dependencies, that renders on the server and targets WCAG AA. Eight chart types, wrappers for React, Vue, and Svelte, and an MCP server so an agent can build a chart from a spec.

Repository
  • TypeScript
  • data visualization
  • accessibility
  • WCAG AA
  • open source

Chartlite is an open-source charting library I build and maintain. It renders charts as SVG with no runtime dependencies, comes in around 13KB gzipped, and covers eight chart types: line, bar, area, scatter, pie and donut, radial gauges, sparklines, and combo.

It renders on the server. A chart leaves @chartlite/core as static SVG with no client JavaScript, which keeps it fast and keeps it legible to a crawler or a screen reader before any script runs. The output targets WCAG AA. Theming is CSS variables, so a chart inherits the palette of the page it lands on rather than carrying its own.

It is also built for agents. Charts are declared as specs backed by machine-readable schemas, and the library ships an MCP server, so a model can produce a chart by describing what it wants instead of writing rendering code.

Wrappers for React, Vue, and Svelte sit on a vanilla web component, so the same chart works with or without a framework in the stack. Install is npm i @chartlite/core, the license is MIT, and the live examples are at chartlite.dev.