fastdraw 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +192 -2
- package/agents/AGENTS-snippet.md +10 -0
- package/agents/README.md +11 -0
- package/agents/claude-skill/fastdraw/SKILL.md +14 -0
- package/dist/cli.js +3598 -0
- package/fonts/Geist-Medium.ttf +0 -0
- package/fonts/Geist-Regular.ttf +0 -0
- package/fonts/Geist-SemiBold.ttf +0 -0
- package/fonts/GeistMono-Medium.ttf +0 -0
- package/fonts/GeistMono-Regular.ttf +0 -0
- package/fonts/InstrumentSerif-Italic.ttf +0 -0
- package/fonts/InstrumentSerif-Regular.ttf +0 -0
- package/fonts/LibreFranklin-Bold.ttf +0 -0
- package/fonts/LibreFranklin-Medium.ttf +0 -0
- package/fonts/LibreFranklin-Regular.ttf +0 -0
- package/fonts/LibreFranklin-SemiBold.ttf +0 -0
- package/fonts/Newsreader-Italic.ttf +0 -0
- package/fonts/Newsreader-Medium.ttf +0 -0
- package/fonts/Newsreader-Regular.ttf +0 -0
- package/fonts/Newsreader-SemiBold.ttf +0 -0
- package/fonts/OFL-Geist.txt +93 -0
- package/fonts/OFL-InstrumentSerif.txt +93 -0
- package/fonts/OFL-LibreFranklin.txt +93 -0
- package/fonts/OFL-Newsreader.txt +93 -0
- package/fonts/OFL-SketchHand.txt +49 -0
- package/fonts/SketchHand-Regular.ttf +0 -0
- package/guide/architecture-delta.md +52 -0
- package/guide/architecture.md +28 -0
- package/guide/axonometric-plan.md +54 -0
- package/guide/bar.md +61 -0
- package/guide/data-flow.md +42 -0
- package/guide/db-schema.md +46 -0
- package/guide/dependency.md +38 -0
- package/guide/deployment.md +46 -0
- package/guide/er.md +49 -0
- package/guide/exploded.md +53 -0
- package/guide/fishbone.md +44 -0
- package/guide/flowchart.md +22 -0
- package/guide/gantt.md +48 -0
- package/guide/guide.md +278 -0
- package/guide/heatmap.md +59 -0
- package/guide/high-level.md +38 -0
- package/guide/integration.md +33 -0
- package/guide/it-state.md +33 -0
- package/guide/journey.md +35 -0
- package/guide/kanban.md +53 -0
- package/guide/layers.md +49 -0
- package/guide/line.md +112 -0
- package/guide/look.md +174 -0
- package/guide/loop.md +45 -0
- package/guide/medallion.md +37 -0
- package/guide/nested.md +36 -0
- package/guide/org-chart.md +48 -0
- package/guide/polar.md +57 -0
- package/guide/process.md +41 -0
- package/guide/pyramid.md +46 -0
- package/guide/quadrant.md +44 -0
- package/guide/radar.md +60 -0
- package/guide/sankey.md +53 -0
- package/guide/scatter.md +73 -0
- package/guide/security-matrix.md +47 -0
- package/guide/sequence.md +39 -0
- package/guide/state.md +38 -0
- package/guide/story-map.md +29 -0
- package/guide/swimlane.md +40 -0
- package/guide/timeline.md +49 -0
- package/guide/tree.md +33 -0
- package/guide/treemap.md +67 -0
- package/guide/uml-class.md +59 -0
- package/guide/venn.md +48 -0
- package/guide/wardley.md +35 -0
- package/guide/waterfall.md +47 -0
- package/package.json +59 -4
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# UML class diagrams
|
|
2
|
+
|
|
3
|
+
Shows classes with their operations and how they relate: what inherits from what, what owns what, what only uses what. If there is no inheritance and no operation worth showing, draw an ER diagram instead.
|
|
4
|
+
|
|
5
|
+
## Building blocks
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
pm: table "«interface»\nPaymentMethod" at 520,112 360x0 stroke=accent fill=accent/0.08
|
|
9
|
+
| "+ authorize(amount: Money): AuthResult"
|
|
10
|
+
| "+ capture(ref: String): void"
|
|
11
|
+
|
|
12
|
+
card: table "Card" at 456,264 200x0
|
|
13
|
+
| "- number: String"
|
|
14
|
+
| "- expiry: Date"
|
|
15
|
+
| ---
|
|
16
|
+
| "+ mask(): String"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- A class is a `table` with one cell per row: the header is the class name, each row is one member written whole, `+ name(arg: Type): Return` or `- name: Type`. `+` public, `-` private, `#` protected.
|
|
20
|
+
- Attributes first, then `| ---`, then operations. A class with only one of the two has no divider.
|
|
21
|
+
- An interface has `«interface»` on a first header line, its name on the second: `table "«interface»\nRenderer"`. An abstract class is the same with `«abstract»`. Mark nothing else with a stereotype. A two-line header makes the table 8px off the 4px grid; the hint is expected.
|
|
22
|
+
- The look has no class style; the built-in `table` is the plain class. The one class or interface the others implement or extend takes `stroke=accent fill=accent/0.08`.
|
|
23
|
+
|
|
24
|
+
## Relationships
|
|
25
|
+
|
|
26
|
+
The line end carries the meaning, so use exactly these:
|
|
27
|
+
|
|
28
|
+
| Relationship | Write |
|
|
29
|
+
|---|---|
|
|
30
|
+
| Inheritance (extends) | `child.top -> parent.bottom head=triangle` |
|
|
31
|
+
| Realization (implements) | `impl.top -> iface.bottom style=return head=triangle` |
|
|
32
|
+
| Composition (the part dies with the owner) | `owner -- part style=arrow tail=diamond-solid` |
|
|
33
|
+
| Aggregation (the part lives on) | `owner -- part style=arrow tail=diamond` |
|
|
34
|
+
| Association | `a -> b head=open` |
|
|
35
|
+
| Dependency (uses) | `a -> b "uses" style=return head=open` |
|
|
36
|
+
|
|
37
|
+
- The triangle points at the parent; the diamond sits on the owner.
|
|
38
|
+
- Lines into the accent class take `stroke=accent`. Together with the class they are the diagram's accent; nothing else is.
|
|
39
|
+
- Composition, aggregation and association need a multiplicity at both ends (`1`, `0..*`, `1..*`): `text "1..*" at x,y style=small`, baseline 8px above a horizontal line and starting 24px from the box edge (clear of a diamond). At the right-hand end of a horizontal line, the text must end 24px before the box, so write it `anchor=end` at that x (`text "0..*" at 688,176 style=small anchor=end` for a box starting at 712). On a vertical line it sits 8px to the right and 20px from the box.
|
|
40
|
+
|
|
41
|
+
## Composition
|
|
42
|
+
|
|
43
|
+
- Four or five classes is normal, seven the limit; eight relationships at most; five members per compartment (put `"…"` as the last row if there are more). Leave out getters and setters. Past the limit, split by package.
|
|
44
|
+
- Title at 40,52 (`style=h1`); the top row of classes at y=112. Parents and interfaces go above, children in a row below them, 64px or more below the parent's bottom edge (a table is 32 + 24 per row high, 8 more with a two-line header). Put each child's centre under the parent so the line is straight: `card.top -> pm.bottom@556`, where 556 is the child's centre x. Make the parent wide enough to span its children's centres: children of width w, gap g, n of them start at x0; the parent is at `x0`, `n*w + (n-1)*g` wide, or narrower as long as each centre `x0 + w/2 + i*(w+g)` stays inside it.
|
|
45
|
+
- A class that depends on the interface, or owns the parent, sits beside it on the same row, at least 120px away, tops level, and the two rows of that relationship at the same y so the line is straight. With a parent at the right and its children below, the left of the lower row stays free: put the interface and the classes that use it there instead of on the top row if the picture is lopsided.
|
|
46
|
+
- Classes joined by composition or association share a row, 120px or more apart, so the diamond and both multiplicities fit.
|
|
47
|
+
- An association between classes that are not neighbours runs under the row: `order.bottom -> cust.bottom head=open via=172,580;832,580`, 36px below the boxes.
|
|
48
|
+
- Give every table a width: the longest member at about 6px a character plus 48. Heights follow the rows; never pad classes to equal height.
|
|
49
|
+
|
|
50
|
+
## Legend
|
|
51
|
+
|
|
52
|
+
`legend at 40,Y focal="…"` for the accent class. Under it, draw the six relationships as 40px samples with a `caption` each, on a row at Y+73 (text baseline Y+76), even the ones the diagram does not use: the reader needs the whole vocabulary to tell the ends apart. Each sample starts at the previous start plus `88 + 6 * (characters of the previous caption)`: 154 after "Inheritance", 196 after "Composition · owns". Six samples take about 1000px; in a narrower diagram use two rows of three, 24px apart.
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
40,685 -> 80,685 head=triangle
|
|
56
|
+
text "Inheritance" at 88,688 style=caption
|
|
57
|
+
348,685 -- 388,685 style=arrow tail=diamond-solid
|
|
58
|
+
text "Composition · owns" at 396,688 style=caption
|
|
59
|
+
```
|
package/guide/venn.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Venn diagrams
|
|
2
|
+
|
|
3
|
+
Shows two or three sets as circles and what they share where the circles overlap.
|
|
4
|
+
|
|
5
|
+
## Building blocks
|
|
6
|
+
|
|
7
|
+
Title at `40,52` (`style=h1`). The top circle starts at y=96, so nothing sits under the title.
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
// three equal sets, r=140: centres 500,236 · 428,376 · 572,376
|
|
11
|
+
want: ellipse at 360,96 280x280 fill=ink/0.04 stroke=ink sw=1 overlap=ok mask=0
|
|
12
|
+
build: ellipse at 288,236 280x280 fill=muted/0.05 stroke=muted sw=1 overlap=ok mask=0
|
|
13
|
+
pay: ellipse at 432,236 280x280 fill=soft/0.05 stroke=soft sw=1 overlap=ok mask=0
|
|
14
|
+
|
|
15
|
+
// the region all three share
|
|
16
|
+
core: polygon at 432,256 fill=accent stroke=none overlap=ok
|
|
17
|
+
points=68,0;57,7;47,15;38,24;30,33;23,44;16,55;11,66;6,78;3,90;1,103;14,109;27,114;40,117;54,119;68,120;82,119;96,117;109,114;122,109;135,103;133,90;130,78;125,66;120,55;113,44;106,33;98,24;89,15;79,7
|
|
18
|
+
text "Shippable" at 500,324 anchor=middle size=14 weight=600 color=#ffffff
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- Every circle needs `overlap=ok` (or `check` reports the overlap) and `mask=0`. Without `mask=0` a shape hides what is under it, so the later circles would cut the outlines of the earlier ones and the tints would not add up where sets overlap.
|
|
22
|
+
- Give each set its own outline colour (`ink`, `muted`, `soft`) and a fill of the same colour at 0.04 to 0.05.
|
|
23
|
+
|
|
24
|
+
## Composition
|
|
25
|
+
|
|
26
|
+
- Two or three circles. With four or more the regions cannot be read; use a table with `align=center grid=1` instead.
|
|
27
|
+
- Three sets: the layout above (the lowest circles end at y=516). The centres form a triangle; each circle is 280x280. To move it, shift every `at` by the same amount.
|
|
28
|
+
- Two sets: circles of 280x280 side by side with centres 176px apart, for example `at 272,96` and `at 448,96`. The shared lens is then 104 wide and 218 high, at the second circle's `x` and the circles' `y + 31` (`at 448,127`). Names go at 360,236 and 640,236, the lens label at 500,236:
|
|
29
|
+
`points=52,0;74,22;90,49;101,78;104,109;101,140;90,169;74,196;52,218;30,196;14,169;3,140;0,109;3,78;14,49;30,22`
|
|
30
|
+
- For another radius, keep the proportions and stretch the polygon by giving it a size (`WxH`) scaled by the same factor as the circles.
|
|
31
|
+
- Equal circles say the sets are comparable. If one set is clearly larger, make its circle larger; then trace the shared region yourself: take points every 10 degrees along each circle edge that bounds it.
|
|
32
|
+
- The circles must really overlap. If two sets share nothing, a Venn diagram is the wrong kind.
|
|
33
|
+
|
|
34
|
+
## Focus
|
|
35
|
+
|
|
36
|
+
- One region is what the diagram is about, usually the one all sets share. Draw it as a polygon over the circles, with `stroke=none` (an outline would show the polygon's corners). Fill it with `accent` (never `ink`) and write on it in white (`color=#ffffff` on every line: free text is not recoloured for you), or fill it with `accent/0.12` and write in ink.
|
|
37
|
+
- Never mark two regions. The other overlaps stay as the plain darker tint the circles make by themselves.
|
|
38
|
+
|
|
39
|
+
## Text
|
|
40
|
+
|
|
41
|
+
- Name each set inside the part of its circle that no other circle covers: plain text `size=14 weight=600 color=ink`, with an optional line 16px below in `eyebrow size=9`. Centre both with `anchor=middle`. In the layout above: 500,152 for the top set, 364,396 and 636,396 for the bottom two (the optional line sits 16px under).
|
|
42
|
+
- Work out the width of every label and keep it at least 8px clear of every circle outline. A label that crosses an outline is the most common fault in this kind.
|
|
43
|
+
- A label for an overlap goes inside the overlap, one short word (about 80px at most), `anchor=middle size=11 weight=600 color=ink`. In the three-set layout the three two-set regions are centred at 422,282 (top and left sets), 578,282 (top and right) and 500,436 (left and right); those are the baselines' x and y. If the overlap is too small for the word, put the text in clear space outside and join it with a thin line (`x,y -- x,y style=rule stroke=ink/0.3`).
|
|
44
|
+
- Every region the reader is expected to notice has a label.
|
|
45
|
+
|
|
46
|
+
## Legend
|
|
47
|
+
|
|
48
|
+
Usually none: the labels say everything. Add a one-line `caption` under the circles only when the size of the circles means something.
|
package/guide/wardley.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Wardley maps
|
|
2
|
+
|
|
3
|
+
Shows the parts a product is made of, placed by two things: how close each is to the user (up) and how far it has travelled from new idea to commodity (right). It answers "what do we build, what do we buy, and what is about to change". It is a strategy picture: it says nothing about how requests travel, so no protocols and no direction of traffic. For that, draw an architecture diagram.
|
|
4
|
+
|
|
5
|
+
FastDraw has no map elements. You draw two axis lines, three dividers, dots, names and straight links at exact coordinates. A dot's position is the data, so choose positions first and never move a dot to make a line tidier.
|
|
6
|
+
|
|
7
|
+
## Composition
|
|
8
|
+
|
|
9
|
+
- Title: `text "..." at 40,52 style=h1`; the plot starts at y=100.
|
|
10
|
+
- Plot area 800px wide and about 320px high, with 128px free on the left for the axis words: axes `128,100 -- 128,420 stroke=ink/0.2 sw=1` and `128,420 -- 928,420 stroke=ink/0.2 sw=1`.
|
|
11
|
+
- Four bands of 200px: Genesis, Custom-built, Product, Commodity. Divide them with `328,100 -- 328,420 style=rule dash=4,4` (and at 528, 728). Name each under the axis: `text "Genesis" at 228,438 style=eyebrow anchor=middle`.
|
|
12
|
+
- The vertical axis gets words, not numbers: `text "Visible to" at 116,108 style=eyebrow anchor=end color=ink`, `"the user"` 12px lower, and `"Invisible"` at the bottom (at 116,420). A rotated axis title (`rotate=-90`) is not needed.
|
|
13
|
+
- A component is a 12px dot: `id: ellipse at cx-6,cy-6 12x12 fill=paper stroke=ink`. Place it inside a band (the middle of the band unless you mean "early" or "late" in it), not on a divider. The user's need is the top dot.
|
|
14
|
+
- Give every dot its own height: step down 32 to 48px from one dot to the next, so no two links lie on top of each other and names have room.
|
|
15
|
+
- Three dots on one chain must not sit on one straight line, or the two links read as one long line and the middle dot looks like a bend that is not there. Move the middle one within its band (early or late) until the chain bends by a clear angle, at least 15 degrees.
|
|
16
|
+
- Nine dots at most.
|
|
17
|
+
|
|
18
|
+
## Links
|
|
19
|
+
|
|
20
|
+
- A link means "needs". Draw it as a thin straight line from the centre of one dot to the centre of the other, as free points: `428,132 -- 628,176 sw=0.8`. Do not write `need -- chat`: that attaches to the edge of the dot's box and the lines stop pointing at the centre. Lines are drawn under dots, so the paper fill hides the ends.
|
|
21
|
+
- No arrowheads and no labels on links. Twelve links at most. Every dot has at least one link; a dot with none does not belong on the map.
|
|
22
|
+
- After placing, look for a link that runs through another dot or crosses another link where swapping two dots of the same band would avoid it. Swap them.
|
|
23
|
+
|
|
24
|
+
## Names
|
|
25
|
+
|
|
26
|
+
- `text "Chat UI" at x,y weight=600`. Put the name beside the dot on the side where no link leaves it: to the right (`at cx+16,cy+4`), to the left (`at cx-12,cy+4 anchor=end`), above (`at cx,cy-12 anchor=middle`) or below-left. Most links run down and to the right, so right of the dot is free for the last dot of a chain and above-left is free for the first.
|
|
27
|
+
- A name must not touch a link. Check each one in the PNG.
|
|
28
|
+
|
|
29
|
+
## Emphasis
|
|
30
|
+
|
|
31
|
+
The accent marks what is moving: the dot (`stroke=accent sw=1.5`) and a short dashed arrow from its right edge towards the next band, `cx+6,cy -> cx+82,cy style=primary dash=5,4`. Movement only ever points right. Two moving components at most. Do not label the arrow unless the label adds a date or a cause.
|
|
32
|
+
|
|
33
|
+
## Legend
|
|
34
|
+
|
|
35
|
+
One statement, 24px under the band names (y=468 for the plot above): `legend at 40,468 dot.ink="Component" line.muted="Needs" dot.accent="Moving to the next stage"`. The legend dot is filled while the map's dots are hollow; that is fine, the meaning is clear from the names.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Waterfall charts
|
|
2
|
+
|
|
3
|
+
Shows how a starting total becomes an end total through a series of additions and subtractions: a budget bridge, a headcount walk. Every bar is either a total standing on the axis or a step floating between two running totals.
|
|
4
|
+
|
|
5
|
+
## Building blocks
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
// title at 40,52; plot 96,104 to 960,424; y 0..400 over 320px, so 0.8px per unit: value v is at y = 424 - 0.8v
|
|
9
|
+
wf: chart at 96,104 864x320 y=0..400 step=100 labels=1 stack=1 key=0 ytitle="Cloud spend · $k / month"
|
|
10
|
+
x="FY25 base,Headcount,Reserved inst.,ML workloads,Storage tiering,FY26 plan"
|
|
11
|
+
| bars "Total" 0,240 _ _ _ _ 0,236 fill=ink
|
|
12
|
+
| bars "Added" _ 240,304 _ 266,288 _ _ fill=muted
|
|
13
|
+
| bars "Removed" _ _ 304,266 _ _ _ fill=soft
|
|
14
|
+
| bars "Focus" _ _ _ _ 288,236 _ fill=accent
|
|
15
|
+
|
|
16
|
+
213,232 -- 267,232 stroke=ink/0.55 sw=1 // carry (plain line, --): the total of 240 crosses the gap to the next bar
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- Write every bar as a pair `from,to`: the running total before it and after it. A total is `0,value`. A step down is written high to low (`304,266`); its label is then printed below the bar with a minus sign.
|
|
20
|
+
- One `bars` series per kind of bar, with `_` in the columns that belong to another series, and `stack=1` on the chart so that each bar keeps the full column width.
|
|
21
|
+
- Check the sums before drawing: each `from` equals the `to` of the bar before it, and the last step ends on the end total. A waterfall that does not add up is wrong, not approximate.
|
|
22
|
+
|
|
23
|
+
## Composition
|
|
24
|
+
|
|
25
|
+
- Title at 40,52 (`style=h1`). Plot `at 96,104 864x320` (the axis title sits above the plot, clear of the heading), legend at y=472.
|
|
26
|
+
- Three to eight bars, totals included, in the order of the story: start total, steps, end total. One subtotal in the middle at most (a pair `0,value` in the Total series). Merge small steps into one named "Other".
|
|
27
|
+
- The y axis starts at 0 (`y=0..N`). Pick N and the plot height so that a unit is a simple number of px; it makes the carry lines easy to place.
|
|
28
|
+
- Leave out a step of zero. It would be an invisible bar holding a column.
|
|
29
|
+
- All bars are in one unit, named once in `ytitle=`.
|
|
30
|
+
|
|
31
|
+
## Carry lines
|
|
32
|
+
|
|
33
|
+
A thin line joins each bar to the next at the running total between them. Without it the chart is bars at odd heights. The chart element does not draw these; add one plain line per gap:
|
|
34
|
+
|
|
35
|
+
- There are n-1 carries, one per gap. y is the level of the running total after bar i: `plot bottom - value * px per unit` (424 - 0.8v here).
|
|
36
|
+
- With n columns, column width `cw = plot width / n`, column i (from 0) is centred at `cx_i = plot x + cw * (i + 0.5)`, and a bar reaches `h = 0.32 * cw - 1` px either side. Carry i runs from `cx_i + h` to `cx_(i+1) - h` (n=6, 864px: cw 144, h 45, so the first carry is x=213 to 267; n=7: cw 123.4, h 38.5, first carry 197 to 242).
|
|
37
|
+
- `stroke=ink/0.55 sw=1`, written with `--`. These coordinates follow the data; do not round them to multiples of 4.
|
|
38
|
+
|
|
39
|
+
## Colour
|
|
40
|
+
|
|
41
|
+
- Totals `fill=ink`, the heaviest marks. Increases `fill=muted`, decreases `fill=soft`: direction is told by dark and light, not by red and green.
|
|
42
|
+
- At most one step, the one the chart is about, takes `fill=accent`.
|
|
43
|
+
- `labels=1` prints every value: increases with a plus sign (`+60`), decreases with a minus (`-45`), totals bare. The bar colour says the same.
|
|
44
|
+
|
|
45
|
+
## Legend
|
|
46
|
+
|
|
47
|
+
`legend at 40,472 swatch.ink="Start and end total" swatch.muted="Added" swatch.soft="Removed" swatch.accent="..."`: one entry per colour used.
|
package/package.json
CHANGED
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastdraw",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Diagrams that an AI agent writes as text and a person edits on a canvas",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"diagram",
|
|
7
|
+
"ai",
|
|
8
|
+
"agent",
|
|
9
|
+
"claude-code",
|
|
10
|
+
"codex",
|
|
11
|
+
"svg",
|
|
12
|
+
"architecture-diagram",
|
|
13
|
+
"flowchart"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://fastdraw.dev",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/coccor/fastdraw.git"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"bin": {
|
|
23
|
+
"fastdraw": "dist/cli.js"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist/cli.js",
|
|
27
|
+
"guide",
|
|
28
|
+
"fonts",
|
|
29
|
+
"agents",
|
|
30
|
+
"README.md",
|
|
31
|
+
"LICENSE"
|
|
32
|
+
],
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=20"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"test": "node --disable-warning=ExperimentalWarning --test test/*.test.ts",
|
|
38
|
+
"dev": "vite",
|
|
39
|
+
"build:editor": "vite build",
|
|
40
|
+
"typecheck": "tsc -p .",
|
|
41
|
+
"test:e2e": "playwright test",
|
|
42
|
+
"build:cli": "esbuild src/cli.ts --bundle --platform=node --format=esm --target=node20 --external:@resvg/resvg-js --banner:js=\"#!/usr/bin/env node\" --outfile=dist/cli.js",
|
|
43
|
+
"prepack": "npm run build:cli"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@resvg/resvg-js": "^2.6.2"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@playwright/test": "^1.65.0",
|
|
50
|
+
"@types/node": "^22.20.5",
|
|
51
|
+
"@types/react": "^18.3.31",
|
|
52
|
+
"@types/react-dom": "^18.3.7",
|
|
53
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
54
|
+
"esbuild": "^0.25.12",
|
|
55
|
+
"lucide-react": "^1.72.0",
|
|
56
|
+
"react": "^18.3.1",
|
|
57
|
+
"react-dom": "^18.3.1",
|
|
58
|
+
"typescript": "^5.9.3",
|
|
59
|
+
"vite": "^6.4.6"
|
|
60
|
+
}
|
|
61
|
+
}
|