Skip to main content

Visualizer for processes and their interconnections

Project description

sysgraph

An interactive force-directed network graph visualizer for the browser — with two modes:

  • Import any graph — load any JSON graph (nodes + edges) to explore and visualize it interactively
  • Live process graph — discover running OS processes and their inter-process communication channels in real time (cross-platform; richest on Linux)

PyPI Python License

Features

  • Import any graph — load a JSON file with nodes and edges to visualize any network, social graph, dependency tree, or dataset
  • Export/Import — save and reload graph snapshots as JSON; use the sample at data/simple-graph.json as a format reference
  • Interactive graph — force-directed graph rendered in the browser with zoom, pan, drag, and search
  • Dockable workspace — settings, analytics, and selection-details open as dockable panels around the graph; drag tabs to rearrange, and your layout (sizes and placement) persists across reloads
  • Fuzzy search — find nodes by any property
  • Adjacency filtering — right-click a node to show only its neighbors
  • Configurable — tune d3 force parameters, colors, and type filters via the settings panel
  • Process discovery — enumerates running OS processes and their parent-child relationships (cross-platform via psutil)
  • IPC visualization — discovers TCP/UDP connections (all platforms), Unix domain sockets and pipes (Linux only)
  • Real-time — fetch the latest process graph on demand via the web UI

Demo

Demo

Requirements

  • Python ≥ 3.12
  • Linux, macOS, or Windows — process and network discovery works on all platforms via psutil; Unix domain sockets and pipe discovery require Linux
  • Root/sudo recommended for full process visibility on Linux/macOS

Installation

pip install sysgraph

Usage

# Start the web server (default: http://localhost:8000)
sysgraph

# Specify a custom port
sysgraph --port 9000

# Or run as a module
python -m sysgraph

Open your browser to the displayed URL.

Visualize your own graph

Use the Import button in the UI to load any JSON file in the following format:

{
  "nodes": [
    {"id": "1", "type": "person", "properties": {"name": "Alice"}},
    {"id": "2", "type": "person", "properties": {"name": "Bob"}}
  ],
  "edges": [
    {"source_id": "1", "target_id": "2", "type": "knows", "properties": {}}
  ]
}

See data/simple-graph.json for a minimal example.

Live process graph

For full visibility into all processes and their connections, run with elevated privileges (Linux/macOS):

sudo sysgraph

Docker

docker run --rm -it --pid=host --net=host gubenkoved/sysgraph

The --pid=host and --net=host flags allow the container to see host processes and network connections.

How It Works

  1. The browser frontend renders interactive force-directed graphs using force-graph with d3 physics simulation.
  2. Graphs can be imported from JSON directly in the browser, or fetched live from the backend.
  3. The FastAPI backend uses psutil to discover processes and network connections (cross-platform), plus Linux-specific APIs (/proc, ss) for pipe and Unix domain socket discovery, building a graph served via GET /api/graph.

Development

Prerequisites

  • Python ≥ 3.12, Docker (for frontend builds)
  • Node.js 22 runs inside Docker; no host installation required

Backend

python3 -m venv .venv && source .venv/bin/activate
pip install -e . && pip install -r requirements-dev.in
python src/sysgraph/app.py   # → http://localhost:8000

Frontend (TypeScript + Vite)

./scripts/build-ui.sh         # production build → src/sysgraph/dist/
./scripts/dev-ui.sh           # Vite dev server with HMR on :5173
./scripts/typecheck-ui.sh     # TypeScript type checking
./scripts/lint-ui.sh          # Biome linter (pass --fix to auto-fix)

Tests

pytest src/sysgraph/tests/

Python linting

./scripts/lint.sh             # ruff check + ruff format + isort

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sysgraph-0.2.31.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sysgraph-0.2.31-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file sysgraph-0.2.31.tar.gz.

File metadata

  • Download URL: sysgraph-0.2.31.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for sysgraph-0.2.31.tar.gz
Algorithm Hash digest
SHA256 ebd4265176ac6e51787508b0dc1b638ae2cff6f8ece9a08a069c9405009db62e
MD5 f6bc70f2ba4bcdb89fcffafacf507cb4
BLAKE2b-256 347945410a81c8b9dd0be63c01cbbd0f8faf1ce731db0159285b8674a4b5be7d

See more details on using hashes here.

File details

Details for the file sysgraph-0.2.31-py3-none-any.whl.

File metadata

  • Download URL: sysgraph-0.2.31-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for sysgraph-0.2.31-py3-none-any.whl
Algorithm Hash digest
SHA256 4c19fb71e7b2b1d31836a4a327a7cb1cef2bd6c6199ca21a8d2c31c0cbd0fbc8
MD5 e812684de3d67edd0d27e879d775f7e3
BLAKE2b-256 09d44dbfa07a4c385d3e232cf6225c655ce971a42e176d9525e54378ca849a91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page