← 返回
未分类 中文

Graphviz

Generate SVG images from Graphviz DOT graphs using WebAssembly. Uses the graphviz_component.wasm running in the openclaw-wasm-sandbox plugin. No graphviz sys...
使用 WebAssembly 将 Graphviz DOT 图生成 SVG 图像,依赖 openclaw-wasm-sandbox 插件中的 graphviz_component.wasm,无需安装 Graphviz 系统。
guyoung
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 361
下载
💾 1
安装
1
版本
#latest

概述

Graphviz SVG Generator

Generate SVG images from Graphviz DOT graph descriptions using WebAssembly.

When to Use

Trigger when:

  • Keywords: graphviz, DOT, SVG, flowchart
  • user asks to generate/convert/visualize a graph from DOT language
  • user wants to render a Graphviz diagram as SVG
  • user provides DOT notation and wants SVG output
  • 用户要求生成/转换/可视化 DOT 语言图
  • 用户想要将 Graphviz 图渲染为 SVG
  • 用户提供 DOT 记号并想要 SVG 输出
  • 关键词:流程图生成, 制图

Prerequisites

  • Required plugin: openclaw-wasm-sandbox
  • WASM file: ~/.openclaw/skills/graphviz/files/graphviz_component.wasm (Use the wasm-sandbox-download tool to download,URL: https://raw.githubusercontent.com/guyoung/wasm-sandbox-openclaw-skills/main/graphviz/files/graphviz_component.wasm)

How It Works

The WASM component:

  • Accepts DOT graph string as argument
  • Outputs SVG to stdout

Tool

Use wasm-sandbox-run tool:

ParameterValue
------------------
wasmFile~/.openclaw/skills/graphviz/files/graphviz_component.wasm
argsDOT graph string, e.g. ["digraph { a -> b }"]
wasm-sandbox-run({
  wasmFile: "~/.openclaw/skills/graphviz/files/graphviz_component.wasm",
  args: ["digraph { a -> b }"]
})

Usage

  1. User provides DOT graph description
  2. Call wasm-sandbox-run with DOT string in args
  3. Return the SVG output to the user

DOT Language Reference

digraph name {           # Directed graph
  a -> b                 # Edge from a to b
  b -> c
  a [label="Node A"]     # Node with label
  b [shape=box]          # Node shape
}

graph name {             # Undirected graph
  a -- b
  b -- c
}

Common node attributes: label, shape (box, circle, diamond, triangle), color, style (filled, dashed)

Common edge attributes: label, color, style, dir (forward, back, both, none)

Notes

  • No system graphviz binary needed — pure WASM execution
  • No execution permission required — runs in sandbox
  • Runs in sandbox with no implicit file/network access
  • Output is pure SVG ready to display or save

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 05:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

OpenCV

guyoung
使用 OpenCV WebAssembly 实现计算机视觉和图像处理。通过 openclaw-wasm-sandbox 插件加载 opencv-component.wasm 运行,支持图像处理等功能。
★ 0 📥 518

Boxed HTTP Server

guyoung
WebAssembly 沙箱静态 HTTP 服务器,支持 HTTP 基本认证和代理。用于启动静态文件服务器、配置 HTTP 认证、设置...
★ 0 📥 419

Boxed fs

guyoung
WebAssembly 沙箱文件系统操作,用于在明确声明的目录中进行安全的文件读取、写入、追加、复制等。
★ 0 📥 370