Skip to main content

Visualizer for processes and their interconnections

Project description

sysgraph

Real-time process-graph visualizer that discovers running OS processes, their inter-process communication channels (pipes, Unix domain sockets, TCP/UDP network connections), and renders them as an interactive force-directed graph in the browser.

Python License

Features

  • Process discovery — enumerates all running OS processes and their parent-child relationships
  • IPC visualization — discovers pipes, Unix domain sockets, and TCP/UDP connections between processes
  • Interactive graph — force-directed graph rendered in the browser with zoom, pan, drag, and search
  • Real-time — fetch the latest process graph on demand via the web UI
  • Fuzzy search — find processes by name, PID, command line, or any property
  • Adjacency filtering — right-click a node to show only its neighbors
  • Configurable — tune d3 force parameters, colors, and filters via the settings panel
  • Export/Import — save and load graph snapshots as JSON

Requirements

  • Linux (relies on /proc filesystem and the ss command)
  • Python ≥ 3.12
  • Root/sudo recommended for full visibility into all processes

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 to see the interactive process graph.

For full visibility into all processes and their connections, run with elevated privileges:

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 FastAPI backend uses psutil and Linux-specific APIs (/proc, ss) to discover processes, pipes, Unix domain sockets, and network connections.
  2. It builds a graph of processes (nodes) and their IPC channels (edges).
  3. The browser frontend fetches the graph via GET /api/graph and renders it using force-graph with d3 physics simulation.

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.0.13.tar.gz (193.5 kB view details)

Uploaded Source

Built Distribution

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

sysgraph-0.0.13-py3-none-any.whl (190.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sysgraph-0.0.13.tar.gz
Algorithm Hash digest
SHA256 e31a47e13e1a4ec16d78ac6a0f5c5f7555c8ca6468a452b1df434254002c3e1d
MD5 bf3f5510555bed6c4d8cd674ed4aab0d
BLAKE2b-256 c35a1534004840164a7bbe52224d9f393719f448e0b79bbfd7d20dab76026d40

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sysgraph-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 18ee6ac158ba02ffe150e55ca14095deb7fae170bec4466ecc030f41e5f88daf
MD5 ad396f52c97b1c5ddf6564e00f806171
BLAKE2b-256 8ede772fc5f9de988abaf3a3c309e22e024101f370db249b890a7b028970e2a8

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