
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
create-langgraph
Advanced tools
The official scaffolding tool for LangGraph.js projects. Quickly bootstrap new LangGraph applications from curated templates or generate configuration files for existing projects.
Create a new LangGraph project with a single command:
# Using npm
npm init langgraph@latest
# Using yarn
yarn create langgraph
# Using pnpm
pnpm create langgraph
# Using pnpm
pnpm create langgraph
# Using bun
bunx create-langgraph
Follow the interactive prompts to select a template and configure your project.
Choose from a variety of production-ready templates:
| Template | Description |
|---|---|
| New LangGraph Project | A simple, minimal chatbot with memory |
| ReAct Agent | A flexible agent that can be extended with many tools |
| Memory Agent | A ReAct-style agent with persistent memory across conversations |
| Retrieval Agent | An agent with retrieval-based question-answering |
| Data-enrichment Agent | An agent that performs web searches and organizes findings |
Skip the interactive prompt by specifying a template directly:
npx create-langgraph@latest my-project --template react-agent-js
Available template IDs:
new-langgraph-project-jsreact-agent-jsmemory-agent-jsretrieval-agent-jsdata-enrichment-jscreate-langgraph [path]Creates a new LangGraph project at the specified path.
npx create-langgraph@latest my-awesome-agent
Options:
-t, --template <template> — Use a specific template (skips interactive selection)What it does:
create-langgraph config [path]Scans your project for LangGraph agents and generates a langgraph.json configuration file.
# In your project directory
npx create-langgraph@latest config
# Or specify a path
npx create-langgraph@latest config ./my-project
This command is useful when:
The config command automatically detects LangGraph agents defined using these patterns:
// Using createAgent
export const agent = createAgent({ model, tools });
// Using StateGraph
export const graph = new StateGraph(annotation).compile();
// Using workflow builder pattern
export const app = workflow.compile();
// Using module.exports
module.exports.agent = createAgent({ model, tools });
module.exports.graph = workflow.compile();
// Using exports shorthand
exports.myAgent = createAgent({ model, tools });
The scanner looks for:
createAgent() function callsnew StateGraph(...).compile() patternsworkflow.compile() or builder.compile() patternsImportant: Only exported agents are included in the generated configuration. Unexported agents will be listed as warnings so you can add the export keyword if needed.
The config command generates a langgraph.json file like this:
{
"node_version": "20",
"graphs": {
"agent": "./src/agent.ts:agent",
"searchAgent": "./src/search.ts:searchAgent"
},
"env": ".env"
}
The configuration includes:
.env file (if one exists)After scaffolding, your project will have this structure:
my-project/
├── src/
│ └── agent.ts # Your LangGraph agent
├── langgraph.json # LangGraph configuration
├── package.json
├── tsconfig.json
└── .env.example # Environment variables template
# Navigate to your project
cd my-project
# Install dependencies
npm install # or yarn, pnpm, bun
# Start the LangGraph development server
npx @langchain/langgraph-cli@latest dev
The development server provides:
This CLI collects anonymous usage analytics to help improve the tool. The following information is collected:
No personal information, project details, or code is ever collected.
To opt out of analytics, set the environment variable:
export LANGGRAPH_CLI_NO_ANALYTICS=1
MIT © LangChain
FAQs
Create a new LangGraph project
The npm package create-langgraph receives a total of 26,514 weekly downloads. As such, create-langgraph popularity was classified as popular.
We found that create-langgraph demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.