Files
tts-workshop/apps/proxy/package.json
T
hypercross 445dbc1781 feat(proxy): add image tracing endpoint
Add GET /trace which fetches an image, traces it into a vector shape, and returns the result BSON-encoded. Tracing is configurable via mode (alpha, bw, color) and format (shape, svg). The shape format parses the vtracer SVG into an outline/holes polygon matching @tts/mesh's Shape interface.
2026-08-08 14:51:36 +08:00

31 lines
759 B
JSON

{
"name": "@tts/proxy",
"version": "0.0.0",
"private": true,
"type": "module",
"main": "./dist/index.js",
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc -p tsconfig.json",
"start": "node dist/index.js",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run",
"lint": "echo \"no lint configured\""
},
"dependencies": {
"@hono/node-server": "^1.13.7",
"@tts/shared": "workspace:*",
"@tts/tts": "workspace:*",
"@visioncortex/vtracer": "1.0.0-alpha.3",
"bson": "^6.10.4",
"hono": "^4.6.14",
"sharp": "^0.35.3",
"svgpath": "^2.6.0",
"zod": "^3.24.1"
},
"devDependencies": {
"@types/node": "^22.10.2",
"tsx": "^4.19.2",
"typescript": "^5.7.2"
}
}