yuhwa 1.12.0 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -11
- package/dist/{api-B9O53_5U.js → api-BhYpvwgH.js} +2733 -31
- package/dist/{api-C3G57UWP.d.ts → api-rTVcLrc8.d.ts} +116 -3
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +1 -1
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +4 -4
- package/dist/cli.js +2455 -13
- package/dist/editor/assets/index-BEvk0xaI.css +1 -0
- package/dist/editor/assets/{index-BTZWiMqP.js → index-CXrkLt53.js} +51 -27
- package/dist/editor/assets/lsp.worker-BJIWqNrh.js +63 -0
- package/dist/editor/index.html +26 -6
- package/dist/{figure-DX7Wgxue.d.ts → figure-BmaGxB4V.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/ironmark.d.ts +1 -1
- package/dist/ironmark.js +1 -1
- package/dist/llms.txt +1 -1
- package/dist/lsp-browser.js +1 -1
- package/dist/lsp-node.js +1 -1
- package/dist/lsp-server.js +1 -1
- package/dist/lsp.js +1 -1
- package/dist/markdown-it.d.ts +1 -1
- package/dist/markdown-it.js +2 -2
- package/dist/{node-BIfDM5Y3.js → node-DkjPCH6f.js} +2 -2
- package/dist/{plugins-BoaNpGLq.js → plugins-pAwqigp-.js} +73 -43
- package/dist/plugins.js +1 -1
- package/dist/remark.d.ts +1 -1
- package/dist/remark.js +1 -1
- package/dist/satteri.d.ts +1 -1
- package/dist/satteri.js +1 -1
- package/dist/{server-udkVD8Mc.js → server-CstXES9J.js} +2 -2
- package/dist/{service-FkOpMMOi.js → service-AhMJkrM4.js} +2 -2
- package/dist/{shared-DF-gLxrJ.js → shared-1cLUDhoj.js} +842 -60
- package/dist/slim.d.ts +2 -2
- package/dist/slim.js +2 -2
- package/dist/{src-DUTNi3wt.js → src-i3e13pro.js} +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -3
- package/dist/vuepress.d.ts +1 -1
- package/dist/vuepress.js +1 -1
- package/dist/yuhwa.iife.js +61 -33
- package/package.json +4 -2
- package/dist/editor/assets/index-BS6hb9gg.css +0 -1
- package/dist/editor/assets/lsp.worker-C9inZHsl.js +0 -63
package/README.md
CHANGED
|
@@ -4,10 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
# yuhwa
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Beautiful text diagrams, styled your way, that stay where you put them.**
|
|
8
8
|
|
|
9
|
-
A few lines of text become a clean SVG
|
|
10
|
-
with
|
|
9
|
+
A few lines of text become a clean SVG that looks great out of the box. Make
|
|
10
|
+
it your own with themes, colours, shapes and icons, and drag things into place
|
|
11
|
+
in a visual editor that writes your tweaks back into the source. Like Mermaid,
|
|
12
|
+
only friendlier.
|
|
13
|
+
|
|
14
|
+
Write a diagram yourself or ask your AI agent to draft one. The CLI gives it
|
|
15
|
+
a syntax reference and diagnostics it can use to check and revise the draft.
|
|
11
16
|
|
|
12
17
|
[](https://www.npmjs.com/package/yuhwa)
|
|
13
18
|
[](https://github.com/ph1p/yuhwa/blob/main/LICENSE)
|
|
@@ -30,6 +35,8 @@ with a visual editor that writes your tweaks back into the source.
|
|
|
30
35
|
<details>
|
|
31
36
|
<summary><b>The source of this picture</b>: one <code>.yu</code> file</summary>
|
|
32
37
|
|
|
38
|
+
The render times in the illustration are sample values.
|
|
39
|
+
|
|
33
40
|
```yuhwa
|
|
34
41
|
title: How **yuhwa** works
|
|
35
42
|
subtitle: one text file: graphs, windows, charts, sequences and more
|
|
@@ -168,19 +175,24 @@ Full reference: [syntax](https://ph1p.github.io/yuhwa/guide/syntax) ·
|
|
|
168
175
|
|
|
169
176
|
## Why yuhwa
|
|
170
177
|
|
|
178
|
+
- **Your agent can draw too.** Claude, Codex and Cursor can use `yuhwa guide`
|
|
179
|
+
for syntax, `yuhwa check` for diagnostics and `yuhwa render --text` for a
|
|
180
|
+
terminal preview. [Set it up](https://ph1p.github.io/yuhwa/guide/ai).
|
|
171
181
|
- **Looks good with zero styling.** Clean auto-layout, curved routing, soft
|
|
172
182
|
colours. Twelve built-in themes, or define your own in a `theme { }` block.
|
|
173
183
|
- **Layout you control.** Drag boxes and bend edges in the visual editor.
|
|
174
184
|
Positions land in the source as a small `layout { }` block, so the diagram
|
|
175
185
|
stays put on every re-render and in every diff.
|
|
176
|
-
- **
|
|
177
|
-
|
|
178
|
-
|
|
186
|
+
- **Combine diagram types.** Put a flowchart or swimlane alongside sequence
|
|
187
|
+
diagrams, timelines, charts and other panels in one file.
|
|
188
|
+
[Browse the 24 diagram types](https://ph1p.github.io/yuhwa/diagrams/).
|
|
179
189
|
- **Built for docs.** Plugins for VitePress, Astro, Docusaurus, VuePress, MDX
|
|
180
190
|
and more. Light and dark variants, and a broken diagram fails the build.
|
|
181
|
-
- **
|
|
182
|
-
|
|
183
|
-
- **
|
|
191
|
+
- **Speaks Mermaid.** Render supported Mermaid diagrams directly or convert
|
|
192
|
+
them to yuhwa source. [See which types convert](https://ph1p.github.io/yuhwa/guide/mermaid#what-converts).
|
|
193
|
+
- **Draws what you already have.** `yuhwa from git`, `sql`, `deps`, `class`
|
|
194
|
+
and `data` turn a repository, a schema, a workspace or a CSV export into a
|
|
195
|
+
diagram. [From real data](https://ph1p.github.io/yuhwa/guide/real-data).
|
|
184
196
|
- **Small and deterministic.** TypeScript, no runtime dependencies, same
|
|
185
197
|
input gives the same SVG.
|
|
186
198
|
|
|
@@ -248,11 +260,13 @@ Also: an [HTTP render service](https://ph1p.github.io/yuhwa/guide/embedding) for
|
|
|
248
260
|
```bash
|
|
249
261
|
npx yuhwa guide # language reference, written for agents
|
|
250
262
|
npx yuhwa check x.yu --json # diagnostics that name the fix
|
|
263
|
+
npx yuhwa render x.yu --text # a text preview the agent can read
|
|
251
264
|
# pnpm: pnpm dlx yuhwa guide, pnpm dlx yuhwa check x.yu --json
|
|
252
265
|
```
|
|
253
266
|
|
|
254
|
-
Point your agent at `yuhwa guide
|
|
255
|
-
|
|
267
|
+
Point your agent at `yuhwa guide` and have it check its draft with
|
|
268
|
+
`check --strict --json`. Use `render --text` to preview graphs and panels with
|
|
269
|
+
a text form before writing the SVG. The docs site also serves `llms.txt` and `llms-full.txt`.
|
|
256
270
|
Rules-file and skill snippets: [AI guide](https://ph1p.github.io/yuhwa/guide/ai).
|
|
257
271
|
|
|
258
272
|
## Editor support
|