Flint-chart: AI-Powered Visualization Language for Expressive Charts
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
Flint-chart is a powerful visualization language designed for AI agents, enabling them to reliably create expressive and visually appealing charts. It translates simple, human-editable chart specifications into native outputs for various backends like Vega-Lite, ECharts, Chart.js, Plotly, and Excel, supporting formal visual themes. This project simplifies complex data visualization tasks, making them accessible and consistent across different platforms.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
Flint is a visualization intermediate language that empowers AI agents to transform simple, human-editable chart specifications into expressive, polished visualizations. Instead of requiring agents to hardcode verbose parameters for scales, axes, spacing, labels, and layout, Flint derives these decisions from a high-level semantic specification, the data, and an optional visual theme. A compact spec compiles to native Vega-Lite, ECharts, Chart.js, Plotly, or editable Excel charts.
This repository contains two main components:
flint-chart: A JavaScript/TypeScript library that compiles Flint input into various visualization backend outputs.flint-chart-mcp: An MCP (Model Context Protocol) server that allows agents to create, validate, and render charts directly from a chat or coding environment.
Why use and advantages
Flint-chart offers several key advantages for developers and AI agents working with data visualization:
- Semantic chart specs: Flint captures the meaning of each field using over 70 semantic types, such as
Rank,Temperature,Price, orCountry, leading to more intelligent chart generation. - Automatic layout: The library intelligently adapts sizing, spacing, labels, marks, and legends based on data cardinality, chart design, and canvas constraints.
- Formal visual themes: Define layout behavior, semantic presentation, and visual identity once, then apply them consistently across an entire chart library using presets, custom
ThemeSpec, or inherited themes. - Multiple backends: Compile a single input specification to backend-native output across Vega-Lite, ECharts, Chart.js, Plotly, and native Excel charts, offering unparalleled flexibility.
- Agent-ready chart authoring: The MCP server provides AI agents with Flint tools and chart guidance, enabling them to choose templates, validate them, and open interactive chart views in MCP-capable clients like GitHub Copilot in VS Code and Claude.
Installation
To integrate Flint into your project or use it with an agent, follow these installation steps:
# Use Flint in your JavaScript/TypeScript codebase
npm install flint-chart
# For agents and MCP clients
npx -y flint-chart-mcp
Examples
Flint-chart provides a straightforward API for assembling charts. Here's how you can use it as a library:
import { assembleVegaLite } from 'flint-chart';
const spec = assembleVegaLite({
data: { values: myData },
semantic_types: { weight: 'Quantity', mpg: 'Quantity', origin: 'Country' },
chart_spec: {
chartType: 'Scatter Plot',
encodings: { x: { field: 'weight' }, y: { field: 'mpg' }, color: { field: 'origin' } },
baseSize: { width: 400, height: 300 },
},
});
// ? a ready-to-render Vega-Lite spec
You can easily swap the backend without changing the input shape:
import { assembleECharts, assembleChartjs, assemblePlotly, assembleExcel } from 'flint-chart';
const echartsOption = assembleECharts(input);
const chartjsConfig = assembleChartjs(input);
const plotlyFigure = assemblePlotly(input);
const excelArtifact = assembleExcel(input);
Applying visual themes is also simple. You can use one of Flint's ten built-in presets:
const themedSpec = assembleVegaLite({
...input,
theme_spec: 'economist',
});
Or inherit a preset and override specific branding decisions:
const brandedSpec = assembleVegaLite({
...input,
theme_spec: {
extends: 'economist',
id: 'our-brand',
ink: {
series: { single: '#6b3fa0' },
},
},
});
Links
For more detailed information, examples, and documentation, please visit the official resources:
Related repositories
Similar repositories that may be relevant next.
awesome-grok-bot: A Curated List of Grok Bot Resources and Tools
August 31, 2026
The `awesome-grok-bot` repository is a comprehensive, bilingual collection of resources for Grok Bot, the always-on AI teammates with dedicated cloud computers. It provides curated links to official documentation, tutorials, real-world use cases, and community discussions. This list is an invaluable guide for anyone looking to explore or implement Grok Bot solutions.

opcode: A Powerful GUI Toolkit for Claude Code AI Development
August 28, 2026
opcode is a robust desktop application built with Tauri 2, designed to enhance interaction with Claude Code. It offers a comprehensive GUI for managing AI-assisted development sessions, creating custom agents, and tracking usage, bridging the gap between the command-line interface and a more intuitive visual experience.

ECC: The Agent Harness Performance Optimization System for LLMs
August 28, 2026
ECC is an advanced agent harness performance optimization system, providing a coordinated engineering system and toolbox for LLM development. It enables agents to plan, test, implement, review, and learn effectively, enhancing productivity and security for AI-driven coding workflows across platforms like Claude Code, Codex, and Cursor.

Agent Governance Toolkit: Policy Enforcement for Autonomous AI Agents
August 27, 2026
The Microsoft Agent Governance Toolkit (AGT) provides robust policy enforcement, zero-trust identity, and execution sandboxing for autonomous AI agents. It addresses critical security and compliance challenges, ensuring agents operate within defined boundaries and providing tamper-evident audit trails. AGT covers all 10 items of the OWASP Agentic Top 10, making it essential for shipping AI agents to production securely.
Source repository
Open the original repository on GitHub.