Skip to main content

Universal architecture graph extractor, merger and runtime generator — 42 languages supported

Project description

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

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

graphruntime-2.0.0b1.tar.gz (64.9 kB view details)

Uploaded Source

Built Distribution

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

graphruntime-2.0.0b1-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file graphruntime-2.0.0b1.tar.gz.

File metadata

  • Download URL: graphruntime-2.0.0b1.tar.gz
  • Upload date:
  • Size: 64.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for graphruntime-2.0.0b1.tar.gz
Algorithm Hash digest
SHA256 3baeeb31471ffcc91edadf0f1a57739cf576c325d1904dc0fcbf26b1fabcfdeb
MD5 2f85c4e7a00d39793de33b9d53dd5c16
BLAKE2b-256 e7676616cc73ae51b6f23cc22a28b9ccd6f63a1196a67326810c0a72131ceb2d

See more details on using hashes here.

File details

Details for the file graphruntime-2.0.0b1-py3-none-any.whl.

File metadata

  • Download URL: graphruntime-2.0.0b1-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for graphruntime-2.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 3105f539e1c00aff2d380ebf6de6b55187d09da5f72a44cd85b2b1536adf4f1a
MD5 3c7e42b606fd77fd20f82b56d56e3ede
BLAKE2b-256 2b9d34073723ba8ea672df049450b74caec92a06511b51dbd8cb6ed4c6ed4b47

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