Files
botfights/server/package.json
T
DorianandClaude Opus 4.6 5bfb63aa7f fix: add input validation, Zod schemas, rate limiting, and IP trust
- Add Zod schema for webhook response parsing (orchestrator.ts)
- Add Zod schemas for POST /respond and /react request bodies
- Add safe integer validation for batch count param
- Prefer cf-connecting-ip over spoofable x-forwarded-for
- Add ID format validation on URL params
- Add rate limiting on /auth/login (30/min) and /update (10/min)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 07:30:49 +00:00

33 lines
822 B
JSON

{
"name": "server",
"private": true,
"type": "module",
"scripts": {
"dev": "tsx watch -r dotenv/config src/index.ts",
"build": "tsc",
"start": "node -r dotenv/config dist/index.js",
"seed": "tsx src/seed.ts",
"fight-loop": "tsx -r dotenv/config src/fight-loop-cli.ts",
"migrate": "tsx src/db/migrate.ts"
},
"dependencies": {
"@cashu/cashu-ts": "^3.5.0",
"@hono/node-server": "^1.14.1",
"better-sqlite3": "^11.9.1",
"chalk": "^5.6.2",
"dotenv": "^17.3.1",
"drizzle-orm": "^0.40.1",
"hono": "^4.7.6",
"nanoid": "^5.1.5",
"nostr-tools": "^2.23.3",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.13",
"@types/node": "^22.13.14",
"drizzle-kit": "^0.30.5",
"tsx": "^4.19.3",
"typescript": "^5.7.3"
}
}