← 返回
未分类

Mindchart

只需简单的 文本输入 📝 或 文件上传 📎,即可一键解锁 276种 不同的精美信息图风格!🤯 无论是商务报告还是创意展示,总有一款设计能击中你的心。让信息传递更高效,让视觉表达更出众!🚀 GitHub: https://github.com/NewToolAI/mindchart
matrix
未分类 community v1.0.0 1 版本 99551.6 Key: 无需
★ 0
Stars
📥 222
下载
💾 5
安装
1
版本
#latest

概述

Infographics transform data, information, and knowledge into perceptible visual language. They combine visual design with data visualization, using intuitive symbols to compress complex information, helping audiences quickly understand and remember key points.

Before starting the task, you need to understand the AntV Infographic syntax specification, including template list, data structure, theme, etc.

Installation

unzip mindchart/templates.zip.txt -d mindchart
npm install @antv/infographic opentype.js sharp

or

bun install @antv/infographic opentype.js sharp

Strictly follow the generation workflow without any deviation

Specifications

AntV Infographic Syntax

AntV Infographic syntax is a custom DSL for describing infographic rendering configuration. It uses indentation to express structure, suitable for AI to directly generate and stream output. Core information includes:

  1. template: Expresses information structure using templates.
  2. data: Infographic data, containing title, desc, and main data fields.
  3. theme: Theme configuration, containing palette, fonts, stylization, etc.

Mandatory Syntax Rules

  • The first line must be infographic .
  • Template list only contains the template name itself; when actually outputting, the first line must explicitly write the infographic prefix.
  • Use data / theme blocks, with uniform two-space indentation within blocks.
  • Key-value pairs use key space value; object arrays use - as item prefix.
  • icon uses icon keywords, e.g., star fill, mingcute/server-line.
  • value should preferably use pure numeric values; numeric units should preferably be expressed in label or desc.
  • palette recommends using inline simple array syntax, e.g., palette #4f46e5 #06b6d4 #10b981.
  • Color values in palette are bare values, no quotes, no commas.
  • data should contain only one main data field matching the template, avoid mixing lists, sequences, compares, values, root, nodes simultaneously.

Main data field selection rules:

  • list-*lists
  • sequence-*sequences, optional order asc|desc
  • sequence-interaction-*sequences + relations
  • sequences represents swimlane list
  • Each swimlane must contain label
  • children of each swimlane represents node list
  • Each item under children must be written as an object entry and contain label
  • Nodes optionally have id, icon, step, desc, value
  • step is used to indicate time hierarchy; same step is at the same height
  • compare-*compares
  • compare-binary- / compare-hierarchy-left-right-
  • The first layer of compares must have exactly two root nodes, representing the two parties being compared
  • Both root nodes should contain children
  • The actual comparison items are written under their respective children
  • Each item under children must be written as an object entry and contain label
  • Even if each side has only 1 metric, write it as 1 object entry inside children
  • compare-swot
  • compares can directly contain multiple root nodes
  • Each root node optionally has children
  • compare-quadrant-*
  • compares directly contains 4 quadrant root nodes
  • hierarchy-structureitems
  • hierarchy-* → single root, recursively nested through children
  • relation-*nodes + relations
  • Simple relations can also directly use arrow syntax to express relationships
  • chart-*values
  • chart-line-plain-text / chart-bar-plain-text / chart-column-simple all use single ordered values
  • Each data point uses label for category, uses value for numeric value
  • Line chart order is expressed by the order of entries in values
  • When structure cannot be clearly determined, use items as fallback

Theme rules:

  • theme is used for custom themes, e.g., palette, base, stylize
  • Use theme.base.text.font-family to specify font, e.g., 851tegakizatsu
  • Use theme.stylize to select built-in styles and pass parameters
  • rough: hand-drawn effect
  • pattern: pattern fill
  • linear-gradient / radial-gradient: gradient style
  • Only output Infographic syntax itself, do not output JSON, explanatory text, or additional Markdown paragraphs

Template Selection Guidelines

  • Strict sequence, step progression, stage evolution → sequence-*
  • Multi-role or multi-system interaction → sequence-interaction-*
  • Parallel point enumeration → list-row- / list-column- / list-grid-*
  • Two-party comparison, plan comparison, before/after comparison → compare-binary-*
  • First determine who the two parties are
  • Then expand children for each party respectively
  • SWOT analysis → compare-swot
  • Quadrant analysis → compare-quadrant-*
  • Hierarchical tree structure → hierarchy-tree-*
  • Statistical trends, single sequence changes → chart-line-plain-text
  • Statistical comparison, single group numeric comparison → chart-bar-plain-text / chart-column-simple
  • Node relationships, process dependencies → relation-*
  • Word frequency theme display → chart-wordcloud
  • Mind map → hierarchy-mindmap-*

Output Format

Only output one plain code block, without any explanatory text:

infographic list-row-horizontal-icon-arrow
data
  title Title
  desc Description
  lists
    - label Item
      value 12.5
      desc Description
      icon document text
theme
  palette #3b82f6 #8b5cf6 #f97316

Generation Workflow

Step 1: Understand User Requirements and Select Suitable Template

Deeply think and understand user requirements, select one appropriate template according to the Template Selection Guidelines above.

Template directory: mindchart/templates/

Step 2: Generate Infographic Syntax File

Generate infographic syntax file according to template syntax and the Specifications above.

  • Syntax file format: {title}.md
  • Ensure the generated infographic displays with white background and black text and icons
  • Ensure the length of desc field is less than 17 tokens

Self-Check Checklist

Before outputting, check the following:

  • Is the first line infographic ?
  • Is only one main data field matching the template used?
  • Is palette using bare color values without quotes and commas?
  • Are swimlane nodes of sequence-interaction-* all written as children -> - label ...?
  • Do compare-binary- / compare-hierarchy-left-right- have only two root nodes, with content on both sides placed under their respective children?
  • Does each item under children explicitly contain label?
  • Does chart-line-plain-text use single ordered values?
  • Is there no JSON, explanatory text, or extra code blocks in the output?

Step 3: Generate SVG File

node mindchart/scripts/ifgc2svg {title}.md {title}.svg

Step 4: Convert to PNG File

node mindchart/scripts/svg2png {title}.svg {title}.png

Step 5: Return PNG/SVG File

  • If user is using openclaw or other bot, send png and svg as images to the user
  • In other cases, save svg and png to the specified directory or project directory

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-04-01 15:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,223 📥 267,323
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,946
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,371 📥 319,668