John Kennedy fe2cf06c6a Merge pull request #8 from langchain-ai/dependabot/npm_and_yarn/npm_and_yarn-1d22a351cb
Bump @babel/core from 7.25.2 to 7.29.7 in the npm_and_yarn group across 1 directory
2026-07-14 01:45:13 -07:00
2025-08-29 11:24:58 -07:00
2025-08-28 14:21:50 -07:00
2025-07-28 13:57:03 -07:00
2025-07-28 13:57:03 -07:00
2025-07-28 13:57:03 -07:00
2025-08-28 14:21:50 -07:00
2025-07-28 13:57:03 -07:00
2025-08-29 13:28:16 -07:00
2025-08-28 14:21:50 -07:00
fix
2025-08-28 16:05:32 -07:00

LangGraph.js Monorepo Example

This repository provides a sample of deploying LangGraph agents inside a monorepo structure, demonstrating how agents can access and utilize shared workspace packages. This approach enables code reuse and consistent dependencies across multiple agents while maintaining a clean monorepo architecture.

Structure

isaac-js-graph/
├── libs/
│   └── shared/                 # Shared package with utilities
│       ├── package.json
│       ├── tsconfig.json
│       └── src/
│           ├── index.ts        # Exported utilities
│           └── index.js
├── apps/
│   ├── agent1/
│   │   ├── langgraph.json      # LangGraph configuration
│   │   ├── package.json
│   │   ├── tsconfig.json
│   │   └── src/
│   │       ├── graph.ts        # LangGraph implementation
│   │       └── state.ts        # State definitions
│   └── agent2/
│       ├── langgraph.json      # LangGraph configuration
│       ├── package.json
│       ├── tsconfig.json
│       └── src/
│           ├── graph.ts        # LangGraph implementation
│           └── state.ts        # State definitions
├── package.json                # Root workspace configuration
├── turbo.json                  # Turborepo configuration
├── tsconfig.json               # Root TypeScript config
└── yarn.lock

Features

  • Multiple agents deployed within a single monorepo
  • Shared workspace packages accessible by all agents
  • Consistent dependency management across agents

Usage

Each agent can be run independently using the LangGraph CLI, and both will have access to the shared utility functions via the dependency configuration. For monorepo support, you can run your build command from the root, getting the benefits of the shared dependencies.

Agent 1

langgraph build -t js-monorepo-agent-1 --build-command "yarn run turbo build" -c apps/agent1/langgraph.json

Agent 2

langgraph build -t js-monorepo-agent-2 --build-command "yarn run turbo build" -c apps/agent2/langgraph.json

S
Description
Example JS monorepo for deploying to LangGraph Platform
Readme MIT 1.1 MiB
Languages
TypeScript 100%