-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
770 lines (770 loc) · 37.8 KB
/
Copy pathpackage.json
File metadata and controls
770 lines (770 loc) · 37.8 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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
{
"name": "purejsimage",
"version": "0.17.0",
"description": "Portable image codecs and low-memory raster processing in strict TypeScript",
"keywords": [
"image",
"image-codecs",
"image-processing",
"typescript",
"low-memory",
"zero-dependency",
"nodejs",
"browser",
"serverless",
"aws-lambda",
"jpeg",
"jpeg-xl",
"jpegxl",
"jpeg2000",
"jp2",
"png",
"webp",
"avif",
"bmp",
"tiff",
"gif",
"hdr",
"qoi",
"netpbm",
"tga",
"heif",
"heic",
"geotiff",
"netcdf",
"cf-conventions",
"ome-tiff",
"gsf",
"envi",
"fits",
"mrc",
"ccp4",
"cbf",
"imgcif",
"cryo-em",
"x-ray-diffraction",
"hyperspectral",
"afm",
"dicom",
"scientific-imaging",
"whole-slide-image"
],
"license": "MIT",
"author": "Aaron Decker",
"repository": {
"type": "git",
"url": "git+https://github.com/a-r-d/PureJsImage.git"
},
"bugs": {
"url": "https://github.com/a-r-d/PureJsImage/issues"
},
"homepage": "https://purejsimage.com/",
"type": "module",
"sideEffects": false,
"files": [
"dist",
"ROADMAP.md"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"browser": "./dist/browser.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"browser": "./dist/browser.js",
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./browser": {
"types": "./dist/browser.d.ts",
"import": "./dist/browser.js",
"default": "./dist/browser.js"
},
"./tiff": {
"types": "./dist/tiff/index.d.ts",
"import": "./dist/tiff/index.js",
"default": "./dist/tiff/index.js"
},
"./scientific": {
"types": "./dist/scientific/index.d.ts",
"import": "./dist/scientific/index.js",
"default": "./dist/scientific/index.js"
},
"./scientific/node": {
"types": "./dist/scientific/node.d.ts",
"import": "./dist/scientific/node.js",
"default": "./dist/scientific/node.js"
},
"./scientific/browser": {
"types": "./dist/scientific/browser.d.ts",
"import": "./dist/scientific/browser.js",
"default": "./dist/scientific/browser.js"
},
"./scientific/readers/gsf": {
"types": "./dist/scientific/readers/gsf.d.ts",
"import": "./dist/scientific/readers/gsf.js",
"default": "./dist/scientific/readers/gsf.js"
},
"./scientific/readers/envi": {
"types": "./dist/scientific/readers/envi.d.ts",
"import": "./dist/scientific/readers/envi.js",
"default": "./dist/scientific/readers/envi.js"
},
"./scientific/readers/fits": {
"types": "./dist/scientific/readers/fits.d.ts",
"import": "./dist/scientific/readers/fits.js",
"default": "./dist/scientific/readers/fits.js"
},
"./scientific/readers/mrc": {
"types": "./dist/scientific/readers/mrc.d.ts",
"import": "./dist/scientific/readers/mrc.js",
"default": "./dist/scientific/readers/mrc.js"
},
"./scientific/readers/cbf": {
"types": "./dist/scientific/readers/cbf.d.ts",
"import": "./dist/scientific/readers/cbf.js",
"default": "./dist/scientific/readers/cbf.js"
},
"./scientific/readers/dicom": {
"types": "./dist/scientific/readers/dicom.d.ts",
"import": "./dist/scientific/readers/dicom.js",
"default": "./dist/scientific/readers/dicom.js"
},
"./scientific/readers/digital-micrograph": {
"types": "./dist/scientific/readers/digital-micrograph.d.ts",
"import": "./dist/scientific/readers/digital-micrograph.js",
"default": "./dist/scientific/readers/digital-micrograph.js"
},
"./scientific/readers/digital-surf": {
"types": "./dist/scientific/readers/digital-surf.d.ts",
"import": "./dist/scientific/readers/digital-surf.js",
"default": "./dist/scientific/readers/digital-surf.js"
},
"./scientific/readers/igor-binary-wave": {
"types": "./dist/scientific/readers/igor-binary-wave.d.ts",
"import": "./dist/scientific/readers/igor-binary-wave.js",
"default": "./dist/scientific/readers/igor-binary-wave.js"
},
"./scientific/readers/nanonis-sxm": {
"types": "./dist/scientific/readers/nanonis-sxm.d.ts",
"import": "./dist/scientific/readers/nanonis-sxm.js",
"default": "./dist/scientific/readers/nanonis-sxm.js"
},
"./scientific/readers/x3p": {
"types": "./dist/scientific/readers/x3p.d.ts",
"import": "./dist/scientific/readers/x3p.js",
"default": "./dist/scientific/readers/x3p.js"
},
"./scientific/readers/rpl": {
"types": "./dist/scientific/readers/rpl.d.ts",
"import": "./dist/scientific/readers/rpl.js",
"default": "./dist/scientific/readers/rpl.js"
},
"./scientific/readers/emsa": {
"types": "./dist/scientific/readers/emsa.d.ts",
"import": "./dist/scientific/readers/emsa.js",
"default": "./dist/scientific/readers/emsa.js"
},
"./scientific/readers/nrrd": {
"types": "./dist/scientific/readers/nrrd.d.ts",
"import": "./dist/scientific/readers/nrrd.js",
"default": "./dist/scientific/readers/nrrd.js"
},
"./scientific/readers/meta-image": {
"types": "./dist/scientific/readers/meta-image.d.ts",
"import": "./dist/scientific/readers/meta-image.js",
"default": "./dist/scientific/readers/meta-image.js"
},
"./scientific/readers/nifti": {
"types": "./dist/scientific/readers/nifti.d.ts",
"import": "./dist/scientific/readers/nifti.js",
"default": "./dist/scientific/readers/nifti.js"
},
"./scientific/readers/npy": {
"types": "./dist/scientific/readers/npy.d.ts",
"import": "./dist/scientific/readers/npy.js",
"default": "./dist/scientific/readers/npy.js"
},
"./scientific/readers/blockfile": {
"types": "./dist/scientific/readers/blockfile.d.ts",
"import": "./dist/scientific/readers/blockfile.js",
"default": "./dist/scientific/readers/blockfile.js"
},
"./scientific/readers/mib": {
"types": "./dist/scientific/readers/mib.d.ts",
"import": "./dist/scientific/readers/mib.js",
"default": "./dist/scientific/readers/mib.js"
},
"./scientific/readers/ebsd-text": {
"types": "./dist/scientific/readers/ebsd-text.d.ts",
"import": "./dist/scientific/readers/ebsd-text.js",
"default": "./dist/scientific/readers/ebsd-text.js"
},
"./scientific/readers/tia-ser": {
"types": "./dist/scientific/readers/tia-ser.d.ts",
"import": "./dist/scientific/readers/tia-ser.js",
"default": "./dist/scientific/readers/tia-ser.js"
},
"./scientific/readers/tia-emi": {
"types": "./dist/scientific/readers/tia-emi.d.ts",
"import": "./dist/scientific/readers/tia-emi.js",
"default": "./dist/scientific/readers/tia-emi.js"
},
"./scientific/readers/ncem-emd": {
"types": "./dist/scientific/readers/ncem-emd.d.ts",
"import": "./dist/scientific/readers/ncem-emd.js",
"default": "./dist/scientific/readers/ncem-emd.js"
},
"./scientific/readers/velox-emd": {
"types": "./dist/scientific/readers/velox-emd.d.ts",
"import": "./dist/scientific/readers/velox-emd.js",
"default": "./dist/scientific/readers/velox-emd.js"
},
"./scientific/readers/tiff": {
"types": "./dist/scientific/readers/tiff.d.ts",
"import": "./dist/scientific/readers/tiff.js",
"default": "./dist/scientific/readers/tiff.js"
},
"./scientific/readers/ome-tiff": {
"types": "./dist/scientific/readers/ome-tiff.d.ts",
"import": "./dist/scientific/readers/ome-tiff.js",
"default": "./dist/scientific/readers/ome-tiff.js"
},
"./scientific/readers/ome-zarr": {
"types": "./dist/scientific/readers/ome-zarr.d.ts",
"import": "./dist/scientific/readers/ome-zarr.js",
"default": "./dist/scientific/readers/ome-zarr.js"
},
"./scientific/readers/aperio-svs": {
"types": "./dist/scientific/readers/aperio-svs.d.ts",
"import": "./dist/scientific/readers/aperio-svs.js",
"default": "./dist/scientific/readers/aperio-svs.js"
},
"./scientific/readers/png": {
"types": "./dist/scientific/readers/png.d.ts",
"import": "./dist/scientific/readers/png.js",
"default": "./dist/scientific/readers/png.js"
},
"./scientific/readers/jpeg": {
"types": "./dist/scientific/readers/jpeg.d.ts",
"import": "./dist/scientific/readers/jpeg.js",
"default": "./dist/scientific/readers/jpeg.js"
},
"./scientific/readers/webp": {
"types": "./dist/scientific/readers/webp.d.ts",
"import": "./dist/scientific/readers/webp.js",
"default": "./dist/scientific/readers/webp.js"
},
"./scientific/readers/bmp": {
"types": "./dist/scientific/readers/bmp.d.ts",
"import": "./dist/scientific/readers/bmp.js",
"default": "./dist/scientific/readers/bmp.js"
},
"./scientific/readers/jp2": {
"types": "./dist/scientific/readers/jp2.d.ts",
"import": "./dist/scientific/readers/jp2.js",
"default": "./dist/scientific/readers/jp2.js"
},
"./scientific/readers/all": {
"types": "./dist/scientific/readers/all.d.ts",
"import": "./dist/scientific/readers/all.js",
"default": "./dist/scientific/readers/all.js"
},
"./geo": {
"types": "./dist/geo/index.d.ts",
"import": "./dist/geo/index.js",
"default": "./dist/geo/index.js"
},
"./geo/browser": {
"types": "./dist/geo/browser.d.ts",
"import": "./dist/geo/browser.js",
"default": "./dist/geo/browser.js"
},
"./geo/readers": {
"types": "./dist/geo/readers/index.d.ts",
"import": "./dist/geo/readers/index.js",
"default": "./dist/geo/readers/index.js"
},
"./geo/readers/all": {
"types": "./dist/geo/readers/all.d.ts",
"import": "./dist/geo/readers/all.js",
"default": "./dist/geo/readers/all.js"
},
"./geo/readers/geotiff": {
"types": "./dist/geo/readers/geotiff.d.ts",
"import": "./dist/geo/readers/geotiff.js",
"default": "./dist/geo/readers/geotiff.js"
},
"./geo/readers/geozarr": {
"types": "./dist/geo/readers/geozarr/index.d.ts",
"import": "./dist/geo/readers/geozarr/index.js",
"default": "./dist/geo/readers/geozarr/index.js"
},
"./geo/readers/geozarr/node": {
"types": "./dist/geo/readers/geozarr/node.d.ts",
"import": "./dist/geo/readers/geozarr/node.js",
"default": "./dist/geo/readers/geozarr/node.js"
},
"./geo/readers/world-file": {
"types": "./dist/geo/readers/world-file.d.ts",
"import": "./dist/geo/readers/world-file.js",
"default": "./dist/geo/readers/world-file.js"
},
"./geo/readers/world-file/node": {
"types": "./dist/geo/readers/world-file-node.d.ts",
"import": "./dist/geo/readers/world-file-node.js",
"default": "./dist/geo/readers/world-file-node.js"
},
"./geo/readers/envi": {
"types": "./dist/geo/readers/envi.d.ts",
"import": "./dist/geo/readers/envi.js",
"default": "./dist/geo/readers/envi.js"
},
"./geo/readers/esri-ascii-grid": {
"types": "./dist/geo/readers/esri-ascii-grid.d.ts",
"import": "./dist/geo/readers/esri-ascii-grid.js",
"default": "./dist/geo/readers/esri-ascii-grid.js"
},
"./geo/readers/srtm-hgt": {
"types": "./dist/geo/readers/srtm-hgt.d.ts",
"import": "./dist/geo/readers/srtm-hgt.js",
"default": "./dist/geo/readers/srtm-hgt.js"
},
"./geo/readers/netcdf": {
"types": "./dist/geo/readers/netcdf.d.ts",
"import": "./dist/geo/readers/netcdf.js",
"default": "./dist/geo/readers/netcdf.js"
},
"./geo/conventions/geozarr": {
"types": "./dist/geo/conventions/geozarr/index.d.ts",
"import": "./dist/geo/conventions/geozarr/index.js",
"default": "./dist/geo/conventions/geozarr/index.js"
},
"./operations": {
"types": "./dist/operations/index.d.ts",
"import": "./dist/operations/index.js",
"default": "./dist/operations/index.js"
},
"./analysis": {
"types": "./dist/analysis/index.d.ts",
"import": "./dist/analysis/index.js",
"default": "./dist/analysis/index.js"
},
"./analysis/4d-stem": {
"types": "./dist/analysis/four-d-stem.d.ts",
"import": "./dist/analysis/four-d-stem.js",
"default": "./dist/analysis/four-d-stem.js"
},
"./analysis/results": {
"types": "./dist/analysis/results.d.ts",
"import": "./dist/analysis/results.js",
"default": "./dist/analysis/results.js"
},
"./analysis/roi": {
"types": "./dist/analysis/roi-entry.d.ts",
"import": "./dist/analysis/roi-entry.js",
"default": "./dist/analysis/roi-entry.js"
},
"./analysis/runtime": {
"types": "./dist/analysis/runtime.d.ts",
"import": "./dist/analysis/runtime.js",
"default": "./dist/analysis/runtime.js"
},
"./analysis/project": {
"types": "./dist/analysis/project-entry.d.ts",
"import": "./dist/analysis/project-entry.js",
"default": "./dist/analysis/project-entry.js"
},
"./extensions": {
"types": "./dist/extensions/index.d.ts",
"import": "./dist/extensions/index.js",
"default": "./dist/extensions/index.js"
},
"./pathology": {
"types": "./dist/pathology/index.d.ts",
"import": "./dist/pathology/index.js",
"default": "./dist/pathology/index.js"
},
"./sources/http-range": {
"types": "./dist/sources/http-range.d.ts",
"import": "./dist/sources/http-range.js",
"default": "./dist/sources/http-range.js"
},
"./evidence": {
"types": "./dist/evidence.d.ts",
"import": "./dist/evidence.js",
"default": "./dist/evidence.js"
},
"./compression/zstd": {
"types": "./dist/compression/zstd/index.d.ts",
"import": "./dist/compression/zstd/index.js",
"default": "./dist/compression/zstd/index.js"
},
"./accelerators/wasm/jpeg": {
"browser": "./dist/accelerator-entries/wasm-jpeg-browser.js",
"types": "./dist/accelerator-entries/wasm-jpeg-node.d.ts",
"node": "./dist/accelerator-entries/wasm-jpeg-node.js",
"import": "./dist/accelerator-entries/wasm-jpeg-node.js",
"default": "./dist/accelerator-entries/wasm-jpeg-node.js"
},
"./accelerators/wasm/png": {
"browser": "./dist/accelerator-entries/wasm-png-browser.js",
"types": "./dist/accelerator-entries/wasm-png-node.d.ts",
"node": "./dist/accelerator-entries/wasm-png-node.js",
"import": "./dist/accelerator-entries/wasm-png-node.js",
"default": "./dist/accelerator-entries/wasm-png-node.js"
},
"./accelerators/wasm/webp": {
"browser": "./dist/accelerator-entries/wasm-webp-browser.js",
"types": "./dist/accelerator-entries/wasm-webp-node.d.ts",
"node": "./dist/accelerator-entries/wasm-webp-node.js",
"import": "./dist/accelerator-entries/wasm-webp-node.js",
"default": "./dist/accelerator-entries/wasm-webp-node.js"
},
"./codecs/all": {
"types": "./dist/codec-entries/all.d.ts",
"import": "./dist/codec-entries/all.js",
"default": "./dist/codec-entries/all.js"
},
"./codecs/web": {
"types": "./dist/codec-entries/web.d.ts",
"import": "./dist/codec-entries/web.js",
"default": "./dist/codec-entries/web.js"
},
"./codecs/avif": {
"types": "./dist/codec-entries/avif.d.ts",
"import": "./dist/codec-entries/avif.js",
"default": "./dist/codec-entries/avif.js"
},
"./codecs/bmp": {
"types": "./dist/codec-entries/bmp.d.ts",
"import": "./dist/codec-entries/bmp.js",
"default": "./dist/codec-entries/bmp.js"
},
"./codecs/hdr": {
"types": "./dist/codec-entries/hdr.d.ts",
"import": "./dist/codec-entries/hdr.js",
"default": "./dist/codec-entries/hdr.js"
},
"./codecs/gif": {
"types": "./dist/codec-entries/gif.d.ts",
"import": "./dist/codec-entries/gif.js",
"default": "./dist/codec-entries/gif.js"
},
"./codecs/experimental/heic": {
"types": "./dist/codec-entries/experimental/heic.d.ts",
"import": "./dist/codec-entries/experimental/heic.js",
"default": "./dist/codec-entries/experimental/heic.js"
},
"./codecs/ico": {
"types": "./dist/codec-entries/ico.d.ts",
"import": "./dist/codec-entries/ico.js",
"default": "./dist/codec-entries/ico.js"
},
"./codecs/jpeg": {
"types": "./dist/codec-entries/jpeg.d.ts",
"import": "./dist/codec-entries/jpeg.js",
"default": "./dist/codec-entries/jpeg.js"
},
"./codecs/jpeg2000": {
"types": "./dist/codec-entries/jpeg2000.d.ts",
"import": "./dist/codec-entries/jpeg2000.js",
"default": "./dist/codec-entries/jpeg2000.js"
},
"./codecs/jpegxl": {
"types": "./dist/codec-entries/jpegxl.d.ts",
"import": "./dist/codec-entries/jpegxl.js",
"default": "./dist/codec-entries/jpegxl.js"
},
"./codecs/netpbm": {
"types": "./dist/codec-entries/netpbm.d.ts",
"import": "./dist/codec-entries/netpbm.js",
"default": "./dist/codec-entries/netpbm.js"
},
"./codecs/png": {
"types": "./dist/codec-entries/png.d.ts",
"import": "./dist/codec-entries/png.js",
"default": "./dist/codec-entries/png.js"
},
"./codecs/qoi": {
"types": "./dist/codec-entries/qoi.d.ts",
"import": "./dist/codec-entries/qoi.js",
"default": "./dist/codec-entries/qoi.js"
},
"./codecs/tiff": {
"types": "./dist/codec-entries/tiff.d.ts",
"import": "./dist/codec-entries/tiff.js",
"default": "./dist/codec-entries/tiff.js"
},
"./codecs/tga": {
"types": "./dist/codec-entries/tga.d.ts",
"import": "./dist/codec-entries/tga.js",
"default": "./dist/codec-entries/tga.js"
},
"./codecs/webp": {
"types": "./dist/codec-entries/webp.d.ts",
"import": "./dist/codec-entries/webp.js",
"default": "./dist/codec-entries/webp.js"
}
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=22"
},
"scripts": {
"check": "npm run capabilities:check && npm run scientific:reader-catalog:check && npm run bench:geo:check && npm run comparison:check && npm run analysis:api:check && npm run size:check && npm run package-metrics:check && npm run documentation:check && npm run docs:build && npm run typecheck && npm run package:types && npm run profile:example:check && npm run platform:example:check && npm run browser:check && npm run lint && npm run format:check && npm run dicom:dictionary:check && npm test",
"build": "node scripts/clean-dist.ts && tsc -p tsconfig.build.json && node scripts/copy-wasm-artifacts.ts",
"browser:check": "tsc -p tsconfig.browser.json && node scripts/check-browser-build.ts",
"package:types": "node scripts/check-package-types.ts",
"profile:example:check": "node scripts/check-external-tiff-profile.ts && tsc -p examples/tiff-profile-leica/tsconfig.json",
"platform:example:check": "node scripts/check-external-application-platform.ts && tsc -p examples/scientific-application-platform/tsconfig.json",
"browser:test": "playwright test",
"browser:bench": "PUREJSIMAGE_WRITE_BROWSER_BENCHMARK=1 playwright test browser-tests/benchmark.pw.ts --project=chromium",
"bench:geo": "node benchmark/geo/run.ts",
"bench:geo:check": "node benchmark/geo/run.ts",
"bench:geo:write": "node benchmark/geo/run.ts --write && biome format --write benchmark/generated/geo-benchmark.json",
"bench:4d-stem": "node benchmark/four-d-stem/run.ts",
"wasm:build:jpeg": "node scripts/build-wasm-jpeg.ts",
"wasm:build:png": "node scripts/build-wasm-png.ts",
"wasm:build:webp": "node scripts/build-wasm-webp.ts",
"typecheck": "tsc --noEmit",
"lint": "biome lint .",
"format": "biome format --write .",
"format:check": "biome format .",
"capabilities:generate": "node scripts/render-capabilities.ts && node scripts/render-tiff-cog-support.ts && node scripts/render-geo-capabilities.ts && biome format --write docs-astro/public/capabilities.json docs-astro/public/geo-capabilities.json docs-astro/src/data/geo-capabilities.json tests/generated/capability-expectations.json tests/generated/geo-capability-expectations.json",
"capabilities:check": "node scripts/render-capabilities.ts --check && node scripts/render-tiff-cog-support.ts --check && node scripts/render-geo-capabilities.ts --check",
"scientific:reader-catalog:generate": "node scripts/render-scientific-browser-reader-catalog.ts",
"scientific:reader-catalog:check": "node scripts/render-scientific-browser-reader-catalog.ts --check",
"comparison:generate": "node scripts/render-library-comparison.ts",
"comparison:check": "node scripts/render-library-comparison.ts --check",
"analysis:api:generate": "node scripts/check-analysis-api-manifest.ts --write",
"analysis:api:check": "node scripts/check-analysis-api-manifest.ts",
"package-metrics:generate": "node scripts/render-package-metrics.ts && biome format --write benchmark/generated/package-metrics.json docs-astro/src/data/package-metrics.json",
"package-metrics:check": "node scripts/render-package-metrics.ts --check",
"benchmark:public:write": "node scripts/render-public-benchmark-results.ts --write",
"benchmark:public:check": "node scripts/render-public-benchmark-results.ts --check",
"documentation:write": "npm run benchmark:public:write && node scripts/render-documentation.ts --write && biome format --write docs-astro/src/data/documentation-data.json",
"documentation:check": "npm run benchmark:public:check && node scripts/render-documentation.ts --check",
"docs:dev": "astro dev --root docs-astro",
"docs:build": "node scripts/build-docs-site.ts",
"docs:preview": "astro preview --root docs-astro",
"indexnow:prepare": "node scripts/indexnow.ts prepare",
"indexnow:submit": "node scripts/indexnow.ts submit",
"demo:scientific:generate": "node scripts/generate-scientific-demo-data.ts",
"dicom:dictionary:generate": "node scripts/dicom/generate-dictionary.ts",
"dicom:dictionary:check": "node scripts/dicom/generate-dictionary.ts --check",
"size": "npm run build && node scripts/measure-bundle-size.ts && npm run package-metrics:generate && node scripts/measure-bundle-size.ts && npm run package-metrics:generate",
"size:check": "npm run build && node scripts/measure-bundle-size.ts --check",
"test": "vitest run",
"test:watch": "vitest",
"prepack": "npm run check",
"fixtures:prepare": "node benchmark/scripts/prepare-corpus.ts",
"fixtures:cog:prepare": "node scripts/generate-cog-fixtures.ts && biome format --write tests/fixtures/cog/manifest.json",
"fixtures:verify": "node benchmark/scripts/verify-corpus.ts",
"fixtures:digital-micrograph": "node benchmark/digital-micrograph/verify-corpus.ts",
"fixtures:digital-micrograph:prepare": "node benchmark/digital-micrograph/prepare-corpus.ts",
"fixtures:digital-micrograph:remote": "node benchmark/digital-micrograph/verify-semantic-corpus.ts",
"fixtures:tia-ser": "node benchmark/tia-ser/verify-corpus.ts",
"fixtures:scientific-interchange": "node benchmark/scientific-interchange/verify-corpus.ts",
"fixtures:scientific-interchange:prepare": "node benchmark/scientific-interchange/prepare-corpus.ts",
"fixtures:tia-ser:prepare": "node benchmark/tia-ser/prepare-corpus.ts",
"fixtures:tia-emi": "node benchmark/tia-ser/verify-emi-corpus.ts",
"fixtures:tia-emi:prepare": "node benchmark/tia-ser/prepare-emi-corpus.ts",
"fixtures:hdf5": "node benchmark/hdf5/verify-corpus.ts",
"fixtures:hdf5:prepare": "node benchmark/hdf5/prepare-corpus.ts",
"fixtures:ncem-emd": "node benchmark/ncem-emd/verify-corpus.ts",
"fixtures:ncem-emd:prepare": "node benchmark/ncem-emd/prepare-corpus.ts",
"fixtures:velox-emd": "node benchmark/velox-emd/verify-corpus.ts",
"fixtures:velox-emd:prepare": "node benchmark/velox-emd/prepare-corpus.ts",
"fixtures:avif": "node benchmark/avif/prepare-corpus.ts",
"fixtures:avif:alpha": "node benchmark/avif/verify-auxiliary-fixtures.ts",
"fixtures:avif:alpha:prepare": "node benchmark/avif/prepare-alpha-fixtures.ts",
"fixtures:avif:auxiliary": "node benchmark/avif/verify-auxiliary-fixtures.ts",
"fixtures:avif:auxiliary:prepare": "node benchmark/avif/prepare-auxiliary-fixtures.ts",
"fixtures:avif:color": "node benchmark/avif/verify-color-fixtures.ts",
"fixtures:avif:clean-aperture:prepare": "node benchmark/avif/prepare-clean-aperture-fixture.ts",
"fixtures:avif:q0:prepare": "node benchmark/avif/prepare-q0-fixtures.ts",
"fixtures:avif:rows:prepare": "node benchmark/avif/prepare-row-fixture.ts",
"fixtures:avif:rows:alpha:prepare": "node benchmark/avif/prepare-row-alpha-fixture.ts",
"fixtures:avif:high-bit": "node benchmark/avif/verify-high-bit-expanded-fixtures.ts",
"fixtures:avif:high-bit:prepare": "node benchmark/avif/prepare-high-bit-lossless-fixtures.ts && node benchmark/avif/prepare-high-bit-expanded-fixtures.ts",
"fixtures:avif:tiles": "node benchmark/avif/verify-tiled-lossless-fixture.ts && node benchmark/avif/verify-lossy-multitile-fixture.ts",
"fixtures:avif:tiles:prepare": "node benchmark/avif/prepare-tiled-lossless-fixture.ts && node benchmark/avif/prepare-lossy-multitile-fixture.ts",
"fixtures:avif:superres": "node benchmark/avif/verify-superres-fixture.ts",
"fixtures:avif:superres:prepare": "node benchmark/avif/prepare-superres-fixture.ts",
"fixtures:avif:film-grain": "node benchmark/avif/verify-film-grain-fixture.ts",
"fixtures:avif:film-grain:prepare": "node benchmark/avif/prepare-film-grain-fixture.ts",
"fixtures:avif:intrabc": "node benchmark/avif/verify-intrabc-fixture.ts",
"fixtures:avif:imir": "node benchmark/avif/verify-mirror-fixtures.ts",
"fixtures:avif:imir:prepare": "node benchmark/avif/prepare-mirror-fixtures.ts",
"fixtures:avif:common-photo-syntax": "node benchmark/avif/verify-common-photo-syntax-fixtures.ts",
"fixtures:avif:nonstill-sequence": "node benchmark/avif/verify-nonstill-sequence-fixture.ts",
"fixtures:avif:still-picture-entropy": "node benchmark/avif/verify-still-picture-entropy-fixtures.ts",
"fixtures:avif:layered": "node benchmark/avif/verify-layered-fixture.ts",
"fixtures:avif:layered:prepare": "node benchmark/avif/prepare-dependent-layer-fixture.ts",
"fixtures:avif:post-filters": "node benchmark/avif/verify-post-filters.ts",
"fixtures:avif:qmatrix": "node benchmark/avif/verify-qmatrix-fixtures.ts",
"fixtures:avif:segmentation": "node benchmark/avif/verify-segmentation-fixture.ts",
"fixtures:avif:qmatrix:prepare": "node benchmark/avif/prepare-qmatrix-fixtures.ts",
"fixtures:heif:prepare": "node benchmark/heif/compatibility/prepare.ts",
"fixtures:heif": "node benchmark/heif/verify-corpus.ts && node benchmark/heif/compatibility/verify.ts",
"fixtures:ico": "node benchmark/ico/verify-corpus.ts",
"fixtures:jpeg": "node benchmark/jpeg/verify-corpus.ts && vitest run tests/jpeg-reference-fixtures.test.ts tests/jpeg-reference-parity.test.ts",
"fixtures:jpeg:prepare": "node benchmark/jpeg/prepare-reference-fixtures.ts",
"fixtures:jpeg2000": "node benchmark/jpeg2000/verify-corpus.ts",
"fixtures:jpegxl:prepare": "node benchmark/jpegxl/prepare-corpus.ts",
"fixtures:mrc:prepare": "node benchmark/mrc/prepare-official-sample.ts",
"fixtures:cbf:prepare": "node benchmark/cbf/prepare-compatibility-sample.ts",
"fixtures:tiff:encode": "npm run build && node benchmark/scripts/verify-tiff-encode.ts",
"fixtures:small-codecs": "node benchmark/small-codecs/prepare-benchmark-corpus.ts",
"fixtures:tga:compatibility": "node benchmark/small-codecs/prepare-tga-compatibility.ts",
"fuzz:release": "PUREJSIMAGE_FUZZ_RELEASE=1 PUREJSIMAGE_FUZZ_CASES=512 PUREJSIMAGE_FUZZ_SEED=1592598566 PUREJSIMAGE_FUZZ_CRASH_DIR=artifacts/fuzz-crashes vitest run tests/corruption-fuzz.test.ts",
"corpus:exercise": "node scripts/exercise-corpus.ts",
"corpus:imazen": "node scripts/validate-imazen-corpus.ts",
"corpus:imazen:wasm": "node scripts/validate-webp-wasm-corpus.ts",
"corpus:imazen:jpeg-wasm": "node scripts/validate-webp-wasm-corpus.ts --format jpeg",
"corpus:imazen:png-wasm": "node scripts/validate-webp-wasm-corpus.ts --format png",
"corpus:imazen:webp-wasm": "node scripts/validate-webp-wasm-corpus.ts",
"corpus:tiff:matrix": "node scripts/analyze-tiff-dependencies.ts",
"corpus:tiff:competitors": "node scripts/compare-tiff-competitors.ts",
"results:combine": "node benchmark/scripts/combine-results.ts",
"bench": "node benchmark/run.ts",
"bench:jimp": "node benchmark/run.ts --engines jimp",
"bench:competitors": "npm run build && node benchmark/run.ts --engines purejsimage,purejsimage-wasm,jimp,sharp,sharp-single-thread,image-js,jsquash --profile competitors",
"bench:competitors:charts": "node benchmark/scripts/render-competitor-charts.ts",
"bench:web-codecs": "npm run build && node benchmark/run.ts --engines purejsimage,purejsimage-wasm,jimp,sharp,sharp-single-thread,image-js,jsquash --profile web-codecs",
"bench:web-codecs:charts": "node benchmark/scripts/render-competitor-charts.ts --profile web-codecs",
"bench:stable-codecs": "npm run build && node benchmark/stable-codecs/run.ts",
"bench:results:index": "node benchmark/scripts/build-result-index.ts",
"bench:hillclimb": "node benchmark/hillclimb/run.ts",
"bench:smoke": "node benchmark/run.ts --engines jimp --profile smoke --runs 1 --warmups 0",
"bench:bmp": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines purejsimage --profile bmp",
"bench:bmp:jimp": "node benchmark/run.ts --engines jimp --profile bmp",
"bench:small-codecs": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines purejsimage --profile small-codecs",
"bench:tiff": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines purejsimage --profile tiff",
"bench:cog:viewport": "node benchmark/cog/run-viewport.ts",
"bench:tiff:jimp": "node benchmark/run.ts --engines jimp --profile tiff",
"bench:transforms": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines purejsimage --profile transforms",
"bench:transforms:compare": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines jimp,purejsimage --profile transforms-comparable",
"bench:webp": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines purejsimage --profile webp",
"bench:zstd": "node --expose-gc benchmark/scripts/run-zstd.ts",
"bench:scientific:numeric-tiles": "node benchmark/scientific/run-numeric-tiles.ts",
"compat:ome-zarr": "node benchmark/ome-zarr/run-compatibility.ts",
"compat:ome-zarr:conformance": "node scripts/run-ome-zarr-conformance.ts",
"bench:scientific:smoke": "node benchmark/scientific-readers/run.ts --profile smoke --runs 1 --warmups 0",
"bench:scientific:baseline": "node benchmark/scientific-readers/run.ts --profile baseline --runs 3 --warmups 1",
"bench:scientific:range": "node benchmark/scientific-readers/run.ts --profile range --runs 3 --warmups 1",
"bench:scientific:scaling": "node benchmark/scientific-readers/run.ts --profile scaling --runs 9 --warmups 1 --timeout-ms 300000",
"bench:scientific:full": "node benchmark/scientific-readers/run.ts --profile full --runs 3 --warmups 1",
"bench:scientific:competitors:prepare": "npm install --prefix benchmark/competitors-js --no-fund --no-audit && node benchmark/scientific-readers/prepare-competitors.ts",
"bench:scientific:competitors:js": "node benchmark/scientific-readers/run-competitors.ts --profile smoke --runs 1 --warmups 0",
"bench:scientific:competitors:baseline": "node benchmark/scientific-readers/run-competitors.ts --profile baseline --runs 9 --warmups 1 --timeout-ms 300000",
"bench:scientific:competitors:browser": "playwright test browser-tests/scientific-competitors.pw.ts --project=chromium",
"bench:viewers:prepare": "npm install --prefix benchmark/viewers --ignore-scripts --no-fund --no-audit",
"bench:viewers:smoke": "npm run bench:viewers:prepare && playwright test -c playwright.viewers.config.ts --project=chromium",
"bench:viewers:ome-tiff": "npm run bench:viewers:prepare && PUREJSIMAGE_VIEWER_PROFILE=ome-tiff playwright test -c playwright.viewers.config.ts --project=chromium",
"bench:viewers:volumes": "npm run bench:viewers:prepare && PUREJSIMAGE_VIEWER_PROFILE=volumes playwright test -c playwright.viewers.config.ts --project=chromium",
"bench:viewers:cog": "npm run bench:viewers:prepare && PUREJSIMAGE_VIEWER_PROFILE=cog playwright test -c playwright.viewers.config.ts --project=chromium",
"bench:viewers:correctness": "npm run bench:viewers:prepare && PUREJSIMAGE_VIEWER_PROFILE=smoke playwright test -c playwright.viewers.config.ts --project=firefox --project=webkit",
"bench:viewers:charts": "node benchmark/viewers/render-charts.ts",
"bench:analysis:tiles": "node benchmark/scientific/run-tile-runtime.ts",
"bench:analysis:gaussian-blur": "node benchmark/scientific/run-analysis-gaussian-blur.ts",
"bench:analysis:connected-components": "node benchmark/scientific/run-connected-components.ts",
"bench:application-platform": "node benchmark/scientific/run-application-platform.ts",
"bench:avif:inspect": "node benchmark/avif/inspect-bitstreams.ts",
"bench:avif:b2": "node --expose-gc benchmark/avif/run-b2.ts",
"bench:avif:memory": "node benchmark/avif/run-memory.ts",
"bench:avif:memory:scaling": "node benchmark/avif/run-memory-scaling.ts",
"bench:avif:compatibility": "node benchmark/avif/run-compatibility-survey.ts",
"bench:avif:compatibility:prepare": "node benchmark/avif/prepare-compatibility-survey.ts",
"bench:avif:imazen": "node benchmark/avif/run-imazen-compatibility-survey.ts",
"bench:avif:imazen:prepare": "node benchmark/avif/prepare-imazen-compatibility-survey.ts",
"bench:avif:reference": "node benchmark/avif/run-reference.ts",
"bench:jpegxl:memory": "node benchmark/jpegxl/run-memory.ts",
"bench:heif": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines purejsimage-experimental-heic --profile heif",
"bench:heif:cold": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines purejsimage-experimental-heic --profile heif --runs 3 --warmups 0",
"bench:heif:warm": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines purejsimage-experimental-heic --profile heif --runs 3 --warmups 1",
"report:heif:compatibility": "node benchmark/heif/compatibility/run.ts --write",
"bench:ico": "npm run build && PUREJSIMAGE_ENTRY=./dist/index.js node benchmark/run.ts --engines purejsimage --profile ico",
"bench:jpeg:encode": "npm run build && node --expose-gc benchmark/jpeg/encode-probe.ts",
"bench:jpeg:progressive": "npm run build && node benchmark/jpeg/run-progressive-encode.ts",
"bench:jpeg:scaled-idct": "node benchmark/jpeg/run-scaled-idct.ts",
"bench:jpeg:region-rss": "node benchmark/jpeg/run-region-rss.ts",
"bench:jpeg:upsampling": "node benchmark/jpeg/run-upsampling.ts",
"bench:jpeg:wasm": "npm run build && node benchmark/jpeg/run-wasm-decoder.ts",
"bench:jpeg:wasm:encode": "npm run build && node benchmark/jpeg/run-wasm-encoder.ts",
"bench:png:wasm": "node benchmark/png/run-wasm.ts",
"bench:precision": "node benchmark/precision/run.ts",
"bench:evidence": "node benchmark/evidence/run.ts",
"bench:webp:wasm": "npm run build && node benchmark/run.ts --engines purejsimage,purejsimage-wasm --profile webp",
"bench:jpeg2000:rss": "node benchmark/jpeg2000/run-rss.ts",
"bench:lambda:assets": "npm run build && npm run fixtures:prepare -- tundra-4000x3000 rgba-gradient-4000x3000 && node benchmark/aws-lambda/build-assets.ts",
"bench:lambda:deploy": "npm run bench:lambda:assets && node benchmark/aws-lambda/stage-assets.ts && cdk deploy --app \"node benchmark/aws-lambda/stack.ts\" PureJsImageLambdaBenchmark --require-approval never --method direct",
"bench:lambda:run": "node benchmark/aws-lambda/run.ts",
"bench:lambda:run:arm-wasm": "node benchmark/aws-lambda/run-arm-wasm.ts",
"bench:lambda:destroy": "cdk destroy --app \"node benchmark/aws-lambda/stack.ts\" PureJsImageLambdaBenchmark --force && node benchmark/aws-lambda/stage-assets.ts --cleanup"
},
"overrides": {
"image-js": {
"skia-canvas": "0.0.0"
}
},
"devDependencies": {
"@astrojs/react": "^6.0.2",
"@astrojs/sitemap": "^3.7.3",
"@aws-sdk/client-lambda": "3.1106.0",
"@aws-sdk/client-s3": "3.1106.0",
"@biomejs/biome": "2.5.7",
"@cogeotiff/core": "^9.5.0",
"@cornerstonejs/core": "^5.8.1",
"@cornerstonejs/nifti-volume-loader": "^5.8.1",
"@deck.gl/core": "^9.3.10",
"@hms-dbmi/viv": "^0.22.1",
"@itk-wasm/image-io": "^1.6.1",
"@jsquash/avif": "^2.1.1",
"@jsquash/jpeg": "1.6.0",
"@jsquash/png": "3.1.1",
"@jsquash/resize": "2.1.1",
"@jsquash/webp": "1.5.0",
"@niivue/niivue": "^0.69.0",
"@playwright/test": "1.62.1",
"@stacksjs/ts-avif": "0.1.3",
"@types/archiver": "8.0.0",
"@types/node": "26.1.2",
"@types/omggif": "1.0.5",
"@types/pngjs": "6.0.5",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@vivjs/loaders": "^0.22.1",
"archiver": "8.0.0",
"astro": "^7.2.0",
"aws-cdk": "2.1135.1",
"aws-cdk-lib": "2.263.0",
"bmp-ts": "^1.0.9",
"constructs": "10.8.1",
"esbuild": "0.28.1",
"exif-parser": "0.1.12",
"geotiff": "^3.0.5",
"h5wasm": "^0.10.3",
"image-dimensions": "2.5.1",
"image-js": "1.7.0",
"jimp": "1.6.0",
"jpeg-js": "0.4.4",
"lerc": "^4.2.0",
"nifti-reader-js": "^0.8.0",
"npyjs": "^1.2.0",
"omggif": "1.0.10",
"openseadragon": "^6.1.0",
"pngjs": "7.0.0",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"sharp": "0.35.3",
"tiff": "7.1.3",
"typescript": "7.0.2",
"utif2": "4.1.0",
"vitest": "4.1.10"
}
}