The missing application layer for LangGraph
Your AI moat is your domain harness.
Build it around your data, business rules, and approvals. EZGraph gives every stage a shared contract for what it can see and do, how your code validates the result, and what the session saves for review.
Runs in your infrastructure. Free for production use under the commercial runtime license.
Extract the supplier, purchase order, and quantity.
The order lists 100 units. The invoice lists 108. The difference exceeds the allowed tolerance.
Finance receives the quantities and the rule that flagged the discrepancy.
Put your business rules to work at every stage.
LangGraph runs the graph. EZGraph standardizes how your workflow calls a model, hands off work, recovers from errors, and saves a session. Your team writes the policies and actions that make the workflow yours.
Scope tools and decisions.
Offer only the tools a stage needs. A model extracts invoice fields. Your handler checks the data against policy, saves accepted facts, and decides where to go next.
See how stages control toolsShare or isolate conversation history.
Give a node its own named history or assign related nodes to the same one. Keep accepted facts in typed node state or shared graph context so they can carry forward independently of the dialogue.
See how history spaces workInspect a saved session.
See where the workflow stopped, what facts it accepted, and what errors it recorded. People and tools can read the same session document in your own infrastructure.
See a session documentSee how real workflows apply their rules.
Explore a guided conversation, document extraction, and model output reviewed before publication.
Guide a conversation to a result.
Collect details, handle corrections, apply business rules, and ask for a clear confirmation. QuoteGraph makes this concrete with an insurance quote.
Walk through QuoteGraphTurn a document into structured data.
Attach a receipt, constrain the capture schema, and return expense JSON. ExpenseGraph demonstrates a request that finishes without a dialogue.
Explore extractionReview an answer before you publish it.
Generate a draft, evaluate it through a typed judgment, and let code publish an accepted result or a fallback. DecisionHotelGraph shows a reviewed presentation.
Explore reviewed tasks50.3% fewer lines of application code in QuoteGraph.
Two implementations cover the same five-stage insurance quote journey. EZGraph's shared runtime handles tool calls, stage transitions, and session plumbing that the direct LangGraph application maintains itself.
Inspect the counts, source, and limitationsOne implementation comparison, measured October 9, 2026. Backend helpers were counted separately at 287 lines each. The direct version handles one tool call per model response. EZGraph handles batches.
Give debugging a useful starting point.
Which node was active? What facts had it accepted? What history did it see? What warning accompanied the turn?
The session document gives these questions a common home, alongside model usage and decision diagnostics. Inspect the record with your own tools or provide a carefully selected excerpt to an AI debugging assistant.
- Typed node facts and graph-wide context
- Named histories and the active stage
- Usage, warnings, errors, and decisions
- Schema versions and migration hooks
Optional LangGraph checkpointing lets single-request workflows resume failed runs on retry and reuse completed runNode() tasks.
{
"id": "first-workflow",
"status": "completed",
"graph": {
"id": "StarterGraph",
"schemaVersion": 1,
"currentNode": "end",
"histories": {
"intake": ["…"],
"summary": ["…"]
},
"nodes": {
"CityNode": { "city": "Lisbon" },
"SummaryNode": {
"plan": "Trip to Lisbon: choose your dates, then book transport."
}
}
},
"warnings": [],
"errors": []
}A stage you can read in one place.
The node says what the model should do. Its handler says what the application will accept.
- 01Declare the prompt and allowed tools.
The city collector offers
capture_city, with a schema checked before its handler runs. - 02Save facts where they become valid.
saveState()stages a write to the current node's typed channel. Shared context has an explicit home too. - 03Return an explicit outcome.
stay()supplies corrective tool feedback;go()enters the next stage. Replies and completion have their own builders.
class CityNode extends LlmNode<StarterStateType> {
getPrompt() {
return "Ask for a city, then call capture_city.";
}
defineTool(): readonly ToolDefinition[] {
return [{
name: "capture_city",
description: "Save a destination city.",
schema: z.object({ city: z.string().min(2) }),
}];
}
@Tool("capture_city")
async captureCity({ city }: { city: string }) {
const value = city.trim();
if (!/^[\p{L} .'-]+$/u.test(value)) {
return stay("Ask for a valid city name.");
}
this.saveState({ city: value });
return go(SummaryNode);
}
}Run one workflow.
Inspect what it saves.
Start locally with two nodes, two turns, and an inspectable session. Scripted model replies make the first run reproducible.
The starter exercises the real engine, graph, handlers, and in-memory persistence. It includes tests for continuation, validation, and stage-specific tools. Node.js 22.5 or later; no model credentials needed for this run.
Then connect your model provider and persistence store using the developer guide.
cd ezgraph-starter
npm install
npm start
npm testYou: Hi
EZGraph: Which city would you like to visit?
You: Lisbon
EZGraph: Trip to Lisbon: choose your dates,
then book transport.
Completed: true
Session document: { … }A clear contract has a clear scope.
EZGraph fits TypeScript applications with guided stages and explicit application policy. Assess its execution and persistence conventions against your requirements.
A useful fit when…
You are building guided conversations, structured extraction, or reviewed tasks, and want a common way to organize nodes, histories, model policy, recovery, and sessions across them.
Check the fit when…
Your design depends on native token streaming, arbitrary checkpoint continuation, or unrestricted LangGraph topology. The current default is request/response turns, a constrained graph facade, and application session snapshots.
Practical answers for developers.
How does EZGraph relate to LangGraph and LangChain?
EZGraph compiles its authoring layer to a LangGraph StateGraph. LangGraph executes it; LangChain supplies underlying components. EZGraph adds a shared application contract for nodes, tools, histories, state, models, recovery, and sessions. LangChain also supplies agent loops and middleware; compare the conventions to decide which layer fits.
Can I start without an account or model credentials?
Yes. EZGraph needs no account or license key. The downloadable starter uses scripted model replies and local memory sessions. Live models require your chosen provider's credentials, or a custom adapter for your own endpoint. Model-provider and infrastructure costs are separate.
What does the runtime license allow?
Production application use has no EZGraph runtime fee, including commercial applications and internal use. The license restricts competing hosted services and redistribution as a competing SDK, developer library, or plugin framework. Read the full license for the governing terms.
Is the runtime open source?
The public npm runtime is distributed as compiled, obfuscated JavaScript with TypeScript declarations. The example application source is public. Optional paid support includes access to private readable source and a debug package while the subscription is active. Contact PicoFlow for support details.
How should I adopt it in an existing LangGraph application?
Start with a new workflow or a small stage. Adapt its prompt, tools, state, and transitions to the node contract, then test the behavior through the turn harness. Existing applications need deliberate adaptation to EZGraph's state and session contracts. The adoption guide maps those responsibilities.
Does tool scoping make model behavior fully reliable?
Tool scoping narrows the actions available at each stage. Schema checks, validation, explicit transitions, and recovery hooks give your application more control. Your handlers still own authorization, domain validation, and side effects; models still need evaluation on real scenarios.
Evaluate EZGraph on one workflow.
Start with a workflow your team already runs on LangGraph. Keep the model, prompts, and expected outcomes fixed. Measure how long an engineer takes to change a business rule and diagnose a failed turn. Use regression tests to check behavior and track turn latency and model usage.