sketchi 0.37.0 → 0.38.0
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
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
Sketchi stores canonical diagram documents and authoritative Excalidraw artifacts
|
|
19
19
|
under `~/.sketchi/diagrams`. Its manual and recovery workflows stay local;
|
|
20
|
-
generation, Universal Canvas compilation, and encrypted snapshot exchange are explicit,
|
|
21
|
-
commands.
|
|
20
|
+
generation, Universal Canvas compilation, icon drawing, and encrypted snapshot exchange are explicit,
|
|
21
|
+
credential-free network commands.
|
|
22
22
|
|
|
23
23
|
## Install
|
|
24
24
|
|
|
@@ -196,6 +196,26 @@ The endpoint defaults to
|
|
|
196
196
|
`create` command remains the separate, strictly offline command for accepted
|
|
197
197
|
flowchart, mindmap, sequence, timeline, chart, state-machine, gantt, er, class, org-chart, venn, journey, sankey, wireframe, and quadrant documents.
|
|
198
198
|
|
|
199
|
+
## Draw a logo as a hand-drawn icon
|
|
200
|
+
|
|
201
|
+
`icon draw` sends a logo (SVG, PNG, JPEG or WebP) and its name to Sketchi's
|
|
202
|
+
public icon service and writes the hand-drawn icon: an `.excalidrawlib` with one
|
|
203
|
+
library item, PNG previews at node size and four times that, and the recipe:
|
|
204
|
+
|
|
205
|
+
```sh
|
|
206
|
+
sketchi icon draw acme.svg --name "Acme"
|
|
207
|
+
sketchi icon draw logos/ --dest icons --publish
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
A folder draws every logo file directly in it, names each after its file, and
|
|
211
|
+
adds one `<folder>.excalidrawlib` pack. Each icon reports whether a judge from
|
|
212
|
+
another model family picked it out of four look-alike logos at 28 px; one it did
|
|
213
|
+
not is still written. `--publish` adds each icon to the public community set at
|
|
214
|
+
icons.sketchi.app. The service is unauthenticated and limits each client to a few
|
|
215
|
+
draws a minute (the CLI waits out a short limit) and everyone to a daily budget.
|
|
216
|
+
Use `--endpoint URL` or `SKETCHI_ICON_DRAW_ENDPOINT`, and
|
|
217
|
+
`SKETCHI_COMMUNITY_ENDPOINT`, only for preview and local testing.
|
|
218
|
+
|
|
199
219
|
## Create and work with a diagram offline
|
|
200
220
|
|
|
201
221
|
Create a canonical flowchart from inline JSON:
|
|
@@ -373,8 +393,9 @@ text output when stdout is not a terminal, `export.hint` in generate's JSON, and
|
|
|
373
393
|
`hint:` in export's status. When generate reports `Copied`, the user can also
|
|
374
394
|
paste the image themselves.
|
|
375
395
|
|
|
376
|
-
`generate`, `canvas`, `share`, and `pull` are deliberately separate,
|
|
377
|
-
commands. They remain credential-free
|
|
396
|
+
`generate`, `canvas`, `icon draw`, `share`, and `pull` are deliberately separate,
|
|
397
|
+
explicit network commands. They remain credential-free; each makes one HTTPS
|
|
398
|
+
request (`icon draw` one per logo, and one more per logo with `--publish`). Share
|
|
378
399
|
is randomized by its key and IV; pull depends on remote availability and
|
|
379
400
|
untrusted input, so neither belongs to determinism claims.
|
|
380
401
|
|