senclaw/drawio

app Vẽ sơ đồ chuyên nghiệp với trình vẽ draw.io đầy đủ nhúng ngay trong SenClaw — flowchart, sequence, kiến trúc hệ thống, ER, BPMN, sơ đồ tổ chức… Nút ✨ AI biến mô tả tiếng Việt/Anh thành sơ đồ chỉnh sửa được trên canvas (chế độ Nhanh dùng Mermaid, Chi tiết sinh XML mxGraph), và AI có thể sửa sơ đồ đang mở theo yêu cầu. Trình vẽ tải một lần ở lần chạy đầu rồi hoạt động hoàn toàn offline. Powered by SenClaw's configured LLM.

Install

senclaw app install senclaw/drawio

Verifies sha512 and SenClaw’s signature before writing to disk.

Documentation

SenClaw Diagrams (draw.io) — Space App

Nhúng trình vẽ draw.io đầy đủ vào SenClaw + LLM tự vẽ sơ đồ từ mô tả. Thiết kế chi tiết: docs/drawio-app-design.md.

  • Port 4610, MCP server drawio-mcp (mcp__drawio-mcp__drawio_*, 10 tools).
  • Editor = webapp draw.io chính thức, iframe same-origin /drawio/ với embed protocol (embed=1&proto=json&stealth=1 — không gọi ra ngoài).
  • Composite download: draw.war v31.1.2 (~53MB) vượt giới hạn zip app, nên binary tự tải từ GitHub release ở lần chạy đầu vào ~/.senclaw/space-apps/drawio/editor/, sau đó offline hoàn toàn.
  • AI 2 chế độ: Mermaid (nhanh — editor convert thành shapes sửa được) và mxGraph XML (chi tiết — theo 10 quy tắc chính thức của draw.io, có validate + repair XML cụt). finish=="length" từ bridge luôn bị coi là lỗi.

Dev loop

# backend (từ repo root)
cargo run -p drawio
# web UI (hot reload, proxy /api + /drawio → 4610)
cd apps/drawio/web && npm install && npm run dev
# đăng ký với daemon không cần zip
curl -X POST http://127.0.0.1:18788/api/space/apps/register-local \
  -H 'Content-Type: application/json' -d '{"path": "'$PWD'/apps/drawio"}'

Env

VarÝ nghĩa
PORTdaemon inject; mặc định 4610
SENCLAW_DRAWIO_EDITOR_DIRtrỏ webapp đã giải nén sẵn (dev/air-gapped) — bỏ qua download
SENCLAW_DRAWIO_WAR_URLmirror thay GitHub release
SENCLAW_DRAWIO_WAR_SHA256override checksum pin

Gotchas

  • SVG chỉ render được trong editor → server cache snapshot mỗi lần save/ autosave; drawio_export svg trả kèm stale flag.
  • Iframe host của SenClaw không có allow-downloads → mọi download đi qua GET /api/diagrams/:id/export?format=svg|xml.
  • Đổi version editor: sửa DRAWIO_VERSION/WAR_SHA256 trong src/editor.rs (file VERSION trong data dir sẽ trigger tải lại).

Pack

apps/drawio/scripts/pack.sh   # → drawio-app.zip (nhỏ, không chứa editor)

Declared permissions

{
  "network": [
    "127.0.0.1",
    "github.com",
    "objects.githubusercontent.com"
  ],
  "exec": [
    "./drawio"
  ]
}

Declared by the publisher, not enforced by SenClaw. The CLI compares this against what you already have installed and asks before anything widens.

Published by

@senclawtrusted
benji
44 packages · 0 downloads · member since 2026-07 · GitHub since 2015-06

The checkmark means SenClaw confirmed who this publisher is. It says nothing about whether their packages are safe.

About

Owner@senclaw
Latest1.0.0
Downloads (30d)0
Repositorygithub.com/NortonBen/senclaw-app

Versions

VersionTagsArtifactsPublished
1.0.0latestdarwin-arm64, linux-x64, win32-x642026-08-07

Artifacts · 1.0.0

PlatformFormatSignatureFileSize
darwin-arm64zipunsigneddrawio-app.zip2649 KB
linux-x64zipunsigneddrawio-app.zip2978 KB
win32-x64zipunsigneddrawio-app.zip2889 KB

Unsigned builds require sign-in to download and are not distributed to the auto-updater, because unsigned executables from a new domain get flagged as unsafe. Sign and notarize (macOS) or Authenticode-sign (Windows) to distribute publicly.

Auto-update endpoints

For a Tauri app — add to tauri.conf.json:

"endpoints": ["https://senclaw.bacnd.com/api/v1/updates/tauri/senclaw/drawio/{{target}}/{{arch}}/{{current_version}}"]

For an electron-updater app — generic provider URL:

https://senclaw.bacnd.com/updates/senclaw/drawio/stable

Only signed/notarized artifacts are offered as updates — a client fetches the update without credentials, and unsigned binaries are not publicly downloadable.

Something wrong with this package?

Report this package

Report this package

Tell us what is wrong and a moderator will look at it. Be specific — a report that names a version and a behaviour can be checked in minutes; one that says “looks sketchy” cannot be acted on at all.

Not about this package? Contact us instead. What happens to a report is described in reporting and moderation.

API: GET https://senclaw.bacnd.com/api/v1/packages/senclaw/drawio