forma-diagrams 0.5.2

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.
Files changed (109) hide show
  1. package/Dockerfile +16 -0
  2. package/LICENSE +21 -0
  3. package/README.md +113 -0
  4. package/THIRD_PARTY_NOTICES.md +20 -0
  5. package/bin/forma +3 -0
  6. package/deploy/.env.example +11 -0
  7. package/deploy/Caddyfile +4 -0
  8. package/deploy/compose.yml +38 -0
  9. package/dist/assets/IBMPlexSans-Regular-Bl2SjS7V.ttf +0 -0
  10. package/dist/assets/IBMPlexSans-SemiBold-B9auKknr.ttf +0 -0
  11. package/dist/assets/elk.bundled-Y7ymokgr.js +24 -0
  12. package/dist/assets/index-_kg9cdik.css +1 -0
  13. package/dist/assets/index-al0xDdTG.js +452 -0
  14. package/dist/fonts/IBMPlexSans-Regular.ttf +0 -0
  15. package/dist/fonts/IBMPlexSans-SemiBold.ttf +0 -0
  16. package/dist/fonts/OFL.txt +93 -0
  17. package/dist/index.html +14 -0
  18. package/dist/licenses/FORMA_LICENSE.txt +21 -0
  19. package/dist/licenses/THIRD_PARTY_LICENSES.txt +11601 -0
  20. package/docs/api.md +41 -0
  21. package/docs/decisions/001-foundation.md +57 -0
  22. package/docs/decisions/002-composition-and-human-edits.md +47 -0
  23. package/docs/decisions/003-general-composition.md +30 -0
  24. package/docs/decisions/004-library-and-distribution.md +33 -0
  25. package/docs/decisions/005-organizational-hosting.md +33 -0
  26. package/docs/decisions/006-hosted-agent-access.md +25 -0
  27. package/docs/format.md +132 -0
  28. package/docs/gallery.md +73 -0
  29. package/docs/images/architecture.png +0 -0
  30. package/docs/images/editor.png +0 -0
  31. package/docs/images/gallery/architecture.png +0 -0
  32. package/docs/images/gallery/decision.png +0 -0
  33. package/docs/images/gallery/development-signal.png +0 -0
  34. package/docs/images/gallery/development.png +0 -0
  35. package/docs/images/gallery/editor-roundtrip.png +0 -0
  36. package/docs/images/gallery/entities.png +0 -0
  37. package/docs/images/gallery/mindmap.png +0 -0
  38. package/docs/images/gallery/organization.png +0 -0
  39. package/docs/images/gallery/timeline.png +0 -0
  40. package/docs/images/release.png +0 -0
  41. package/docs/install.md +50 -0
  42. package/docs/plans/mvp.md +24 -0
  43. package/docs/self-hosting.md +167 -0
  44. package/docs/verification-v2.md +41 -0
  45. package/docs/verification-v3.md +16 -0
  46. package/docs/verification-v4.1.md +35 -0
  47. package/docs/verification-v4.2.md +20 -0
  48. package/docs/verification-v4.3.md +5 -0
  49. package/docs/verification-v4.md +31 -0
  50. package/docs/verification-v5.1.md +7 -0
  51. package/docs/verification-v5.2.md +7 -0
  52. package/docs/verification-v5.md +7 -0
  53. package/docs/verification.md +91 -0
  54. package/examples/design-systems/atelier.json +53 -0
  55. package/examples/design-systems/signal.json +53 -0
  56. package/examples/gallery/architecture.forma.json +178 -0
  57. package/examples/gallery/decision.forma.json +182 -0
  58. package/examples/gallery/development-signal.forma.json +299 -0
  59. package/examples/gallery/development.forma.json +299 -0
  60. package/examples/gallery/entities.forma.json +123 -0
  61. package/examples/gallery/mindmap.forma.json +158 -0
  62. package/examples/gallery/organization.forma.json +151 -0
  63. package/examples/gallery/timeline.forma.json +138 -0
  64. package/examples/platform.forma.json +116 -0
  65. package/examples/release.forma.json +58 -0
  66. package/examples/roundtrip/agent-continued.forma.json +310 -0
  67. package/examples/roundtrip/agent-patch.json +7 -0
  68. package/examples/roundtrip/human-edited.forma.json +309 -0
  69. package/package.json +81 -0
  70. package/packages/cli/bin.mjs +3 -0
  71. package/packages/cli/src/agent-access.ts +232 -0
  72. package/packages/cli/src/blob-store.ts +241 -0
  73. package/packages/cli/src/file-library.ts +179 -0
  74. package/packages/cli/src/google.ts +51 -0
  75. package/packages/cli/src/hosted.ts +498 -0
  76. package/packages/cli/src/http.ts +67 -0
  77. package/packages/cli/src/index.ts +397 -0
  78. package/packages/cli/src/mcp.ts +114 -0
  79. package/packages/cli/src/remote.ts +228 -0
  80. package/packages/cli/src/server.ts +69 -0
  81. package/packages/cli/src/signed-cookie.ts +42 -0
  82. package/packages/core/src/align.ts +237 -0
  83. package/packages/core/src/document.ts +408 -0
  84. package/packages/core/src/font-metrics.json +1 -0
  85. package/packages/core/src/geometry.ts +463 -0
  86. package/packages/core/src/index.ts +12 -0
  87. package/packages/core/src/inspect.ts +230 -0
  88. package/packages/core/src/layout.ts +450 -0
  89. package/packages/core/src/render.ts +182 -0
  90. package/packages/core/src/resolve-style.ts +29 -0
  91. package/packages/core/src/scene.ts +40 -0
  92. package/packages/core/src/styles.ts +122 -0
  93. package/packages/core/src/text.ts +81 -0
  94. package/packages/core/src/theme.ts +33 -0
  95. package/public/fonts/IBMPlexSans-Regular.ttf +0 -0
  96. package/public/fonts/IBMPlexSans-SemiBold.ttf +0 -0
  97. package/public/fonts/OFL.txt +93 -0
  98. package/schema/design-system.v1.schema.json +734 -0
  99. package/schema/forma.v1.schema.json +273 -0
  100. package/schema/forma.v2.schema.json +1756 -0
  101. package/skills/forma/SKILL.md +20 -0
  102. package/skills/forma/references/composition.md +11 -0
  103. package/skills/forma/references/hosted.md +28 -0
  104. package/skills/forma-architecture/SKILL.md +14 -0
  105. package/skills/forma-entities/SKILL.md +14 -0
  106. package/skills/forma-flow/SKILL.md +14 -0
  107. package/skills/forma-mindmap/SKILL.md +14 -0
  108. package/skills/forma-organization/SKILL.md +14 -0
  109. package/skills/forma-timeline/SKILL.md +14 -0
