PeerCortex/package.json
Rene Fichtmueller 5554c1a53e feat: BGP Hijack Alerting + Webhooks (Feature 1)
- Deterministic Classification: MOAS/HIJACK/LEAK type detection
- Severity scoring: CRITICAL/HIGH/MEDIUM/LOW based on prefix length
- Optional Ollama enrichment (qwen2.5:3b) for CRITICAL only (5s timeout)
- PostgreSQL backend: hijack_events, webhook_subscriptions, webhook_deliveries
- HMAC-SHA256 webhook signing with exponential backoff retry
- Retry scheduler: node-cron job every 5 minutes
- 6 API endpoints: POST/GET/DELETE webhooks, test delivery, list/resolve hijacks
- 22 comprehensive tests (80%+ coverage)
- Zero external API costs (deterministic + local Ollama only)
2026-04-29 07:45:15 +02:00

97 lines
2.4 KiB
JSON

{
"name": "peercortex",
"version": "0.7.0",
"description": "AI-Powered Network Intelligence Platform — MCP Server for PeeringDB, RIPE Stat, BGP analysis, RPKI monitoring, and peering automation. Powered by local Ollama.",
"main": "dist/mcp-server/index.js",
"types": "dist/mcp-server/index.d.ts",
"bin": {
"peercortex": "dist/mcp-server/index.js"
},
"scripts": {
"build": "tsc",
"dev": "tsx watch src/mcp-server/index.ts",
"start": "node dist/mcp-server/index.js",
"lint": "eslint src/",
"lint:fix": "eslint src/ --fix",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"clean": "rm -rf dist/",
"prepublishOnly": "npm run build"
},
"keywords": [
"mcp",
"mcp-server",
"peeringdb",
"bgp",
"rpki",
"ripe-stat",
"network-intelligence",
"peering",
"asn-lookup",
"prefix-lookup",
"internet-exchange",
"route-leak-detection",
"bgp-hijack-detection",
"bgp-monitoring",
"bgp-analysis",
"peering-automation",
"rpki-monitoring",
"rpki-compliance",
"noc-tools",
"network-operator",
"ollama",
"self-hosted",
"local-ai",
"claude-code",
"irr-query",
"route-views",
"bgp-anomaly"
],
"author": "Rene Fichtmueller",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/renefichtmueller/PeerCortex.git"
},
"bugs": {
"url": "https://github.com/renefichtmueller/PeerCortex/issues"
},
"homepage": "https://peercortex.org",
"engines": {
"node": ">=20.0.0"
},
"dependencies": {
"@grpc/grpc-js": "^1.14.3",
"@grpc/proto-loader": "^0.8.0",
"@modelcontextprotocol/sdk": "^1.12.0",
"axios": "^1.6.0",
"better-sqlite3": "^11.7.0",
"cheerio": "^1.0.0",
"fastify": "^5.8.5",
"joi": "^17.11.0",
"node-cron": "^3.0.3",
"node-whois": "^2.1.3",
"ollama": "^0.5.12",
"pg": "^8.11.0",
"playwright": "^1.40.0",
"zod": "^3.24.0"
},
"devDependencies": {
"@playwright/test": "^1.40.0",
"@types/better-sqlite3": "^7.6.12",
"@types/node": "^22.10.0",
"@types/node-cron": "^3.0.0",
"@types/pg": "^8.11.0",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"@vitest/coverage-v8": "^2.1.0",
"eslint": "^9.16.0",
"nock": "^13.4.0",
"tsx": "^4.19.0",
"typescript": "^5.7.0",
"vitest": "^2.1.0"
}
}