- Fastify server with Zod validation, pino logging, CORS/helmet - Drift report ingestion endpoint with nonce replay prevention - Dashboard API: stacks list, drift history, report detail, summary stats - PostgreSQL schema with RLS: tenants, users, agent_keys, drift_reports, remediation_actions - withTenant() helper for safe connection pool tenant context management - Config via Zod-validated env vars
42 lines
995 B
JSON
42 lines
995 B
JSON
{
|
|
"name": "dd0c-drift-saas",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "eslint src/ tests/"
|
|
},
|
|
"dependencies": {
|
|
"fastify": "^4.28.0",
|
|
"@fastify/cors": "^9.0.0",
|
|
"@fastify/helmet": "^11.1.0",
|
|
"pg": "^8.12.0",
|
|
"drizzle-orm": "^0.31.0",
|
|
"ioredis": "^5.4.0",
|
|
"zod": "^3.23.0",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"bcryptjs": "^2.4.3",
|
|
"pino": "^9.1.0",
|
|
"uuid": "^9.0.1",
|
|
"@aws-sdk/client-sqs": "^3.600.0",
|
|
"@aws-sdk/client-s3": "^3.600.0"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.5.0",
|
|
"tsx": "^4.15.0",
|
|
"vitest": "^1.6.0",
|
|
"@types/node": "^20.14.0",
|
|
"@types/pg": "^8.11.0",
|
|
"@types/jsonwebtoken": "^9.0.6",
|
|
"@types/bcryptjs": "^2.4.6",
|
|
"@types/uuid": "^9.0.8",
|
|
"drizzle-kit": "^0.22.0",
|
|
"eslint": "^9.5.0"
|
|
}
|
|
}
|