PeerCortex/package.json
Rene Fichtmueller 3515244d27 feat: PDF export for ASN reports and head-to-head comparisons
- GET /api/export/pdf?asn=X&format=report|executive|technical
  → Generates multi-page PDF with cover, score ring, health checks, RPKI,
    BGP topology, recommendations — MAGATAMA CI styling (indigo #6366f1)
- GET /api/export/pdf/compare?asn1=X&asn2=Y
  → Side-by-side comparison PDF with score rings, metrics table, head-to-head
    health check grid
- 5-minute in-memory cache (X-Cache: HIT on second request)
- Lazy puppeteer browser pool (launched on first request, reused)
- Graceful fallback: returns 503 JSON if puppeteer unavailable
- ~300KB PDF, 4 pages, ~12s first render / 8ms cached
2026-04-29 23:03:28 +02:00

88 lines
2.2 KiB
JSON

{
"name": "peercortex",
"version": "0.6.5",
"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",
"better-sqlite3": "^11.7.0",
"cheerio": "^1.0.0",
"node-whois": "^2.1.3",
"ollama": "^0.5.12",
"puppeteer": "^24.42.0",
"zod": "^3.24.0"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.12",
"@types/node": "^22.10.0",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"@vitest/coverage-v8": "^2.1.0",
"eslint": "^9.16.0",
"tsx": "^4.19.0",
"typescript": "^5.7.0",
"vitest": "^2.1.0"
}
}