百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

flitter

> 开发工具
开源

JavaScript 渲染引擎受 Flutter 启发。使用可组合的小组件和 Canvas/SVG 构建任何可视化内容 — 图表、图示、编辑器。

393 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

JavaScript 渲染引擎受 Flutter 启发。使用可组合的小组件和 Canvas/SVG 构建任何可视化内容 — 图表、图示、编辑器。

Flitter

A JavaScript rendering engine inspired by Flutter.

Build any visualization library — charts, diagrams, editors — with widget composition.

Documentation · Chart Gallery · Discord


What is Flitter?

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:

  • Render Object Tree — efficient rendering through a tree-based layout engine, with optimized updates that only repaint what changed.
  • Declarative Widgets — Flutter-style widget composition (Container, Stack, Column, Row, Text, ...) for building any visual structure.
  • Dual Renderer — choose SVG or Canvas per use case. Switch seamlessly between vector and bitmap graphics.
  • Constraint-based Layout — familiar box model layout with automatic size negotiation between parent and child.
  • Built-in Animation — animation controllers, curves, and tweens for smooth interactive graphics.

The first library built on Flitter is a chart library — but the engine is designed for anything visual.

Showcase

Charts — built on Flitter

20+ chart types, two visual styles, fully composable. Every axis, bar, tooltip, and legend is a widget you can swap.

&nbsp;

Bar · Line · Area · Pie · Donut · Radar · Scatter · Bubble · Heatmap · Treemap · Stacked Bar · Stacked Area · Box Plot · Candlestick · Waterfall · Funnel · Histogram · Sankey · Sunburst · Bullet

Diagrams — built on Flitter

Interactive ERD editor with draggable entities, real-time relationship rendering, and live code-to-diagram synchronization.

Quick Start

Install a chart in seconds

bash
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.

Use in React

bash
npm install flitter-ui @flitterjs/react
typescript
import 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 ;
}

Use in Svelte

bash
npm install flitter-ui @flitterjs/svelte
svelte

Use with Vanilla JS

bash
npm install flitter-ui
javascript
import { 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" }),
    }),
  })
);

How It Works — Widget Composition

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.

Packages

Package Description Version
flitter-ui Core engine + CLI
@flitterjs/react React integration
@flitterjs/svelte Svelte integration (SSR supported)

LLM Native

Feed your AI assistant the chart documentation and let it generate charts for you:

https://ui.flitter.dev/llm/chart.md

Documentation

Full documentation, interactive examples, and API reference at ui.flitter.dev.

Contributing

Flitter is open source. Bug reports, feature suggestions, and pull requests are welcome.

  • Discord
  • GitHub Issues

License

MIT

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptcanvaschartchartsdata-visualization

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具