ai-agent

Build Resilient AI Agents with Langgraphjs

Get a framework for language agents as graphs, ideal for founders building AI-powered tools, backed by 3.0k+ GitHub stars

From the repo ยท โ€œFramework to build resilient language agents as graphs.โ€

intermediateโฑ 1-2 hours๐Ÿ’ต Free (self-hosted)
3,370 stars+13โ˜… this week611 forksTypeScriptGuide quality 9/10 ยท reviewed Jun 1Updated 10/22/2026100% free ยท open source
What it is

Build and manage AI agents as graphs using the Langgraphjs framework.

Real use case example

"A founder wants to create an AI-powered support chat. She sets up an agent using Langgraphjs, connects it to her website's API, and defines conditions for automated responses based on user input. With Langgraphjs, she can update or remove nodes easily, ensuring the chat remains functional and user-friendly."

Best insideClaude DesktopCodex CLI
When to use it
  • โ€ขWhen you need to create a conversational AI that can handle complex, open-ended user queries.
  • โ€ขWhen you want to build a language model that can learn from and adapt to new data and user interactions.
  • โ€ขWhen you're developing a chatbot or voice assistant that requires a high level of contextual understanding and conversational flow.
Ready-to-paste prompt
const { LangGraph } = require('langgraphjs'); const graph = new LangGraph(); graph.addNode({ id: 'hello', text: 'Hello, how are you?' }); graph.addEdge({ from: 'hello', to: 'goodbye', text: 'Goodbye!' });
Saves to your device
Use with Claude
New

Skip the builder โ€” one click puts this in Claude, Cursor, Antigravity and more.

๐Ÿ› ๏ธ Technical setup

Expect 20โ€“40 minutes in a terminal โ€” or let your AI agent drive it.

Try it instantly โ€” no install
Claude Code
mkdir -p ~/.claude/skills/langgraphjs && curl -fsSL https://workflowstacks.com/api/skills/langgraphjs/claude-skill -o ~/.claude/skills/langgraphjs/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go โ€” no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Build Resilient AI Agents with Langgraphjs works
Codeflow
Free to inspect

Build Resilient AI Agents with Langgraphjs is a very large TypeScript project (~128k lines across 676 code files, plus 444 test files). It is a full software project: use it through its install path rather than reading it end to end. Last commit this month, MIT license, has a test suite.

Size
Very large codebase
~128k lines ยท 676 code files ยท days to read โ€” use, don't read
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
Node.js
No API keys detected
TypeScript 98%Svelte 1%
Where to start reading
  1. 1
    README.md
    Start here โ€” what it does and how to install it
  2. 2
    AGENTS.md
    The instructions the AI actually follows
  3. 3
    package.json
    Dependencies and the commands it exposes
  4. 4
    internal/bench/README.md
    Inside internal/ โ€” the main logic begins here
  5. 5
    examples/.gitignore
    A worked example โ€” copy this to get going
What's in each folder
internal/Core code โ€” the actual logic81 files
examples/Examples you can copy389 files
docs/Documentation172 files
libs/Folder1292 files
scripts/Helper scripts2 files
.github/CI / automation (GitHub Actions)15 files
.changeset/Tool / agent settings4 files
.devcontainer/Editor / agent settings1 files
READMEHas testsDocumentedCI checksExamples includedMIT licenseUpdated this month
Quick Actions
Details
Creator
langchain-ai
Language
TypeScript
Category
ai-agent
Published
1/9/2024

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/langgraphjs.svg)](https://workflowstacks.com/skills/langgraphjs?utm_source=github&utm_medium=badge)
๐Ÿ”ฅ Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work โ€” importable n8n templates, outcome guides and Claude Desktop configs.