[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113463":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":9,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":12,"lastSyncTime":29,"discoverSource":30},113463,"Tarahi","baradhili\u002FTarahi","baradhili","\"ArtCraft\" style clone of VIsio",null,"Rust",66,2,51,94,0,1,9,38,7,1.43,"Apache License 2.0",false,"main",true,[],"2026-11-25 02:05:34","# Tarahi\n\n[![License: MIT OR Apache-2.0](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT%20OR%20Apache--2.0-blue?style=flat-square)](LICENSE-MIT)\n[![Rust](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRust-1.88%2B-orange?style=flat-square&logo=rust&logoColor=white)](https:\u002F\u002Fwww.rust-lang.org\u002F)\n[![CI](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fbaradhili\u002FDiagramCraft\u002Fci.yml?style=flat-square&label=CI)](https:\u002F\u002Fgithub.com\u002Fbaradhili\u002FDiagramCraft\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Powered by Z.ai GLM](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPowered_by-Z.ai_GLM_5.x-0066FF?style=flat-square)](https:\u002F\u002Fz.ai)\n[![AI harness: ZCode](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAI_harness-ZCode-000000?style=flat-square)](https:\u002F\u002Fz.ai)\n[![RE tooling: morluto\u002Frea](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRE_tooling-morluto\u002Frea-555555?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fmorluto\u002Frea)\n[![Sponsor](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSponsor-%E2%9D%A4-ea4aaa?style=flat-square&logo=githubsponsors&logoColor=ea4aaa)](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fbaradhili)\n\nA Linux\u002FWindows\u002FMacOS-native reimplementation of the Visio 2016 drawing experience in Rust: read and write `.vsdx`\u002F`.vstx`\u002F`.vssx` packages losslessly, render\nthem to SVG\u002FPNG, edit them through an undoable command layer, and work in\na native desktop GUI with the Visio shell (ribbon, stencils, ShapeSheet).\n\nBuilt clean-room: from recorded file-format and application-behavior\nobservations. No Microsoft code, content, or assets.\n\n## Powered by\n\nTarahi is built in public using **[Z.ai GLM-5.x](https:\u002F\u002Fz.ai)** for long-horizon agentic coding on a 1M-token context window, with deep binary-format reverse engineering supported by **[morluto\u002Frea](https:\u002F\u002Fgithub.com\u002Fmorluto\u002Frea)**.\n\nThe workload — multi-file refactors across a real binary format reverse-engineering effort — is exactly the long-running software-engineering task that GLM-5.x was designed for. The project would not be moving at this pace without Z.ai's Coding Plan. Hint Hint - [sponsorship?..](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fbaradhili)\n\nIf you're building a long-horizon coding project, [try GLM-5.x](https:\u002F\u002Fz.ai) or [inquire about Z.ai open source sponsorships](https:\u002F\u002Fz.ai\u002Fcontact).\n\n[![Greptile: The War on Bugs](https:\u002F\u002Fwww.greptile.com\u002Fbadge.svg)](https:\u002F\u002Fwww.greptile.com\u002F?utm_source=oss_badge&utm_medium=readme&utm_campaign=greptile_for_open_source)\n\n## Current screenshots\n\n![Screenshot.png](Screenshot.png)\n\n## Helping\n\nIt's sort of usable!\n\nHow can you help?\n\n1. Create issues - it gives me and my agent a way to track what could be fixed\n\n2. Close issues - there are plenty now and I only have so much token quota\n\n2. Create PR - awesome! - but please keep the PRs on a narrow feature (no 10000 line PRs please!) and make sure they are at least checked by CodeRabbit - or better Greptile\n\n3. Spread the word!\n\n## Workspace\n\n- **`crates\u002Fvsdx`** — the VSDX-family format library: OPC package access,\n  XML parsing into a typed document model, master\u002Fstylesheet inheritance\n  (`F='Inh'`, row-cell and per-section inheritance), a ShapeSheet formula\n  evaluator subset, and lossless writing (canonical-XML round-trip).\n- **`crates\u002Fdc`** — the CLI: `render` (SVG backend with themes, gradients,\n  Bézier\u002Farc geometry, images, wrapped text, connector arrowheads),\n  `info` \u002F `inspect`, `roundtrip` (re-write + verify), and `edit`\n  (undoable cell\u002Ftext\u002Fshape edits).\n- **`crates\u002Fdc-core`** — the editing core: `Command` trait, undo\u002Fredo\n  history, scope addressing (`page:1\u002Fshape:5`), shape\u002Fpage\u002Flayer\u002Fconnect\n  edits, stencil-master import, crash-safe saves.\n- **`crates\u002Fdc-ui`** — the native desktop GUI (egui\u002Feframe): Visio-2016\n  shell with ribbon\u002FQAT\u002Fstatus bar, canvas with rulers\u002Fgrid\u002Fzoom, the\n  Shapes pane (multiple open stencils, pane-wide search, Quick Shapes,\n  and a built-in catalog of Visio-derived stencils), drag-to-page\n  placement that imports stencil masters into the drawing, selection \u002F\n  resize \u002F 1D-endpoint handles with live drag previews, double-click\n  text editing, right-click context menus (including master Actions),\n  ShapeSheet inspector, off-thread progressive rasterization, and\n  headless kittest pixel\u002Finteraction tests.\n- **`third_party\u002Fcraft-ui`** — vendored egui widget library (see its\n  README for provenance).\n\n## Build & test\n\n```sh\ncargo build --workspace\ncargo test --workspace\n```\n\n## Usage\n\n```sh\n# Inspect and render a drawing\ncargo run -p dc -- info    path\u002Fto\u002Ffile.vsdx\ncargo run -p dc -- render  path\u002Fto\u002Ffile.vsdx -o out.svg\ncargo run -p dc -- render  path\u002Fto\u002Ffile.vssx -o sheet.svg --masters\n\n# Lossless round-trip with verification\ncargo run -p dc -- roundtrip path\u002Fto\u002Ffile.vsdx -o out.vsdx --verify\n\n# Undoable edits through the command layer\ncargo run -p dc -- edit path\u002Fto\u002Ffile.vsdx -o out.vsdx \\\n    --cell page:0\u002Fshape:1 LineWeight 0.02 --text page:0\u002Fshape:1 \"label\"\n\n# Native GUI\ncargo run -p dc-ui -- path\u002Fto\u002Ffile.vsdx\n```\n\n## GUI tests\n\nHeadless via egui_kittest (snapshots in `crates\u002Fdc-ui\u002Ftests\u002Fsnapshots\u002F`,\nregenerate with `UPDATE_SNAPSHOTS=1`):\n\n```sh\ncargo test -p dc-ui --test shell\ncargo test -p dc-ui --test interactions\n```\n\n## Installers\n\nRelease tags (`v*`) build installers through GitHub Actions\n(`.github\u002Fworkflows\u002Frelease.yml`): a Windows NSIS installer (+ portable zip), a\nuniversal macOS dmg, and Linux deb \u002F rpm \u002F AppImage packages. Push a tag\nto cut a release:\n\n```sh\ngit tag v0.2.5 && git push origin v0.2.5\n```\n\nPackaging metadata lives in the `dc-ui` manifest (`[package.metadata.deb]`,\n`[package.metadata.generate-rpm]`), `packaging\u002Finstaller.nsi` for the NSIS installer, and\n`packaging\u002F` for the desktop entry, icons, and macOS Info.plist.\n\n**Linux compatibility floor (by design, #281):** the whole Linux job builds\ninside an `ubuntu:22.04` container, so the Linux artifacts run on **glibc 2.35\nor newer — Ubuntu 22.04+, Debian 12+, Fedora 36+** (the oldest still-supported\nUbuntu LTS). The AppImage is therefore intentionally *not* \"self-contained\" in\nthe C-library sense every glibc-based AppImage shares: glibc itself comes from\nthe host (bundling it is the known-broken path for AppImages); the dlopen'd\nX11\u002FWayland\u002Fdbus client libraries ARE bundled. The release enforces the floor\nat build time (`GLIBC_FLOOR=2.35` symbol check) and will fail loudly if the\nbase ever drifts. Raise the floor (or lower it via an older-baseline linker)\nonly with an explicit compat decision. The AppImage also embeds\nAppImageUpdate metadata and ships a `.zsync` sidecar (#281), so\n`AppImageUpdate` can delta-update it against the latest stable release.\n\n## Commit conventions\n\nConventional Commits, enforced by [cargo-commitlint] through the tracked\n`commit-msg` hook in `.githooks\u002F` (rules in `commitlint.toml`). One-time\nsetup per clone:\n\n```sh\ncargo install cargo-commitlint --version 2.1.0 --locked\ngit config core.hooksPath .githooks\n```\n\nBypass a single commit with `COMMITLINT_SKIP=1`.\n\n## Roadmap\n\n### M1–M5 — Current\n\nM1–M4 (read VSDX, render to SVG, lossless write\u002Fround-trip, editing\ncore) shipped before the first public release. M5 — the GUI — shipped\nas v0.1.0 and has deepened through the 0.2.x waves:\n\n- **v0.1.1** — render-fidelity wave (text-block placement, HorzAlign\n  mapping, ArcTo bulge direction, LinePattern 0 stroke suppression).\n- **0.2.1** — ShapeSheet inspector for every shape (#76).\n- **0.2.2** — render-path performance (#66): render-on-miss texture\n  cache, parsed-tree reuse, off-thread rasterization, and per-shape\n  canvas layers (moves re-render nothing, edits re-render only the\n  touched shape); live drag previews (#96); AppImage glibc-2.39 floor\n  fix (#100).\n- **0.2.3** — Shapes pane wave (#63): multiple open stencils (#82),\n  open `.vssx` through More Shapes \u002F File→Open (#83), stencil masters\n  imported into the drawing on first placement (#84), source-keyed\n  thumbnail cache (#85), pane-wide search (#86), the built-in stencil\n  catalog (#87), and Quick Shapes (#88).\n- **0.2.4** — test-architecture wave (#97): de-duplicated and\n  de-brittled suites across all four crates (#125).\n\nOpen GUI depth (not yet scheduled to a release): full-screen\npresentation mode (#130), Change Shape (#131), freeform geometry\ndrawing (#132), native table shapes (#135), plus the standing\ncarry-forward — contextual ribbon tabs, snap\u002Fglue indicators,\nconnector routing UX, and the template flow.\n\n### M6 — Ecosystem\n\n- Data linking (`data` crate): CSV\u002FSQLite recordsets → shape data\n  (URS category \"Data Linking\"; spec'd in VeeTrace).\n- Validation rules; automatic diagram layout (#134) and org-chart\n  layout (`layout` crate — cleanroom analog of `@Visgrf` concepts).\n- Export filters beyond SVG\u002FPNG: PDF, interactive HTML (#127),\n  PowerPoint (#128); competitor-format import — draw.io, Gliffy,\n  Lucidchart (#126).\n- Document version history and restore (#133); LaTeX math typesetting\n  in shape text (#129). From the 2026-10-27 competitive review of\n  ConceptDraw, draw.io, Lucidchart, SmartDraw, EdrawMax, OmniGraffle,\n  Creately and ProcessOn (URS-1219…1228 in the VeeTrace pack).\n- Legacy `.vsd` reader: OLE compound + `VisioDocument` stream reversal\n  — needs deeper RE (the `CDMConvert*` inventory in VISLIB marks the\n  migration seams to study).\n- The \"scripting\u002Fautomation facade\" formerly listed here has grown\n  into M7\u002FM8 below (owner direction 2026-10-16).\n\n### M7 — VBA \u002F `.vsdm` macro execution (planned)\n\n- **`.vsdm` package support**: recognize\u002Fround-trip `.vsdm` losslessly\n  (`vbaProject.bin` carried as a verbatim unmodeled part — the existing\n  writer already preserves unknown parts; needs content-type\u002Fsignature\n  awareness and the macro-flag document settings).\n\n- **VBA project reader**: OLE compound parse of `vbaProject.bin` + MS-OVBA decompression → macro inventory (module list, names) shown in a Developer-tab macro dialog.\n\n- **VBA interpreter subset**: cleanroom execution of the practical macro subset (the same subset strategy as the ShapeSheet formula evaluator), driven against the M8 automation object model below.\n\n- **Macro security model** (URS-194): enable\u002Fdisable per document, trust prompts, `.vsdx` (macro-free) vs `.vsdm` save distinction.\n\n### M8 — Real Visio add-in hosting (planned, spike-gated)\n\nGoal: run real Visio add-ins, not reimplement them. First target:\n`Sample\u002Fgraphvisio` — GraphVizio, a 2014 x86 Windows MSI Visio add-in\nfor Graphviz layout (untracked sample, like all of `Sample\u002F`).\n\n- **Feasibility spike (gate)**: extract the MSI, identify the add-in binary type (COM DLL \u002F VSL \u002F .NET) and enumerate the Visio object model surface it touches (deep RE: REA + Ghidra on the extracted binary; add to the deep-RE queue).\n\n- **Automation object model**: a cleanroom `Application`\u002F`Document`\u002F `Page`\u002F`Shape` facade over `dc-core` (the surface COM add-ins automate) — designed with M7 step 3 so macros and add-ins share it.\n\n- **Host\u002Floader**: whichever of (a) a Win32 COM emulation host that can load and service the real DLL on Linux, or (b) a Wine-side host with a bridge to the native core, the spike shows to be viable. If neither is viable, fall back to a compatibility plugin API (M9) plus per-addin reimplementation guides — decided at the gate, not before.\n\n### M9 — Plugin system + diagram-language imports (nice-to-have)\n\n  Plugins, not core (owner direction 2026-10-16). Rides on the M8\n  automation facade or a lighter native plugin API if M8 lands after it.\n\n- Plugin architecture: out-of-tree diagram sources, shape mappers, and command packs with a stable API over `dc-core`.\n\n- Language import-renderers with **configurable shape mapping** (bind language node\u002Fedge types to masters\u002Fstencil shapes): **d2**, **Graphviz DOT** (synergy: GraphVizio is a Graphviz add-in —\n  its public behavior is a useful oracle), and **Mermaid**.\n\n## License\n\nMIT OR Apache-2.0 (see `LICENSE-MIT` \u002F `LICENSE-APACHE`). GUI icons are\nthe vendored Pictogrammers Material Design Icons set (Apache-2.0), in\n`crates\u002Fdc-ui\u002Fassets\u002Ficons\u002F` with their license and provenance notes.\n\n[cargo-commitlint]: https:\u002F\u002Fcrates.io\u002Fcrates\u002Fcargo-commitlint\n","Tarahi 是一个基于 Rust 开发的跨平台（Linux\u002FWindows\u002FmacOS）Visio 兼容绘图工具，旨在原生复现 Visio 2016 的核心交互体验。它支持无损读写 .vsdx\u002F.vstx\u002F.vssx 文件格式，提供 SVG\u002FPNG 渲染、带撤销机制的图形编辑、原生桌面 GUI（含功能区、模板库与 ShapeSheet 编辑），全部通过清洁室逆向工程实现，不依赖任何微软代码或资产。适用于需要本地化、离线操作且兼容现有 Visio 文档的企业流程图、网络拓扑图、UML 草图等技术绘图场景。","2026-11-24 04:45:58","CREATED_QUERY"]