Skip to content

borumea/Network-Topology-Scanner

Repository files navigation

Network Topology Scanner

Network discovery and visualization tool. Scans your LAN with nmap + SNMP + passive capture, infers device connections, and renders an interactive topology graph. FastAPI backend, React + Cytoscape.js frontend, Neo4j graph database.

AI agents: Read CLAUDE.md first — it is the authoritative reference for this codebase.


Quickstart (Demo Mode)

Requires Docker only.

cd network-topology-mapper
./demo.sh up      # starts all services + 5 demo network containers (~60s)
./demo.sh scan    # triggers scan against demo network
./demo.sh status  # health check

Open http://localhost:3000 to see the topology graph.

The demo network has: nginx web server, Postgres DB, file server (SSH+SMB), JetDirect printer, SNMP device — all on nts-net (172.20.0.0/24).

./demo.sh down    # tear down when done

Prerequisites

  • Docker 20.10+ and Docker Compose 2.0+
  • 4 GB RAM available for Docker

For local (non-Docker) development, see INSTALL_GUIDE.md.


Ports

Service URL
Frontend http://localhost:3000
Backend API http://localhost:8000
API docs http://localhost:8000/docs
Neo4j browser http://localhost:7474 (neo4j / changeme)

Scan Your Own Network

# Trigger a scan against your LAN
curl -X POST http://localhost:8000/api/scan \
  -H "Content-Type: application/json" \
  -d '{"target": "192.168.1.0/24"}'

# Check topology stats
curl http://localhost:8000/api/topology/stats | jq

Docs

  • CLAUDE.md — agent constitution, directory structure, sacred rules
  • QUICK_START_GUIDE.md — demo quickstart
  • INSTALL_GUIDE.md — database setup for local dev
  • docs/ARCHITECTURE.md — system architecture, scan pipeline, data flow
  • docs/API.md — full API reference
  • docs/SETUP.md — detailed setup guide
  • docs/CONTRIBUTING.md — branch conventions, PR process
  • docs/TROUBLESHOOTING.md — common issues and fixes

Tech Stack

Python 3.11 / FastAPI / Neo4j 5 / Redis 7 / SQLite — React 18 / TypeScript / Vite / Cytoscape.js / Zustand / Tailwind CSS

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors