A
statelyai/agent★ 511 · TypeScript
An XState-based TypeScript SDK for constraining and replaying LLM workflows
MIT · Commercial Friendlyv1.1.6
Side-by-side 2026 comparison in Agents & Frameworks: langchain-ai/langgraph leads both total GitHub adoption (★ 45.8k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs MIT · Commercial Friendly.
An XState-based TypeScript SDK for constraining and replaying LLM workflows
Python graph orchestration for stateful, resumable agents and workflows
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | statelyai/agent | langchain-ai/langgraph |
|---|---|---|
| Total GitHub Stars | ★ 511 | ★ 45,776 |
| 24h / 7d Velocity | +0 / +3 | +50 / +293 |
| 7-Day Trend Curve | ||
| Engineering Health | A · 78/100 | A+ · 100/100 |
| Deployment Signals | API | CLI |
| Primary Language | TypeScript | Python |
| Commercial License | MIT · Commercial Friendly | MIT · Commercial Friendly |
| Activity | Updated today | Updated today |
| Latest Release | v1.1.6 | 1.2.25 |
| Best For | TypeScript teams building approval-gated support or operations workflows that need explicit business rules, resumable pauses, and auditable replay, or migrating an existing agent in phases with parity checks | Teams building long-running workflows whose branching, human approvals, or recovery behavior must be explicit and testable |
agent.decide receives allowedEvents; XState guards still decide whether a proposed transition can fire.canReach can test whether a sentinel state is reachable without a model API key; check complete before treating non-reachability as proof.replay reconstructs state from recorded events without another model call.wrapWorkflow captures a baseline, while checkParity compares behavior as phases move into the machine.pnpm add @statelyai/agent@2.0.0-alpha.41 xstate@6.0.0-beta.2 zodpip install -U langgraph
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy