wanmol/goal-flow
A framework that turns Dify's drag-and-drop chatbot flows into code you can actually run yourself
goalflow is an open-source framework built on top of LangGraph that transpiles workflows designed in Dify's visual editor into runnable Python code, so you're not locked into Dify's runtime. It also supports hand-coded agent loops, and the two approaches can be combined. In load testing, it handled 100 concurrent conversations across two replicas with 2 vCPU and 4 GB RAM each, with no measurable slowdown in time-to-first-token.
What it does
- Converts a Dify DSL export (a YAML workflow file from Dify's drag-and-drop editor) into a runnable, version-controllable LangGraph Python file with a single command, removing dependency on Dify's own runtime
- Ships 20+ built-in nodes (LLM calls, code execution, HTTP requests, if/else branching, loops, tool calls, and more) and lets a graph node host an agent loop while an agent can call sub-workflows as tools
- Uses a pluggable DataAdapter so the wire protocol can be swapped, with Dify's protocol and an OpenAI-compatible protocol included out of the box and custom ones supported
- Streams tokens only from nodes that provably lead to an answer, so output from branches that were never taken doesn't leak to the client, and supports human-in-the-loop interrupts to pause execution for review
- In load testing, a two-replica deployment at 2 vCPU / 4 GB RAM per replica sustained 100 concurrent conversations with no measurable regression in time-to-first-token
Why it matters
Teams that prototype quickly in a no-code tool like Dify but need to own and deploy the real production system get a practical way out of vendor lock-in. Built-in pieces for conversation storage, knowledge retrieval, and tracing (via Langfuse) mean less has to be built from scratch when moving from prototype to production.
Terms in this repo
- LangGraph · A Python library for building and running LLM application logic as a graph of steps
- Dify DSL · The YAML file format Dify's visual editor exports a workflow design into
- transpile · Convert code or a configuration from one format into another runnable form
- DataAdapter · An abstraction layer that lets the server swap which communication protocol it uses to respond to clients
- HITL (human-in-the-loop) · A mechanism that lets a person step in to review or pause an otherwise automated process
Repository description (English)
a production-grade framework on LangGraph. Combine workflow graphs and agent loops, transpile Dify DSL to runnable code, swap wire protocols (Dify/OpenAI).
Open on GitHubTrending repos
- vorssaint/vorssaint-utilsOne free menu bar app replaces a dozen paid Mac utilities
- Alishahryar1/free-claude-codeA local proxy that lets coding AI agents run on 49 free or cheap model providers instead of one paid service
- freestylefly/awesome-gpt-image-2A library of 532 reverse-engineered prompts that turn GPT-Image2 into a predictable image-making tool
- block/buzzAn open-source workspace where humans and AI agents chat, code, and review in the same rooms
- NousResearch/hermes-agentNous Research's Hermes is an AI agent that gets smarter the more you use it
- virgiliojr94/book-to-skillA tool that turns technical book PDFs into on-demand reference skills for AI coding agents
- VoltAgent/awesome-agent-skillsA single hub collecting over 1000 'how-to' manuals that make AI coding assistants act like experts
- anthropics/claude-plugins-communityA shared shelf where anyone's Claude add-ons get listed for install