@@ -0,0 +1,310 @@
1
+ {
2
+ "description": "A custom visual explanation / Parallel generation changes where engineering attention is needed.",
3
+ "edges": [
4
+ {
5
+ "id": "brief-implement",
6
+ "source": "brief",
7
+ "style": "solid",
8
+ "target": "implement"
9
+ },
10
+ {
11
+ "id": "implement-review",
12
+ "source": "implement",
13
+ "style": "solid",
14
+ "target": "review"
15
+ },
16
+ {
17
+ "id": "review-deliver",
18
+ "source": "review",
19
+ "style": "solid",
20
+ "target": "deliver"
21
+ },
22
+ {
23
+ "id": "intent-streamA",
24
+ "source": "intent",
25
+ "style": "solid",
26
+ "target": "streamA"
27
+ },
28
+ {
29
+ "id": "intent-streamB",
30
+ "source": "intent",
31
+ "style": "solid",
32
+ "target": "streamB"
33
+ },
34
+ {
35
+ "id": "intent-streamC",
36
+ "source": "intent",
37
+ "style": "solid",
38
+ "target": "streamC"
39
+ },
40
+ {
41
+ "id": "streamA-verify",
42
+ "source": "streamA",
43
+ "style": "solid",
44
+ "target": "verify"
45
+ },
46
+ {
47
+ "id": "streamB-verify",
48
+ "source": "streamB",
49
+ "style": "solid",
50
+ "target": "verify"
51
+ },
52
+ {
53
+ "id": "streamC-verify",
54
+ "source": "streamC",
55
+ "style": "solid",
56
+ "target": "verify"
57
+ },
58
+ {
59
+ "appearance": {
60
+ "arrowEnd": "open",
61
+ "dash": "dotted",
62
+ "strokeWidth": 2
63
+ },
64
+ "id": "verify-release",
65
+ "label": "Evidence accepted",
66
+ "source": "verify",
67
+ "style": "solid",
68
+ "target": "release"
69
+ }
70
+ ],
71
+ "groups": [
72
+ {
73
+ "color": "slate",
74
+ "id": "traditional",
75
+ "label": "Traditional"
76
+ },
77
+ {
78
+ "color": "slate",
79
+ "id": "enabled",
80
+ "label": "AI-enabled"
81
+ }
82
+ ],
83
+ "layout": {
84
+ "direction": "DOWN",
85
+ "mode": "grid",
86
+ "spacing": "comfortable"
87
+ },
88
+ "nodes": [
89
+ {
90
+ "description": "One work stream",
91
+ "emphasis": "normal",
92
+ "group": "traditional",
93
+ "id": "brief",
94
+ "kind": "service",
95
+ "label": "Brief",
96
+ "placement": {
97
+ "column": 0,
98
+ "row": 0
99
+ },
100
+ "role": "quiet",
101
+ "style": {
102
+ "width": 150
103
+ }
104
+ },
105
+ {
106
+ "description": "Serial development",
107
+ "emphasis": "normal",
108
+ "group": "traditional",
109
+ "id": "implement",
110
+ "kind": "service",
111
+ "label": "Implement",
112
+ "placement": {
113
+ "column": 0,
114
+ "row": 1
115
+ },
116
+ "style": {
117
+ "width": 150
118
+ }
119
+ },
120
+ {
121
+ "description": "One change at a time",
122
+ "emphasis": "normal",
123
+ "group": "traditional",
124
+ "id": "review",
125
+ "kind": "service",
126
+ "label": "Review",
127
+ "placement": {
128
+ "column": 0,
129
+ "row": 2
130
+ },
131
+ "style": {
132
+ "width": 150
133
+ }
134
+ },
135
+ {
136
+ "description": "Steady throughput",
137
+ "emphasis": "normal",
138
+ "group": "traditional",
139
+ "id": "deliver",
140
+ "kind": "service",
141
+ "label": "Deliver",
142
+ "placement": {
143
+ "column": 0,
144
+ "row": 3
145
+ },
146
+ "role": "quiet",
147
+ "style": {
148
+ "width": 150
149
+ }
150
+ },
151
+ {
152
+ "description": "One clear specification",
153
+ "emphasis": "normal",
154
+ "group": "enabled",
155
+ "id": "intent",
156
+ "kind": "service",
157
+ "label": "Shared intent",
158
+ "placement": {
159
+ "column": 2,
160
+ "row": 0
161
+ },
162
+ "role": "emphasis"
163
+ },
164
+ {
165
+ "description": "Compare alternative approaches",
166
+ "emphasis": "normal",
167
+ "group": "enabled",
168
+ "id": "streamA",
169
+ "kind": "service",
170
+ "label": "Explore",
171
+ "placement": {
172
+ "column": 1,
173
+ "row": 1
174
+ }
175
+ },
176
+ {
177
+ "description": "Parallel work packages",
178
+ "emphasis": "normal",
179
+ "group": "enabled",
180
+ "id": "streamB",
181
+ "kind": "service",
182
+ "label": "Implement",
183
+ "placement": {
184
+ "column": 2,
185
+ "row": 1
186
+ }
187
+ },
188
+ {
189
+ "description": "Independent checks",
190
+ "emphasis": "normal",
191
+ "group": "enabled",
192
+ "id": "streamC",
193
+ "kind": "service",
194
+ "label": "Test",
195
+ "placement": {
196
+ "column": 3,
197
+ "row": 1
198
+ }
199
+ },
200
+ {
201
+ "description": "Independent evidence before release",
202
+ "emphasis": "normal",
203
+ "group": "enabled",
204
+ "id": "verify",
205
+ "kind": "service",
206
+ "label": "Verify with evidence",
207
+ "placement": {
208
+ "column": 2,
209
+ "row": 2
210
+ },
211
+ "role": "caution",
212
+ "style": {
213
+ "dash": "dashed",
214
+ "fill": "#fff0be",
215
+ "fontFamily": "IBM Plex Sans",
216
+ "fontSize": 18,
217
+ "radius": 0,
218
+ "secondary": "#657367",
219
+ "stroke": "#4a4a45",
220
+ "strokeWidth": 2,
221
+ "text": "#243b30"
222
+ }
223
+ },
224
+ {
225
+ "description": "Verified outcomes, not generated volume",
226
+ "emphasis": "normal",
227
+ "group": "enabled",
228
+ "id": "release",
229
+ "kind": "service",
230
+ "label": "Release with confidence",
231
+ "placement": {
232
+ "column": 2,
233
+ "row": 3
234
+ },
235
+ "role": "emphasis"
236
+ }
237
+ ],
238
+ "presentation": {
239
+ "designSystem": {
240
+ "canvas": {
241
+ "background": "#f7f5ef",
242
+ "border": "#d8ded4",
243
+ "secondary": "#69736b",
244
+ "text": "#242c29"
245
+ },
246
+ "edge": {
247
+ "arrowEnd": "filled",
248
+ "routing": "straight",
249
+ "stroke": "#64776a",
250
+ "strokeWidth": 1.6
251
+ },
252
+ "group": {
253
+ "dash": "solid",
254
+ "fill": "#eeeee5",
255
+ "radius": 4,
256
+ "stroke": "#cdd3c6",
257
+ "text": "#526849"
258
+ },
259
+ "id": "atelier",
260
+ "name": "Atelier / editorial",
261
+ "node": {
262
+ "fill": "#fffef9",
263
+ "fontFamily": "IBM Plex Sans",
264
+ "fontSize": 16,
265
+ "padding": 22,
266
+ "radius": 2,
267
+ "secondary": "#657367",
268
+ "shape": "rect",
269
+ "stroke": "#c7d0c3",
270
+ "text": "#243b30",
271
+ "width": 220
272
+ },
273
+ "revision": "1.0.0",
274
+ "roles": {
275
+ "caution": {
276
+ "fill": "#fae4b6",
277
+ "stroke": "#d8b977"
278
+ },
279
+ "emphasis": {
280
+ "fill": "#dce9b9",
281
+ "stroke": "#a7be78"
282
+ },
283
+ "quiet": {
284
+ "fill": "#eeeee8",
285
+ "stroke": "#d0d3c9"
286
+ }
287
+ },
288
+ "spacing": {
289
+ "layer": 80,
290
+ "node": 64
291
+ },
292
+ "version": 1
293
+ },
294
+ "nodes": {
295
+ "verify": {
296
+ "position": {
297
+ "x": 568,
298
+ "y": 336
299
+ },
300
+ "style": {
301
+ "fill": "#ffe5a3"
302
+ }
303
+ }
304
+ },
305
+ "theme": "paper"
306
+ },
307
+ "title": "More creation. The same verification bottleneck.",
308
+ "type": "diagram",
309
+ "version": 2
310
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "nodes": [
3
+ { "id": "verify", "description": "Independent evidence before release" },
4
+ { "id": "streamA", "description": "Compare alternative approaches" }
5
+ ],
6
+ "edges": [{ "id": "verify-release", "label": "Evidence accepted" }]
7
+ }
@@ -0,0 +1,309 @@
1
+ {
2
+ "description": "A custom visual explanation / Parallel generation changes where engineering attention is needed.",
3
+ "edges": [
4
+ {
5
+ "id": "brief-implement",
6
+ "source": "brief",
7
+ "style": "solid",
8
+ "target": "implement"
9
+ },
10
+ {
11
+ "id": "implement-review",
12
+ "source": "implement",
13
+ "style": "solid",
14
+ "target": "review"
15
+ },
16
+ {
17
+ "id": "review-deliver",
18
+ "source": "review",
19
+ "style": "solid",
20
+ "target": "deliver"
21
+ },
22
+ {
23
+ "id": "intent-streamA",
24
+ "source": "intent",
25
+ "style": "solid",
26
+ "target": "streamA"
27
+ },
28
+ {
29
+ "id": "intent-streamB",
30
+ "source": "intent",
31
+ "style": "solid",
32
+ "target": "streamB"
33
+ },
34
+ {
35
+ "id": "intent-streamC",
36
+ "source": "intent",
37
+ "style": "solid",
38
+ "target": "streamC"
39
+ },
40
+ {
41
+ "id": "streamA-verify",
42
+ "source": "streamA",
43
+ "style": "solid",
44
+ "target": "verify"
45
+ },
46
+ {
47
+ "id": "streamB-verify",
48
+ "source": "streamB",
49
+ "style": "solid",
50
+ "target": "verify"
51
+ },
52
+ {
53
+ "id": "streamC-verify",
54
+ "source": "streamC",
55
+ "style": "solid",
56
+ "target": "verify"
57
+ },
58
+ {
59
+ "appearance": {
60
+ "arrowEnd": "open",
61
+ "dash": "dotted",
62
+ "strokeWidth": 2
63
+ },
64
+ "id": "verify-release",
65
+ "source": "verify",
66
+ "style": "solid",
67
+ "target": "release"
68
+ }
69
+ ],
70
+ "groups": [
71
+ {
72
+ "color": "slate",
73
+ "id": "traditional",
74
+ "label": "Traditional"
75
+ },
76
+ {
77
+ "color": "slate",
78
+ "id": "enabled",
79
+ "label": "AI-enabled"
80
+ }
81
+ ],
82
+ "layout": {
83
+ "direction": "DOWN",
84
+ "mode": "grid",
85
+ "spacing": "comfortable"
86
+ },
87
+ "nodes": [
88
+ {
89
+ "description": "One work stream",
90
+ "emphasis": "normal",
91
+ "group": "traditional",
92
+ "id": "brief",
93
+ "kind": "service",
94
+ "label": "Brief",
95
+ "placement": {
96
+ "column": 0,
97
+ "row": 0
98
+ },
99
+ "role": "quiet",
100
+ "style": {
101
+ "width": 150
102
+ }
103
+ },
104
+ {
105
+ "description": "Serial development",
106
+ "emphasis": "normal",
107
+ "group": "traditional",
108
+ "id": "implement",
109
+ "kind": "service",
110
+ "label": "Implement",
111
+ "placement": {
112
+ "column": 0,
113
+ "row": 1
114
+ },
115
+ "style": {
116
+ "width": 150
117
+ }
118
+ },
119
+ {
120
+ "description": "One change at a time",
121
+ "emphasis": "normal",
122
+ "group": "traditional",
123
+ "id": "review",
124
+ "kind": "service",
125
+ "label": "Review",
126
+ "placement": {
127
+ "column": 0,
128
+ "row": 2
129
+ },
130
+ "style": {
131
+ "width": 150
132
+ }
133
+ },
134
+ {
135
+ "description": "Steady throughput",
136
+ "emphasis": "normal",
137
+ "group": "traditional",
138
+ "id": "deliver",
139
+ "kind": "service",
140
+ "label": "Deliver",
141
+ "placement": {
142
+ "column": 0,
143
+ "row": 3
144
+ },
145
+ "role": "quiet",
146
+ "style": {
147
+ "width": 150
148
+ }
149
+ },
150
+ {
151
+ "description": "One clear specification",
152
+ "emphasis": "normal",
153
+ "group": "enabled",
154
+ "id": "intent",
155
+ "kind": "service",
156
+ "label": "Shared intent",
157
+ "placement": {
158
+ "column": 2,
159
+ "row": 0
160
+ },
161
+ "role": "emphasis"
162
+ },
163
+ {
164
+ "description": "Alternative approaches",
165
+ "emphasis": "normal",
166
+ "group": "enabled",
167
+ "id": "streamA",
168
+ "kind": "service",
169
+ "label": "Explore",
170
+ "placement": {
171
+ "column": 1,
172
+ "row": 1
173
+ }
174
+ },
175
+ {
176
+ "description": "Parallel work packages",
177
+ "emphasis": "normal",
178
+ "group": "enabled",
179
+ "id": "streamB",
180
+ "kind": "service",
181
+ "label": "Implement",
182
+ "placement": {
183
+ "column": 2,
184
+ "row": 1
185
+ }
186
+ },
187
+ {
188
+ "description": "Independent checks",
189
+ "emphasis": "normal",
190
+ "group": "enabled",
191
+ "id": "streamC",
192
+ "kind": "service",
193
+ "label": "Test",
194
+ "placement": {
195
+ "column": 3,
196
+ "row": 1
197
+ }
198
+ },
199
+ {
200
+ "description": "Human attention is finite",
201
+ "emphasis": "normal",
202
+ "group": "enabled",
203
+ "id": "verify",
204
+ "kind": "service",
205
+ "label": "Verify with evidence",
206
+ "placement": {
207
+ "column": 2,
208
+ "row": 2
209
+ },
210
+ "role": "caution",
211
+ "style": {
212
+ "dash": "dashed",
213
+ "fill": "#fff0be",
214
+ "fontFamily": "IBM Plex Sans",
215
+ "fontSize": 18,
216
+ "radius": 0,
217
+ "secondary": "#657367",
218
+ "stroke": "#4a4a45",
219
+ "strokeWidth": 2,
220
+ "text": "#243b30"
221
+ }
222
+ },
223
+ {
224
+ "description": "Verified outcomes, not generated volume",
225
+ "emphasis": "normal",
226
+ "group": "enabled",
227
+ "id": "release",
228
+ "kind": "service",
229
+ "label": "Release with confidence",
230
+ "placement": {
231
+ "column": 2,
232
+ "row": 3
233
+ },
234
+ "role": "emphasis"
235
+ }
236
+ ],
237
+ "presentation": {
238
+ "designSystem": {
239
+ "canvas": {
240
+ "background": "#f7f5ef",
241
+ "border": "#d8ded4",
242
+ "secondary": "#69736b",
243
+ "text": "#242c29"
244
+ },
245
+ "edge": {
246
+ "arrowEnd": "filled",
247
+ "routing": "straight",
248
+ "stroke": "#64776a",
249
+ "strokeWidth": 1.6
250
+ },
251
+ "group": {
252
+ "dash": "solid",
253
+ "fill": "#eeeee5",
254
+ "radius": 4,
255
+ "stroke": "#cdd3c6",
256
+ "text": "#526849"
257
+ },
258
+ "id": "atelier",
259
+ "name": "Atelier / editorial",
260
+ "node": {
261
+ "fill": "#fffef9",
262
+ "fontFamily": "IBM Plex Sans",
263
+ "fontSize": 16,
264
+ "padding": 22,
265
+ "radius": 2,
266
+ "secondary": "#657367",
267
+ "shape": "rect",
268
+ "stroke": "#c7d0c3",
269
+ "text": "#243b30",
270
+ "width": 220
271
+ },
272
+ "revision": "1.0.0",
273
+ "roles": {
274
+ "caution": {
275
+ "fill": "#fae4b6",
276
+ "stroke": "#d8b977"
277
+ },
278
+ "emphasis": {
279
+ "fill": "#dce9b9",
280
+ "stroke": "#a7be78"
281
+ },
282
+ "quiet": {
283
+ "fill": "#eeeee8",
284
+ "stroke": "#d0d3c9"
285
+ }
286
+ },
287
+ "spacing": {
288
+ "layer": 80,
289
+ "node": 64
290
+ },
291
+ "version": 1
292
+ },
293
+ "nodes": {
294
+ "verify": {
295
+ "position": {
296
+ "x": 568,
297
+ "y": 336
298
+ },
299
+ "style": {
300
+ "fill": "#ffe5a3"
301
+ }
302
+ }
303
+ },
304
+ "theme": "paper"
305
+ },
306
+ "title": "More creation. The same verification bottleneck.",
307
+ "type": "diagram",
308
+ "version": 2
309
+ }
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "forma-diagrams",
3
+ "version": "0.5.2",
4
+ "description": "Local-first professional diagrams for agents and humans",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "engines": {
8
+ "node": ">=22"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "keywords": [
14
+ "diagrams",
15
+ "diagramming",
16
+ "cli",
17
+ "agents"
18
+ ],
19
+ "bin": {
20
+ "forma": "bin/forma"
21
+ },
22
+ "exports": {
23
+ ".": "./packages/core/src/index.ts"
24
+ },
25
+ "scripts": {
26
+ "dev": "vite --host 127.0.0.1",
27
+ "build": "tsc --noEmit && node scripts/licenses.mjs && vite build",
28
+ "preview": "vite preview --host 127.0.0.1",
29
+ "test": "node --import tsx --test tests/*.test.ts",
30
+ "forma": "node --import tsx packages/cli/src/index.ts",
31
+ "check": "npm test && npm run build",
32
+ "format": "prettier --write .",
33
+ "format:check": "prettier --check .",
34
+ "schema": "node --import tsx scripts/schema.ts",
35
+ "prepack": "npm run build"
36
+ },
37
+ "dependencies": {
38
+ "@modelcontextprotocol/sdk": "^1.30.0",
39
+ "@resvg/resvg-js": "^2.6.2",
40
+ "@vercel/blob": "^2.8.0",
41
+ "@xyflow/react": "^12.10.0",
42
+ "elkjs": "^0.11.0",
43
+ "google-auth-library": "^11.1.0",
44
+ "lucide-react": "^0.468.0",
45
+ "react": "^19.0.0",
46
+ "react-dom": "^19.0.0",
47
+ "tsx": "^4.19.2",
48
+ "zod": "^4.0.0"
49
+ },
50
+ "devDependencies": {
51
+ "@types/node": "^22.0.0",
52
+ "@types/react": "^19.0.0",
53
+ "@types/react-dom": "^19.0.0",
54
+ "@vitejs/plugin-react": "^4.3.4",
55
+ "prettier": "^3.9.8",
56
+ "typescript": "^5.7.3",
57
+ "vite": "^6.1.0"
58
+ },
59
+ "repository": {
60
+ "type": "git",
61
+ "url": "git+https://github.com/joeycast/forma.git"
62
+ },
63
+ "homepage": "https://github.com/joeycast/forma",
64
+ "bugs": {
65
+ "url": "https://github.com/joeycast/forma/issues"
66
+ },
67
+ "files": [
68
+ "bin",
69
+ "dist",
70
+ "packages",
71
+ "public/fonts",
72
+ "skills",
73
+ "docs",
74
+ "examples",
75
+ "schema",
76
+ "LICENSE",
77
+ "THIRD_PARTY_NOTICES.md",
78
+ "Dockerfile",
79
+ "deploy"
80
+ ]
81
+ }
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { tsImport } from 'tsx/esm/api';
3
+ await tsImport('./src/index.ts', import.meta.url);