- Turborepo monorepo structure (packages: api, db, types, jobs; services: darkwatch) - Prisma schema: User, WatchListItem, Exposure, Alert, ScanJob models - WatchListService: CRUD with normalization, dedup, tier-based limits - HIBPService: API integration with severity scoring - MatchingEngine: exact-match with content hash dedup - AlertPipeline: dedup window, email notifications - ScanService: orchestrates watch list -> HIBP -> match -> alert flow - BullMQ job workers for scan and alert processing - Fastify API routes: watchlist, exposures, alerts, scan - Docker Compose: PostgreSQL 16 + Redis 7 - 15 unit tests passing - Implementation plan document uploaded
24 lines
489 B
JSON
24 lines
489 B
JSON
{
|
|
"name": "@shieldai/db",
|
|
"version": "0.1.0",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.js",
|
|
"scripts": {
|
|
"build": "prisma generate && tsc",
|
|
"db:migrate": "prisma migrate dev",
|
|
"db:seed": "tsx prisma/seed.ts",
|
|
"db:studio": "prisma studio",
|
|
"generate": "prisma generate"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/client": "^6.2.0",
|
|
"prisma": "^6.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"tsx": "^4.19.0"
|
|
},
|
|
"exports": {
|
|
".": "./src/index.ts"
|
|
}
|
|
}
|