a6de43edc1
- pnpm workspace: shared/server/client packages - Server: Fastify+ws, chess.js, FSM (touch-move + hierarchy), per-player view filter, zod validation, rate limiting, grace-window disconnect handling - Client: Svelte 5 + Vite, click-to-move board, moderator panel, promotion/draw dialogs - Shared: protocol types, ModeratorText enum, geometricMoves helper (provably zero opponent-info leak) - 43 tests pass (21 shared, 22 server incl. 4 real-WS integration) - Deploy: CT 690 on node-241 (192.168.0.245), systemd-managed, Caddy block for chess.sethpc.xyz - Live at https://chess.sethpc.xyz Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
33 lines
742 B
JSON
33 lines
742 B
JSON
{
|
|
"name": "@blind-chess/server",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "dist/server.js",
|
|
"scripts": {
|
|
"build": "tsc -b",
|
|
"dev": "tsx watch src/server.ts",
|
|
"start": "node dist/server.js",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@blind-chess/shared": "workspace:*",
|
|
"@fastify/static": "^8.0.0",
|
|
"@fastify/websocket": "^11.0.0",
|
|
"chess.js": "^1.4.0",
|
|
"fastify": "^5.2.0",
|
|
"pino": "^9.5.0",
|
|
"ws": "^8.18.0",
|
|
"zod": "^3.24.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.10.0",
|
|
"@types/ws": "^8.5.13",
|
|
"pino-pretty": "^11.3.0",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.6.0",
|
|
"vitest": "^3.0.0"
|
|
}
|
|
}
|