A JavaScript rendering engine inspired by Flutter. Build any visualization — charts, diagrams, editors — with composable widgets and Canvas/SVG.
A JavaScript rendering engine inspired by Flutter. Build any visualization — charts, diagrams, editors — with composable widgets and Canvas/SVG.
Flitter
A JavaScript rendering engine inspired by Flutter.
Build any visualization library — charts, diagrams, editors — with widget composition.
Documentation · Chart Gallery · Discord
Flitter is not a chart library. It is a rendering engine that lets you build chart libraries, diagram editors, and any visual interface you can imagine — all from composable widgets.
At its core, Flitter provides:
Container, Stack, Column, Row, Text, ...) for building any visual structure.The first library built on Flitter is a chart library — but the engine is designed for anything visual.
20+ chart types, two visual styles, fully composable. Every axis, bar, tooltip, and legend is a widget you can swap.
Bar · Line · Area · Pie · Donut · Radar · Scatter · Bubble · Heatmap · Treemap · Stacked Bar · Stacked Area · Box Plot · Candlestick · Waterfall · Funnel · Histogram · Sankey · Sunburst · Bullet
Interactive ERD editor with draggable entities, real-time relationship rendering, and live code-to-diagram synchronization.
npx flitter-ui init # initialize project
npx flitter-ui add bar-chart # add a chart (source code lands in your project)This is a shadcn-style workflow — you get the full source code, not a black-box dependency. Read it, modify it, learn from it.
npm install flitter-ui @flitterjs/reactimport Widget from "@flitterjs/react";
import BarChart from "./charts/bar-chart";
const chart = BarChart({
data: {
labels: ["Jan", "Feb", "Mar", "Apr"],
datasets: [{ legend: "Revenue", values: [40, 65, 50, 80] }],
},
});
export default function App() {
return ;
}npm install flitter-ui @flitterjs/sveltenpm install flitter-uiimport { Container, Alignment, Text, TextStyle, AppRunner } from "flitter-ui";
const app = new AppRunner({
view: document.querySelector("#view"),
});
app.onMount({
resizeTarget: document.querySelector("#container"),
});
app.runApp(
Container({
alignment: Alignment.center,
color: "lightblue",
child: Text("Hello, Flitter!", {
style: new TextStyle({ fontSize: 24, fontWeight: "bold" }),
}),
})
);Flitter follows Flutter's widget composition model. Everything is a widget, and complex UIs are built by nesting simple widgets:
…This is the same composition model used inside Flitter's chart library. Every chart is just a tree of widgets — and you can swap any piece.
| Package | Description | Version |
|---|---|---|
flitter-ui |
Core engine + CLI | |
@flitterjs/react |
React integration | |
@flitterjs/svelte |
Svelte integration (SSR supported) |
Feed your AI assistant the chart documentation and let it generate charts for you:
https://ui.flitter.dev/llm/chart.mdFull documentation, interactive examples, and API reference at ui.flitter.dev.
Flitter is open source. Bug reports, feature suggestions, and pull requests are welcome.
No open issues yet, or sync has not completed.