simdra 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.
Binary file
package/package.json ADDED
@@ -0,0 +1,102 @@
1
+ {
2
+ "name": "simdra",
3
+ "version": "0.1.0",
4
+ "description": "SIMD-accelerated 2D canvas and image manipulation, in a Worker. HTML5 Canvas API + sharp-shaped fluent surface. Cloudflare Workers, browsers, edge.",
5
+ "type": "module",
6
+ "main": "./dist/core/index.js",
7
+ "module": "./dist/core/index.js",
8
+ "types": "./dist/core/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/core/index.d.ts",
12
+ "default": "./dist/core/index.js"
13
+ },
14
+ "./core": {
15
+ "types": "./dist/core/index.d.ts",
16
+ "default": "./dist/core/index.js"
17
+ },
18
+ "./wasm": {
19
+ "types": "./dist/wasm/index.d.ts",
20
+ "default": "./dist/wasm/index.mjs"
21
+ },
22
+ "./wasm/simdra.wasm": "./dist/wasm/simdra.wasm"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "scripts": {
28
+ "build": "npm run build:core && npm run build:wasm",
29
+ "build:core": "zigar build && tsc -p tsconfig.core.json && node -e \"const f=require('fs');for(const[p,r] of [['dist/core/index.js','./zig.js'],['dist/core/microsharp/index.js','../zig.js']]) f.writeFileSync(p,f.readFileSync(p,'utf8').replace(/[.][.][/](?:[.][.][/])?zig[/]simdra[.]zig/g, r))\"",
30
+ "build:wasm": "VITE_TARGET=wasm vite build",
31
+ "test": "node --loader=node-zigar --no-warnings test/index.js",
32
+ "test:built": "node test/built.js",
33
+ "test:sharp": "node --loader=node-zigar --no-warnings test/microsharp_compare.js",
34
+ "test:leak": "cd zig && zig test leak_test.zig -lc -I .",
35
+ "test:visual": "npm run build && node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
36
+ "test:all": "npm run test && npm run test:visual",
37
+ "bench": "npm run build && node --loader=node-zigar --no-warnings bench/run.js",
38
+ "bench:resample": "node --loader=node-zigar --no-warnings bench/resample.mjs",
39
+ "typecheck": "tsc --noEmit",
40
+ "docs:dev": "vitepress dev docs",
41
+ "docs:build": "vitepress build docs",
42
+ "docs:preview": "vitepress preview docs",
43
+ "docs:deploy": "npm run docs:build && cd docs && wrangler deploy"
44
+ },
45
+ "homepage": "https://bynarek.com/simdra/",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/promentol/simdra.git"
49
+ },
50
+ "bugs": {
51
+ "url": "https://github.com/promentol/simdra/issues"
52
+ },
53
+ "author": {
54
+ "name": "Narek",
55
+ "email": "promentol@gmail.com",
56
+ "url": "https://github.com/promentol"
57
+ },
58
+ "engines": {
59
+ "node": ">=18.0.0"
60
+ },
61
+ "publishConfig": {
62
+ "access": "public"
63
+ },
64
+ "keywords": [
65
+ "canvas",
66
+ "simd",
67
+ "zig",
68
+ "2d",
69
+ "graphics",
70
+ "wasm",
71
+ "image",
72
+ "image-processing",
73
+ "cloudflare-workers",
74
+ "edge",
75
+ "sharp"
76
+ ],
77
+ "license": "MIT",
78
+ "devDependencies": {
79
+ "@cloudflare/workers-types": "^4.20260502.1",
80
+ "@napi-rs/canvas": "^0.1.100",
81
+ "@types/node": "^25.6.0",
82
+ "@xmldom/xmldom": "^0.9.10",
83
+ "canvas": "^3.2.3",
84
+ "canvg": "^4.0.3",
85
+ "jest": "^30.3.0",
86
+ "node-fetch": "^3.3.2",
87
+ "node-zigar": "^0.15.2",
88
+ "pdfjs-dist": "^5.7.284",
89
+ "pdfjs-serverless": "^1.2.3",
90
+ "sharp": "^0.34.5",
91
+ "ssim.js": "^3.5.0",
92
+ "typescript": "^6.0.3",
93
+ "unpdf": "^1.6.2",
94
+ "vite": "^8.0.10",
95
+ "vite-plugin-dts": "^4.5.4",
96
+ "vitepress": "^2.0.0-alpha.17"
97
+ },
98
+ "packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0",
99
+ "dependencies": {
100
+ "rollup-plugin-zigar": "^0.15.2"
101
+ }
102
+ }