-
Notifications
You must be signed in to change notification settings - Fork 132
Expand file tree
/
Copy pathpackage.json
More file actions
304 lines (304 loc) · 9.88 KB
/
package.json
File metadata and controls
304 lines (304 loc) · 9.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
{
"name": "semiotic",
"version": "3.2.0",
"mcpName": "io.github.nteract/semiotic",
"description": "React data visualization library with built-in MCP server for AI-assisted chart generation",
"main": "dist/semiotic.min.js",
"module": "dist/semiotic.module.min.js",
"types": "dist/semiotic.d.ts",
"sideEffects": false,
"bin": {
"semiotic-ai": "ai/cli.js",
"semiotic-mcp": "ai/dist/mcp-server.js"
},
"exports": {
".": {
"types": "./dist/semiotic.d.ts",
"import": "./dist/semiotic.module.min.js",
"require": "./dist/semiotic.min.js",
"default": "./dist/semiotic.module.min.js"
},
"./xy": {
"types": "./dist/semiotic-xy.d.ts",
"import": "./dist/xy.module.min.js",
"require": "./dist/xy.min.js",
"default": "./dist/xy.module.min.js"
},
"./ordinal": {
"types": "./dist/semiotic-ordinal.d.ts",
"import": "./dist/ordinal.module.min.js",
"require": "./dist/ordinal.min.js",
"default": "./dist/ordinal.module.min.js"
},
"./network": {
"types": "./dist/semiotic-network.d.ts",
"import": "./dist/network.module.min.js",
"require": "./dist/network.min.js",
"default": "./dist/network.module.min.js"
},
"./realtime": {
"types": "./dist/semiotic-realtime.d.ts",
"import": "./dist/realtime.module.min.js",
"require": "./dist/realtime.min.js",
"default": "./dist/realtime.module.min.js"
},
"./server": {
"types": "./dist/semiotic-server.d.ts",
"import": "./dist/server.module.min.js",
"require": "./dist/server.min.js",
"default": "./dist/server.module.min.js"
},
"./ai": {
"types": "./dist/semiotic-ai.d.ts",
"import": "./dist/semiotic-ai.module.min.js",
"require": "./dist/semiotic-ai.min.js",
"default": "./dist/semiotic-ai.module.min.js"
},
"./data": {
"types": "./dist/semiotic-data.d.ts",
"import": "./dist/semiotic-data.module.min.js",
"require": "./dist/semiotic-data.min.js",
"default": "./dist/semiotic-data.module.min.js"
},
"./geo": {
"types": "./dist/semiotic-geo.d.ts",
"import": "./dist/geo.module.min.js",
"require": "./dist/geo.min.js",
"default": "./dist/geo.module.min.js"
},
"./themes": {
"types": "./dist/semiotic-themes.d.ts",
"import": "./dist/semiotic-themes.module.min.js",
"require": "./dist/semiotic-themes.min.js",
"default": "./dist/semiotic-themes.module.min.js"
},
"./utils": {
"types": "./dist/semiotic-utils.d.ts",
"import": "./dist/semiotic-utils.module.min.js",
"require": "./dist/semiotic-utils.min.js",
"default": "./dist/semiotic-utils.module.min.js"
},
"./package.json": "./package.json"
},
"files": [
"dist/*.min.js",
"dist/*-statisticalOverlays-*.js",
"dist/**/*.d.ts",
"ai/schema.json",
"ai/system-prompt.md",
"ai/examples.md",
"ai/cli.js",
"ai/dist/*.js",
"CLAUDE.md",
"README.md",
"LICENSE"
],
"scripts": {
"start": "parcel serve --target website --port 3000",
"build": "parcel build --target website",
"build:analyze": "node scripts/build.mjs --analyze",
"build:prod": "node scripts/build.mjs --production",
"test": "vitest run",
"pretest:dist": "node scripts/build.mjs",
"test:dist": "playwright test",
"bench": "vitest bench",
"bench:ui": "vitest bench --ui",
"bench:baseline": "vitest bench --run && node scripts/save-baseline.js",
"bench:compare": "vitest bench --run && node scripts/compare-baseline.js",
"serve-examples": "npm run dist && parcel serve integration-tests/index.html integration-tests/xy-examples/index.html integration-tests/ordinal-examples/index.html integration-tests/network-examples/index.html integration-tests/hoc-legend-examples/index.html integration-tests/coordinated-examples/index.html integration-tests/accessibility-examples/index.html integration-tests/geo-examples/index.html integration-tests/realtime-examples/index.html integration-tests/streaming-regression-examples/index.html --dist-dir .parcel-cache/integration-tests",
"dist": "node scripts/build.mjs",
"dist:prod": "node scripts/build.mjs --production",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"create-release-branch": "sh ./scripts/create-release-branch.sh",
"publish-release": "sh ./scripts/publish-release.sh",
"clean": "rm -rf .parcel-cache docs/build dist && echo 'All caches and build artifacts cleared'",
"website:clean": "npm run clean && npm run dist:prod",
"docs:dev": "parcel serve --target website --no-cache --port 3000",
"website:start": "npm run dist:prod && npm run docs:api:json && parcel serve --target website --no-cache",
"website:start:clean": "npm run clean && npm run dist:prod && parcel serve --target website --no-cache",
"generate:ssr-gallery": "npx tsx scripts/ssr-gallery.tsx > docs/public/ssr-gallery.html 2>/dev/null",
"website:build": "npm run dist:prod && npm run docs:api:json && npm run generate:ssr-gallery && parcel build --target website && node scripts/prerender.mjs",
"build:mcp": "tsc -p tsconfig.mcp.json",
"docs:api": "typedoc",
"docs:api:json": "typedoc --json docs/public/api/api.json",
"typescript": "tsc --noEmit",
"size": "size-limit",
"check:schema": "node scripts/check-schema-freshness.js",
"release:check": "npm run lint && npm run typescript && npm run test && npm run check:schema && node scripts/build.mjs --production && npm pack --dry-run",
"prepublishOnly": "npm run lint && npm run typescript && npm run test && npm run check:schema && rm -rf dist && node scripts/build.mjs --production"
},
"targets": {
"website": {
"context": "browser",
"scopeHoist": false,
"source": "docs/public/index.html",
"distDir": "docs/build",
"engines": {
"browsers": "Firefox 90, Chrome 90, Safari 14"
}
}
},
"alias": {
"semiotic": "./src/components/semiotic.ts",
"semiotic/geo": "./src/components/semiotic-geo.ts",
"semiotic/utils": "./src/components/semiotic-utils.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nteract/semiotic.git"
},
"author": {
"name": "Elijah Meeks",
"email": "elijahmeeks@gmail.com"
},
"contributors": [
"Susie Lu <susie.lu.shan@gmail.com>"
],
"keywords": [
"mcp",
"model-context-protocol",
"mcp-server",
"data-visualization",
"charts",
"react",
"d3",
"canvas",
"svg",
"streaming",
"network-graph",
"ai",
"llm",
"claude",
"copilot",
"geographic",
"choropleth",
"sankey",
"force-directed"
],
"license": "Apache-2.0",
"size-limit": [
{
"path": "dist/semiotic.module.min.js",
"limit": "230 KB"
},
{
"path": "dist/xy.module.min.js",
"limit": "125 KB"
},
{
"path": "dist/ordinal.module.min.js",
"limit": "95 KB"
},
{
"path": "dist/network.module.min.js",
"limit": "95 KB"
},
{
"path": "dist/geo.module.min.js",
"limit": "90 KB"
},
{
"path": "dist/realtime.module.min.js",
"limit": "130 KB"
}
],
"devDependencies": {
"@axe-core/playwright": "^4.11.1",
"@parcel/transformer-inline-string": "^2.16.4",
"@playwright/test": "^1.17.1",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^1.0.0",
"@size-limit/file": "^11.0.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^14.3.0",
"@types/d3-array": "^3.2.0",
"@types/d3-brush": "^3.0.0",
"@types/d3-chord": "^3.0.0",
"@types/d3-force": "^3.0.0",
"@types/d3-format": "^3.0.0",
"@types/d3-geo": "^3.1.0",
"@types/d3-hierarchy": "^3.1.0",
"@types/d3-interpolate": "^3.0.0",
"@types/d3-scale": "^4.0.9",
"@types/d3-scale-chromatic": "^3.1.0",
"@types/d3-selection": "^3.0.0",
"@types/d3-shape": "^3.1.0",
"@types/d3-time-format": "^4.0.0",
"@types/d3-zoom": "^3.0.8",
"@types/node": "^20.19.35",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"@types/seedrandom": "^3.0.5",
"@types/topojson-client": "^3.1.5",
"@typescript-eslint/eslint-plugin": "^5.4.6",
"@typescript-eslint/parser": "^5.4.6",
"@vitest/coverage-v8": "^4.1.0",
"@vitest/ui": "^4.0.18",
"d3-dsv": "1.0.5",
"d3-flextree-v4": "^1.0.1",
"eslint": "^8.0.0",
"eslint-plugin-react": "^7.27.1",
"jsdom": "^26.1.0",
"marked": "4.0.10",
"parcel": "^2.16.4",
"playwright-chromium": "^1.17.1",
"prettier": "^3.8.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-router-dom": "^6.2.1",
"rollup": "^4.59.0",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-typescript2": "^0.34.1",
"rollup-plugin-visualizer": "^7.0.0",
"seedrandom": "^3.0.5",
"size-limit": "^11.0.0",
"typedoc": "^0.28.17",
"typescript": "~5.9.3",
"vitest": "^4.0.18"
},
"peerDependencies": {
"react": "^18.1.0 || ^19.0.0",
"react-dom": "^18.1.0 || ^19.0.0"
},
"optionalDependencies": {
"sharp": ">=0.33.0"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.12.1",
"@types/d3-quadtree": "^3.0.6",
"d3-array": "^3.2.4",
"d3-brush": "^3.0.0",
"d3-chord": "^3.0.1",
"d3-force": "^3.0.0",
"d3-format": "^3.1.0",
"d3-geo": "^3.1.1",
"d3-hierarchy": "^3.1.2",
"d3-interpolate": "^3.0.1",
"d3-quadtree": "^3.0.1",
"d3-scale": "^4.0.2",
"d3-scale-chromatic": "^3.1.0",
"d3-selection": "^3.0.0",
"d3-shape": "^3.2.0",
"d3-tile": "^1.0.0",
"d3-time-format": "^4.1.0",
"d3-zoom": "^3.0.0",
"regression": "^2.0.1",
"topojson-client": "^3.1.0",
"world-atlas": "^2.0.2"
},
"browserslist": {
"development": [
"Edge 90",
"Firefox 90",
"Chrome 90",
"Safari 14"
]
},
"volta": {
"node": "22.22.1"
},
"overrides": {
"flatted": "3.4.2"
}
}