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{
"name": "samcan",
"version": "0.0.2",
"description": "canvas",
"license": "MIT",
"author": "aquaticcalf",
"repository": {
"type": "git",
"url": "git+https://github.com/aquaticcalf/samcan.git"
},
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./react": {
"types": "./dist/wrapper/react/index.d.ts",
"import": "./dist/wrapper/react/index.js",
"default": "./dist/wrapper/react/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"dev": "bun index.ts",
"build": "bun x tsc -p tsconfig.build.json",
"bundle": "bun build ./index.ts --outfile ./dist/bundle.js --target browser --format esm",
"tsc": "tsc --noEmit",
"fix": "biome format --write",
"loc": "bun .scripts/cloc.ts",
"bench": "bun .scripts/benchmark.ts",
"prepare": "husky",
"demo": "bun run build && bun run bundle && bun demo/server.ts",
"publish": "npm publish --tag latest",
"test": "bun test"
},
"devDependencies": {
"@biomejs/biome": "^2.3.6",
"@types/bun": "^1.3.2",
"@types/earcut": "^3.0.0",
"@types/jsdom": "^27.0.0",
"@types/react": "18.3.1",
"@types/react-dom": "18.3.1",
"canvas": "^3.2.0",
"cloc": "^2.6.0-cloc",
"fast-check": "^4.3.0",
"husky": "^9.1.7",
"jsdom": "^27.2.0",
"mcp-fetch-server": "^1.0.2",
"typescript": "^5.9.3"
},
"peerDependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"dependencies": {
"earcut": "^3.0.2",
"paper": "^0.12.18",
"tinybench": "^5.1.0"
}
}