← Back to Leaderboard
Glanggenius

langgenius/graphon

Embeddable Python graph engine for event-driven AI workflows

View on GitHub ↗
Engineering Health (Methodology)
A+ · 92/100
Maintenance Activity
● Updated 4d ago
Latest Release
v0.9.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption17/25
Release Cadence20/20
License Clarity20/20
Self-Hosted
Total Stars
★ 91
24h Growth
+0
7d Growth
+1
Forks
47

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

langgenius/graphon Star History (2026-03-27 - 2026-12-01) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +90 in 249d · avg +0/day 96 48 0 2026-03-27: ★ 12026-04-18: ★ 242026-05-09: ★ 402026-05-30: ★ 472026-06-20: ★ 532026-07-11: ★ 642026-08-01: ★ 692026-08-22: ★ 752026-09-12: ★ 792026-10-03: ★ 832026-10-24: ★ 852026-11-09: ★ 862026-12-01: ★ 91 ★ 91 2026-03 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Graphon is an embeddable Python SDK. Workflows enter through YAML inspection and loading in graphon.dsl, or through Graph, GraphBuilder, and NodeFactory in graphon.graph. After graph construction and validation, the queue-based Engine orchestrates node execution through events. Runtime state and variables belong to execution frames, alongside shared workflow execution state. Frame ownership defines a state boundary, not a durability guarantee.

The host supplies workflow definitions, inputs, integration adapters, and any persistence. HTTP, file, tool, and human-input protocols define integration boundaries; extensible engine layers and external command channels offer additional hooks. The declared stack includes Pydantic and jsonschema for data validation, httpx for HTTP, and PyYAML for YAML. The top-level graphon package does not re-export the primary classes.

Key Capabilities & Differentiators

Graphon supports graph parsing and validation, fluent graph construction, built-in workflow nodes, and model runtime abstractions. The end-to-end Slim LLM example demonstrates two starting points: import a YAML workflow with a Slim-backed LLM node or assemble the graph directly in Python. That verifies a concrete integration path, not support for any particular model family or provider.

The dependency manifest includes pypdf, pypdfium2, python-docx, odfdo, pandas[excel], and unstructured[docx,md,ppt,pptx]. These are useful signals about the document-processing footprint, not a complete list of formats exposed by nodes. The v0.7.0 release explicitly adds OpenDocument text extraction, while v0.8.0 records an EPUB extractor fix.

Trade-offs & Limitations

Compared with adopting a hosted workflow platform, embedding Graphon gives the application control over integration adapters and persistence but leaves it responsible for those systems in production. For long-running or human-in-the-loop workflows, test how your host persists state, resumes after a restart, and handles duplicate side effects. A queue, frame-owned state, and a human-input protocol are not, by themselves, evidence of durable execution or distributed workers.

When evaluating it alongside a Python framework such as LangGraph, compare the same workflow on graph authoring, state and recovery semantics, and integration effort rather than assuming feature parity. Graphon's concrete differentiators to evaluate are its YAML import path and host-owned integration boundary. Document parsing and tokenization dependencies also broaden the installation footprint relative to a minimal scheduler, even if a particular workflow only calls model APIs.

Hardware & Deployment Guide

Use Python 3.12 or 3.13: pyproject.toml specifies >=3.12,<3.14, with the upper bound aligned to unstructured. Deploy Graphon within the host application and use examples/slim_llm/ to verify the YAML and Python entry paths. Plan the runtime image around the declared document and tokenizer dependencies. Size CPU and RAM for the documents processed and concurrent workflow runs. Whether execution needs network access or an inference GPU depends on the chosen model and integration; no fixed VRAM requirement is established.

No ready-to-run container or standalone deployment recipe is established. Pin and test upgrades: v0.7.0 removed legacy model type aliases as a breaking change; v0.8.0 centralized LLM prompt construction and hardened run state; and the listed v0.9.0 changes include centralizing repository guidance and enforcing its upkeep in CI.

Execution: The queue-based Engine orchestrates nodes through an event-driven execution model.
State ownership: Runtime state and variables belong to frames, alongside shared workflow execution state.
Graph authoring: Inspect and load YAML through graphon.dsl, or build graphs with graphon.graph.
Integration: Protocols cover HTTP, files, tools, and human input; the host supplies adapters and any persistence.
Extensibility: Engine layers and external command channels provide extension points beyond graph construction.
Model integration: The Slim LLM example exercises both YAML import and direct Python construction without establishing a provider compatibility matrix.
Best For

Python products that need embedded graph execution for AI workflows and already own their integration and persistence layers, with a choice of YAML or Python graph authoring.

Skip If

You need a standalone hosted workflow service, turnkey visual authoring, or verified durable recovery without additional host engineering.

Reviewed on 2026-11-30 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
graphon ★91+1PythonApache-2.0Embeddable Python graph engine for event-driven AI workflows
browser-use122.5k+534PythonMITPython REPL and CDP for adaptive browser automation
langchain150.2k+316PythonMITModular Python framework for building agents across model providers
agentscope37k+314PythonApache-2.0Python ReAct SDK and FastAPI service for observable, interruptible agent workflo

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/langgenius/graphon.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

langgenius/graphon Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about graphon

Where does Graphon plug into an existing Python application?

Use graphon.dsl.inspect and graphon.dsl.loads for YAML workflows, or construct the graph in Python with Graph, GraphBuilder, and NodeFactory from graphon.graph. Import from those subpackages rather than the top-level package. The host supplies inputs, integration adapters, and any persistence.

How should we size CPU, RAM, and VRAM?

There is no fixed GPU or VRAM requirement established for the graph engine. For an API-backed model integration, size the host for concurrent workflow runs, retained state, and any document parsing or tokenization it performs. For local inference, size memory and accelerators separately for the model and backend you actually run. Measure both with representative workflows.

Can we embed Graphon commercially and host it ourselves?

Graphon is Apache-2.0, which permits commercial use and embedding. If you redistribute it, comply with the license and applicable notice requirements. Review the licenses and terms of bundled dependencies, models, and external services separately. Hosting the engine yourself does not by itself keep workflow data on-premises; that depends on the adapters and model endpoints you configure.

When should we choose Graphon over LangGraph or a managed workflow platform?

Choose Graphon if you want a graph runner inside a Python product that already owns its integrations and persistence. If you're also considering LangGraph, prototype the same workflow in both and compare graph authoring, state ownership, recovery, and adapter effort. If you need a managed authoring and operations environment, compare against a workflow platform instead; Graphon does not establish that deployment surface.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining langgenius/graphon? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature langgenius/graphon on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare