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.warv31.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 |
|---|---|
PORT | daemon inject; mặc định 4610 |
SENCLAW_DRAWIO_EDITOR_DIR | trỏ webapp đã giải nén sẵn (dev/air-gapped) — bỏ qua download |
SENCLAW_DRAWIO_WAR_URL | mirror thay GitHub release |
SENCLAW_DRAWIO_WAR_SHA256 | override checksum pin |
Gotchas
- SVG chỉ render được trong editor → server cache snapshot mỗi lần save/ autosave;
drawio_export svgtrả kèmstaleflag. - Iframe host của SenClaw không có
allow-downloads→ mọi download đi quaGET /api/diagrams/:id/export?format=svg|xml. - Đổi version editor: sửa
DRAWIO_VERSION/WAR_SHA256trongsrc/editor.rs(fileVERSIONtrong 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
The checkmark means SenClaw confirmed who this publisher is. It says nothing about whether their packages are safe.
About
| Owner | @senclaw |
| Latest | 1.0.0 |
| Downloads (30d) | 0 |
| Repository | github.com/NortonBen/senclaw-app ↗ |
Versions
| Version | Tags | Artifacts | Published |
|---|---|---|---|
1.0.0 | latest | darwin-arm64, linux-x64, win32-x64 | 2026-08-07 |
Artifacts · 1.0.0
| Platform | Format | Signature | File | Size |
|---|---|---|---|---|
darwin-arm64 | zip | unsigned | drawio-app.zip | 2649 KB |
linux-x64 | zip | unsigned | drawio-app.zip | 2978 KB |
win32-x64 | zip | unsigned | drawio-app.zip | 2889 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