ai-figure

Category: Docs & Knowledge | Uploader: hustcchustcc | Downloads: 0 | Version: v1.0(Latest)

Generate clean SVG diagrams (flowchart, tree, mindmap, architecture, sequence, quadrant, gantt, state machine, ER, timeline, swimlane, bubble chart, radar chart) from a markdown string or a JSON config via fig(). Auto-layout, zero coordinates needed. Works in browser and Node.js.

Changelog: Source: GitHub https://github.com/hustcc/ai-figure

Directory Structure

Current level: tree/main/

  • 📁 .github/
    • 📁 workflows/
      • 📄 build.yml 436 B
      • 📄 deploy.yml 1.0 KB
      • 📄 publish.yml 617 B
  • 📁 assets/
    • 📄 arch.svg 3.9 KB
    • 📄 bubble.svg 6.3 KB
    • 📄 er.svg 8.7 KB
    • 📄 flow.svg 4.1 KB
    • 📄 gantt.svg 9.7 KB
    • 📄 mindmap.svg 8.5 KB
    • 📄 quadrant.svg 5.3 KB
    • 📄 radar.svg 5.3 KB
    • 📄 sequence.svg 4.7 KB
    • 📄 state.svg 4.3 KB
    • 📄 swimlane.svg 4.6 KB
    • 📄 timeline.svg 3.0 KB
    • 📄 tree.svg 4.7 KB
  • 📁 site/
    • 📁 public/
      • 📄 file.svg 391 B
      • 📄 globe.svg 1.0 KB
      • 📄 next.svg 1.3 KB
      • 📄 vercel.svg 128 B
      • 📄 window.svg 385 B
    • 📁 src/
      • 📁 app/
        • 📁 ai/
          • 📄 page.tsx 25.5 KB
        • 📁 docs/
          • 📄 page.tsx 28.8 KB
        • 📁 gallery/
          • 📄 page.tsx 2.3 KB
        • 📁 s/
          • 📄 page.tsx 4.7 KB
        • 📄 favicon.ico 25.3 KB
        • 📄 globals.css 140 B
        • 📄 layout.tsx 876 B
        • 📄 page.tsx 5.9 KB
      • 📁 components/
        • 📄 CodeBlock.tsx 1.1 KB
        • 📄 CopyButton.tsx 1.4 KB
        • 📄 DiagramCard.tsx 841 B
        • 📄 FigEditor.tsx 2.3 KB
        • 📄 Footer.tsx 555 B
        • 📄 Header.tsx 2.3 KB
      • 📁 lib/
        • 📄 decode.ts 2.2 KB
        • 📄 diagrams.ts 48.0 KB
        • 📄 encode.ts 249 B
        • 📄 figHighlight.ts 3.3 KB
    • 📄 .gitignore 480 B
    • 📄 AGENTS.md 327 B
    • 📄 CLAUDE.md 11 B
    • 📄 eslint.config.mjs 465 B
    • 📄 next.config.ts 161 B
    • 📄 package.json 577 B
    • 📄 postcss.config.mjs 94 B
    • 📄 README.md 1.4 KB
    • 📄 tsconfig.json 670 B
  • 📁 src/
    • 📄 arch.ts 10.3 KB
    • 📄 bubble.ts 12.1 KB
    • 📄 er.ts 12.5 KB
    • 📄 gantt.ts 18.1 KB
    • 📄 index.ts 4.7 KB
    • 📄 layout.ts 4.2 KB
    • 📄 mindmap.ts 10.1 KB
    • 📄 parse.ts 20.8 KB
    • 📄 quadrant.ts 11.2 KB
    • 📄 radar.ts 9.5 KB
    • 📄 render.ts 12.8 KB
    • 📄 sequence.ts 10.4 KB
    • 📄 state.ts 9.7 KB
    • 📄 swimlane.ts 10.2 KB
    • 📄 theme.ts 12.8 KB
    • 📄 timeline.ts 11.8 KB
    • 📄 tree.ts 1.7 KB
    • 📄 types.ts 20.0 KB
    • 📄 utils.ts 5.4 KB
  • 📁 tests/
    • 📁 parse/
      • 📄 arch.test.ts 2.7 KB
      • 📄 bubble.test.ts 2.3 KB
      • 📄 er.test.ts 3.6 KB
      • 📄 flow.test.ts 3.6 KB
      • 📄 gantt.test.ts 2.9 KB
      • 📄 mindmap.test.ts 2.5 KB
      • 📄 quadrant.test.ts 3.3 KB
      • 📄 radar.test.ts 4.4 KB
      • 📄 sequence.test.ts 2.7 KB
      • 📄 state.test.ts 3.2 KB
      • 📄 swimlane.test.ts 4.0 KB
      • 📄 timeline.test.ts 3.3 KB
      • 📄 tree.test.ts 2.5 KB
    • 📁 snapshots/
      • 📄 arch-cloud-antv.svg 5.0 KB
      • 📄 arch-data-pipeline-drawio.svg 4.7 KB
      • 📄 arch-microservices-default.svg 5.3 KB
      • 📄 arch-ml-platform-mono-blue.svg 4.6 KB
      • 📄 arch-observability-dark.svg 5.3 KB
      • 📄 arch-stack-default.svg 3.9 KB
      • 📄 arch-titled-default.svg 2.8 KB
      • 📄 bubble-budget-figma.svg 6.3 KB
      • 📄 bubble-energy-vega.svg 7.2 KB
      • 📄 bubble-market-analysis-default.svg 6.3 KB
      • 📄 bubble-servers-mono-blue-dark.svg 8.2 KB
      • 📄 bubble-tech-antv-dark.svg 6.3 KB
      • 📄 er-blog-schema-default.svg 8.5 KB
      • 📄 er-ecommerce-schema-antv.svg 10.1 KB
      • 📄 er-hospital-schema-figma-dark.svg 9.9 KB
      • 📄 er-parse-figmd.svg 3.5 KB
      • 📄 er-school-db-drawio.svg 9.9 KB
      • 📄 er-social-network-vega.svg 8.7 KB
      • 📄 flow-auth-default.svg 10.7 KB
      • 📄 flow-ci-pipeline-antv.svg 10.1 KB
      • 📄 flow-decision-branch-default.svg 3.8 KB
      • 📄 flow-ecommerce-checkout-default.svg 8.1 KB
      • 📄 flow-hermes-agent-default.svg 10.1 KB
      • 📄 flow-microservices-default.svg 7.8 KB
      • 📄 flow-order-processing-dark.svg 8.5 KB
      • 📄 flow-parse-vega.svg 3.8 KB
      • 📄 flow-rag-pipeline-figma.svg 6.4 KB
      • 📄 flow-titled-default.svg 2.4 KB
      • 📄 gantt-annual-roadmap-drawio.svg 11.5 KB
      • 📄 gantt-infra-upgrade-antv.svg 9.4 KB
      • 📄 gantt-migration-custom-dark.svg 4.9 KB
      • 📄 gantt-minimal-default.svg 5.6 KB
      • 📄 gantt-product-launch-antv.svg 9.7 KB
      • 📄 gantt-project-default.svg 6.4 KB
      • 📄 gantt-sprint-drawio-dark.svg 5.0 KB
      • 📄 mindmap-balanced-mono-blue-dark.svg 10.1 KB
      • 📄 mindmap-knowledge-figma.svg 8.4 KB
      • 📄 mindmap-learning-antv.svg 9.1 KB
      • 📄 mindmap-org-vega-dark.svg 7.9 KB
      • 📄 mindmap-product-default.svg 6.3 KB
      • 📄 quadrant-content-default.svg 5.3 KB
      • 📄 quadrant-okr-mono-green.svg 5.3 KB
      • 📄 quadrant-priority-default.svg 5.3 KB
      • 📄 quadrant-risk-matrix-default.svg 5.3 KB
      • 📄 quadrant-tech-debt-dark.svg 5.6 KB
      • 📄 quadrant-tech-stack-figma.svg 5.3 KB
      • 📄 quadrant-titled-default.svg 4.5 KB
      • 📄 radar-cloud-figma-dark.svg 6.0 KB
      • 📄 radar-framework-antv.svg 5.3 KB
      • 📄 radar-quality-mono-blue.svg 3.7 KB
      • 📄 radar-skills-default.svg 5.1 KB
      • 📄 radar-velocity-vega-dark.svg 5.4 KB
      • 📄 sequence-auth-default.svg 4.7 KB
      • 📄 sequence-checkout-dark.svg 6.3 KB
      • 📄 sequence-ci-build-vega.svg 6.3 KB
      • 📄 sequence-order-drawio.svg 5.9 KB
      • 📄 sequence-password-reset-default.svg 6.8 KB
      • 📄 sequence-titled-default.svg 3.8 KB
      • 📄 sequence-websocket-default.svg 3.9 KB
      • 📄 state-document-review-drawio.svg 4.5 KB
      • 📄 state-order-status-default.svg 5.1 KB
      • 📄 state-parse-figmd.svg 3.8 KB
      • 📄 state-traffic-light-antv.svg 3.4 KB
      • 📄 state-user-session-dark.svg 5.0 KB
      • 📄 state-vending-machine-figma.svg 5.0 KB
      • 📄 swimlane-deploy-pipeline-drawio.svg 5.8 KB
      • 📄 swimlane-expense-approval-figma.svg 4.8 KB
      • 📄 swimlane-hiring-process-default.svg 5.5 KB
      • 📄 swimlane-incident-response-dark.svg 5.3 KB
      • 📄 swimlane-order-flow-antv.svg 5.1 KB
      • 📄 swimlane-parse-figmd.svg 2.4 KB
      • 📄 timeline-company-history-antv.svg 5.4 KB
      • 📄 timeline-javascript-evolution-default.svg 5.9 KB
      • 📄 timeline-long-label-bounds-default.svg 2.7 KB
      • 📄 timeline-parse-figmd.svg 2.9 KB
      • 📄 timeline-product-history-default.svg 3.8 KB
      • 📄 timeline-quarterly-roadmap-figma.svg 3.7 KB
      • 📄 timeline-space-exploration-dark.svg 5.7 KB
      • 📄 timeline-web-tech-evolution-drawio.svg 5.4 KB
      • 📄 tree-category-default.svg 6.7 KB
      • 📄 tree-deps-antv.svg 5.2 KB
      • 📄 tree-filesystem-default.svg 7.2 KB
      • 📄 tree-knowledge-default.svg 6.6 KB
      • 📄 tree-org-mono-purple.svg 4.7 KB
      • 📄 tree-tech-stack-dark.svg 8.7 KB
      • 📄 tree-titled-default.svg 3.0 KB
    • 📄 arch-cloud-antv.test.ts 1.2 KB
    • 📄 arch-data-pipeline-drawio.test.ts 1.2 KB
    • 📄 arch-microservices-default.test.ts 1.3 KB
    • 📄 arch-ml-platform-mono-blue.test.ts 1.2 KB
    • 📄 arch-observability-dark.test.ts 1.4 KB
    • 📄 arch-stack-default.test.ts 984 B
    • 📄 bubble-budget-figma.test.ts 639 B
    • 📄 bubble-energy-vega.test.ts 678 B
    • 📄 bubble-market-analysis-default.test.ts 643 B
    • 📄 bubble-servers-mono-blue-dark.test.ts 776 B
    • 📄 bubble-tech-antv-dark.test.ts 659 B
    • 📄 er-blog-schema-default.test.ts 1.5 KB
    • 📄 er-ecommerce-schema-antv.test.ts 1.8 KB
    • 📄 er-hospital-schema-figma-dark.test.ts 1.8 KB
    • 📄 er-school-db-drawio.test.ts 1.8 KB
    • 📄 er-social-network-vega.test.ts 1.6 KB
    • 📄 flow-auth-default.test.ts 1.7 KB
    • 📄 flow-ci-pipeline-antv.test.ts 1.8 KB
    • 📄 flow-decision-branch-default.test.ts 867 B
    • 📄 flow-ecommerce-checkout-default.test.ts 1.5 KB
    • 📄 flow-hermes-agent-default.test.ts 2.1 KB
    • 📄 flow-microservices-default.test.ts 1.7 KB
    • 📄 flow-order-processing-dark.test.ts 1.7 KB
    • 📄 flow-parse-vega.test.ts 797 B
    • 📄 flow-rag-pipeline-figma.test.ts 1.5 KB
    • 📄 gantt-annual-roadmap-drawio.test.ts 1.5 KB
    • 📄 gantt-infra-upgrade-antv.test.ts 1.4 KB
    • 📄 gantt-migration-custom-dark.test.ts 1.2 KB
    • 📄 gantt-minimal-default.test.ts 778 B
    • 📄 gantt-product-launch-antv.test.ts 1.7 KB
    • 📄 gantt-project-default.test.ts 1.1 KB
    • 📄 gantt-sprint-drawio-dark.test.ts 793 B
    • 📄 helpers.ts 1.1 KB
    • 📄 index.test.ts 16.9 KB
    • 📄 mindmap-balanced-mono-blue-dark.test.ts 1.3 KB
    • 📄 mindmap-knowledge-figma.test.ts 1.1 KB
    • 📄 mindmap-learning-antv.test.ts 1.1 KB
    • 📄 mindmap-org-vega-dark.test.ts 1.0 KB
    • 📄 mindmap-product-default.test.ts 900 B
    • 📄 quadrant-content-default.test.ts 1.0 KB
    • 📄 quadrant-okr-mono-green.test.ts 1.1 KB
    • 📄 quadrant-priority-default.test.ts 1022 B
    • 📄 quadrant-risk-matrix-default.test.ts 1.0 KB
    • 📄 quadrant-tech-debt-dark.test.ts 1.1 KB
    • 📄 quadrant-tech-stack-figma.test.ts 1.0 KB
    • 📄 radar-cloud-figma-dark.test.ts 681 B
    • 📄 radar-framework-antv.test.ts 643 B
    • 📄 radar-quality-mono-blue.test.ts 496 B
    • 📄 radar-skills-default.test.ts 611 B
    • 📄 radar-velocity-vega-dark.test.ts 663 B
    • 📄 sequence-auth-default.test.ts 920 B
    • 📄 sequence-checkout-dark.test.ts 1.2 KB
    • 📄 sequence-ci-build-vega.test.ts 1.1 KB
    • 📄 sequence-order-drawio.test.ts 1.0 KB
    • 📄 sequence-password-reset-default.test.ts 1.3 KB
    • 📄 sequence-websocket-default.test.ts 811 B
    • 📄 state-document-review-drawio.test.ts 1.1 KB
    • 📄 state-order-status-default.test.ts 1.2 KB
    • 📄 state-traffic-light-antv.test.ts 848 B
    • 📄 state-user-session-dark.test.ts 1.2 KB
    • 📄 state-vending-machine-figma.test.ts 1.2 KB
    • 📄 swimlane-deploy-pipeline-drawio.test.ts 1.1 KB
    • 📄 swimlane-expense-approval-figma.test.ts 1008 B
    • 📄 swimlane-hiring-process-default.test.ts 1.2 KB
    • 📄 swimlane-incident-response-dark.test.ts 1.1 KB
    • 📄 swimlane-order-flow-antv.test.ts 1.0 KB
    • 📄 timeline-company-history-antv.test.ts 926 B
    • 📄 timeline-javascript-evolution-default.test.ts 989 B
    • 📄 timeline-long-label-bounds-default.test.ts 947 B
    • 📄 timeline-product-history-default.test.ts 875 B
    • 📄 timeline-quarterly-roadmap-figma.test.ts 921 B
    • 📄 timeline-space-exploration-dark.test.ts 964 B
    • 📄 timeline-web-tech-evolution-drawio.test.ts 923 B
    • 📄 titles-subtitles.test.ts 14.5 KB
    • 📄 tree-category-default.test.ts 1014 B
    • 📄 tree-deps-antv.test.ts 886 B
    • 📄 tree-filesystem-default.test.ts 1.0 KB
    • 📄 tree-knowledge-default.test.ts 1017 B
    • 📄 tree-org-mono-purple.test.ts 767 B
    • 📄 tree-tech-stack-dark.test.ts 1.2 KB
    • 📄 utils.test.ts 450 B
  • 📄 .gitignore 1014 B
  • 📄 AGENT.md 15.2 KB
  • 📄 LICENSE 1.0 KB
  • 📄 package.json 1.1 KB
  • 📄 README.md 44.4 KB
  • 📄 SKILL.md 10.7 KB
  • 📄 tsconfig.json 433 B
  • 📄 tsup.config.ts 291 B

SKILL.md

Login to download/like/favorite ❤ 10 | ★ 0
Comments 0

Please login before commenting.

Loading comments...