GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - microsoft/chartifact: Declarative, interactive data documents

BranchesTags
Open more actions menu

Latest commit

 

History

1,027 Commits
1,027 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
demos/broker
demos/broker
 
 
docker-jekyll-local
docker-jekyll-local
 
 
docs
docs
 
 
packages
packages
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

    A     I
C H A   T
C H A R T
    A R T I F A C T
C H A R T I F A C T

Chartifact

Declarative, interactive data documents

Chartifact is a low-code document format for creating interactive, data-driven pages such as reports, dashboards, and presentations. It travels like a document and works like a mini app. Designed for use with your LLM to produce a shareable artifact of your analytic conversations.

• Examples • Try now with your LLM • Try with Copilot in VsCode

Ecosystem

The Chartifact GitHub repo has source code for these interoperating modules:

  • A document schema that defines plugins and components that communicate together with reactive variables:

    • Text – Markdown with dynamic placeholders
    • Inputs – Textboxes, checkboxes, sliders, dropdowns
    • Tables – Sortable, selectable, and editable data grids
    • Charts – Vega and Vega-Lite visualizations
    • Diagrams – Mermaid diagrams (flowcharts, networks, and more) via the mermaid plugin, including tabular data-driven diagram generation
    • Structured content – Custom layouts via the Treebark plugin for rendering safe, templated HTML structures (cards, headers, footers, lists, and more)
    • Images – Dynamic image URLs based on variables
    • Presets – Named sets of variable values for quick scenario switching
  • A sandboxed runtime that securely renders documents.

  • A set of examples that your LLM can understand and remix for your scenario.

  • A VS Code extension for editing, previewing, and exporting documents.

  • A web-based viewer and editor for viewing, quick edits and sharing.

  • Tools to export standalone HTML documents you can share or embed anywhere.

Authoring Formats

Chartifact documents can be written in two formats:

  • Markdown – Human-readable, easy to write and review. Interactive elements are embedded as fenced JSON blocks.
  • JSON – Structured and precise. Ideal for programmatic generation or when working directly with the document schema.

Both formats are functionally equivalent and supported across all tooling.

AI Support

The format is designed with AI assistance in mind:

  • Structured syntax makes documents easy to edit and generate with LLMs
  • In-editor tools like Ctrl+I and agent mode available in VS Code
  • HTML exports retain semantic structure for downstream AI tools

This enables both authoring and remixing workflows with language models and agent-based tooling.

Data Flow

The document runtime is reactive. Components stay in sync through a shared set of variables:

  • Reactive variables update elements and data sources automatically
  • Dynamic bindings let variables appear in chart specs, text, URLs, and API calls
  • REST integration supports fetching data from external sources
  • Vega transforms provide built-in tools for reshaping data
  • Signal bus coordinates state across all components

Styling

Styling is done using standard CSS. Examples provided to style documents as articles, dashboards, or slides.

Security

Chartifact is designed to be safe by default:

  • Rendered in sandboxed iframes to isolate execution
  • No custom JavaScript execution
  • No raw HTML in Markdown
  • XSS-Defensive CSS parsing

About

Declarative, interactive data documents

microsoft.github.io/chartifact/

Topics

data-visualizationmarkdownvegavega-lite

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

85 stars

Watchers

0 watching

Forks

23 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.