PeerCortex/package.json
Rene Fichtmueller 344ee15338 feat(bio-rd): add local RIB integration via bio-rd gRPC client
Adds real-time local BGP RIB data as a complement to external APIs
(RIPE Stat, bgproutes.io) which have rate limits and 15min+ delays.

- bio-rd-client.js: gRPC client for bio-routing/bio-rd RIS service
  - LPM, Get, GetLonger, GetRouters, DumpRIB, ObserveRIB methods
  - IPv4/IPv6 encoding as uint64 pair (bio.net format)
  - Full BGP path decode: AS paths, communities, large communities
  - Graceful fallback if RIS unavailable (null/empty returns)
- protos/: bio-rd proto definitions (ris, bgp, session, route, net)
- server.js: three new endpoints + WebSocket stream
  - GET /api/rib/prefix — LPM + more-specifics via GetLonger
  - GET /api/rib/routers — list BMP-monitored routers
  - GET /api/rib/dump — full RIB dump with ASN filter + limit
  - WS /ws/rib — live ObserveRIB stream (add/withdraw events)
- package.json: @grpc/grpc-js + @grpc/proto-loader dependencies
2026-04-05 11:44:50 +02:00

87 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",
"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"
}
}