尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
Native PlantUML and Mermaid editor for Omarchy, in Rust
翻译准备中
正在加载完整 README。
查看完整 README ↗The source in the middle, the live diagram on the right, in the colors of your Omarchy
theme and the font omarchy font set picked. One binary with its own engines: no Java,
no browser, no network, and it sends nothing anywhere.
Omaspec draws with its own engines, in a few milliseconds: PlantUML sequence, activity, state, class, component, use case, deployment, object, timing and Gantt diagrams, C4-PlantUML, ArchiMate, network diagrams, Salt wireframes, EBNF and regex railroads, Ditaa drawings, mind maps, WBS, JSON, YAML and formulas, and Mermaid flowcharts, state and sequence diagrams. The other Mermaid types are drawn by mmdr, a Rust library, in the same process. A dense flowchart, 150 boxes and 476 lines between them, is laid out in under half a second. Lint findings are underlined while you type, and a Ctrl+click in the diagram jumps to its line in the source.
Large diagrams too: the delivery drone in examples/drone has 45
states up to four levels deep, two regions running side by side and 72 transitions, and
Omaspec draws it in about 30 ms.
A state diagram is the state machine it specifies, and a sequence diagram is a scenario, in PlantUML and Mermaid alike. Omaspec checks them while you type: a state no path reaches, a state nothing leaves, one event leading two ways with no guard to choose. A scenario is checked against the state machines of its project: every message must be an event its receiver can take, in the order the scenario sends them.
F5 runs the diagram on screen. The states the machine is in light up, you pick what
happens next, and a light runs along each transition. A scenario unfolds message by
message. omaspec play door.puml -o door.gif --events open,close writes such a play as
a GIF, for a presentation or a pull request.
omaspec trace run.jsonl plays what a running system logged through its state machines
and says where it deviated, with the time. The editor plays the trace in the diagram,
line by line, and the bar turns red where the system did what the specification does
not allow. omaspec coverage door.puml --traces night.jsonl -o door-cov.svg draws how
much of the machine the traces took: what was taken in green with how often, what never
was dashed in red; --min 80 holds a share in CI.
Omaspec follows omarchy theme and omarchy font set while it runs, and draws the
diagrams in the theme's colors without touching the files. Every bundled theme is
checked for legible colors, the gallery's diagrams in each of them too.
omaspec new shop, or New project in the editor, makes a folder with a
first diagram and omaspec-project.toml. Every diagram below it is checked against
the whole project, however it was opened.skinparam handwritten true or Mermaid's
look: handDrawn draws the diagram by hand, the same picture every time.omaspec diff says what changed in the behavior: states,
transitions and messages, not layout.omaspec preview flow.puml is a window that renders again on every
save.omaspec check DIR runs them for CI, and omaspec mcp is an MCP server
with the same tools.On Omarchy (or any Arch Linux), build the package from this repository:
git clone https://github.com/enhapu-afk/omaspec
cd omaspec/packaging/aur/omaspec-bin # the release, prebuilt
makepkg -si # or in ../omaspec: the release, built from source
The packages go to the AUR (omaspec, omaspec-bin, omaspec-git) as soon as it takes
new accounts again; then yay -S omaspec-bin will do.
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