Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

GraphRuntime

How GraphRuntime Works


PyPI version Downloads Python versions License Stars CI 42 languages Issues


What is GraphRuntime?

GraphRuntime extracts the architectural graph of any software project or package, enables LLMs to reason on that graph, and generates a runtime.json that connects, modifies, or fuses multiple systems — in any language.

pip install graphruntime

The 4 Universal Questions

Every file in every project answers 4 questions:

→ What enters this file?      (imports, dependencies)
→ What exits this file?       (classes, functions, exports)
→ What does it call?          (internal dependencies)
→ Who calls it?               (inferred by graph inversion)

These 4 questions work on Python, TypeScript, Rust, Go, Java, C++, Terraform, SQL, GraphQL — 42 languages supported.


Quick Start

# Extract graph from a local repo
graphruntime extract ./my-project

# Pull a pre-analyzed graph from the registry
graphruntime pull flask
graphruntime pull numpy

# Inspect an architecture
graphruntime inspect graph.json

# Merge two architectures with an objective
graphruntime merge graph_flask.json graph_numpy.json \
  --objective "REST API that processes dataframes"

# Execute a runtime
graphruntime run runtime.json

# Let the AI choose everything
graphruntime goal "I want an API that transcribes audio files to PDF"

CLI Commands

Command Description
extract <source> Extract graph from local path, GitHub, PyPI, npm, cargo
pull <package> Pull pre-analyzed graph from registry
inspect <graph> Human-readable architecture summary
diff <graph_a> <graph_b> Architectural diff between two versions
modify <repo> Modify existing repo guided by graph
create <repo> Create missing files identified by graph
rewire <repo> Invert or reroute data flow between modules
merge <a> <b> Fuse two architectures into a runtime
run <runtime> Execute a runtime.json
watch <repo> Live graph rebuild on file changes
explain <graph> LLM explains the architecture
validate <repo> Validate architectural integrity
goal "<objective>" AI selects libs, builds and runs everything
publish <graph> Contribute a graph to the registry

Supported Sources

graphruntime extract ./local-path
graphruntime extract github:user/repo
graphruntime extract pip:flask
graphruntime extract npm:react
graphruntime extract cargo:tokio
graphruntime extract go:gin-gonic/gin

LLM Providers

graphruntime config set provider groq      # default
graphruntime config set provider openai
graphruntime config set provider anthropic
graphruntime config set provider ollama    # local

Registry

The GraphRuntime Registry contains pre-analyzed graph.json files for the most critical packages in the world. Browse at registry/ or pull directly:

graphruntime pull pandas
graphruntime pull kubernetes
graphruntime pull react

Contribute a new graph:

graphruntime publish my_graph.json --package mypackage --version 1.0.0

SKILL.md for AI Agents

Any LLM or AI agent can understand and pilot GraphRuntime by reading SKILL.md.


Contributors

Contributors


License

MIT © GraphRuntime Contributors

Footer

Metadata

Release files for graphruntime 2.0.0b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphruntime 2.0.0b1
File Size Uploaded
graphruntime-2.0.0b1.tar.gz 64.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for graphruntime 2.0.0b1
File Interpreter ABI Platform
graphruntime-2.0.0b1-py3-none-any.whl Python 3 none any Details

Total release size: 94.1 kB

Release files / graphruntime-2.0.0b1.tar.gz

Download URL graphruntime-2.0.0b1.tar.gz
Size 64.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3baeeb31471ffcc91edadf0f1a57739cf576c325d1904dc0fcbf26b1fabcfdeb
BLAKE2b-256 checksum
How to use checksums
e7676616cc73ae51b6f23cc22a28b9ccd6f63a1196a67326810c0a72131ceb2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / graphruntime-2.0.0b1-py3-none-any.whl

Download URL graphruntime-2.0.0b1-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3105f539e1c00aff2d380ebf6de6b55187d09da5f72a44cd85b2b1536adf4f1a
BLAKE2b-256 checksum
How to use checksums
2b9d34073723ba8ea672df049450b74caec92a06511b51dbd8cb6ed4c6ed4b47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page