← all repositories
langchain-ai/langchainjs

Plumbing for LLM apps that runs everywhere JavaScript does

Stop rewriting LLM glue code every time you swap a model provider or deployment target.

18k stars TypeScript AgentsLLMOps · Eval
langchainjs
Not currently ranked — collecting fresh signals.
star history

What it does

LangChain.js is a TypeScript framework that wires LLMs, vector stores, embeddings, and third-party tools behind a standard interface. It targets Node.js, Cloudflare Workers, Vercel/Next.js, Supabase Edge Functions, Deno, Bun, and the browser, letting the same abstraction layer run on servers, edge functions, or client-side. The project also points to higher-level siblings like Deep Agents and LangGraph.js for orchestration, plus LangSmith for observability.

The interesting bit

The README explicitly pitches model interoperability as its core value: swap models in and out as the “industry frontier evolves” without rewriting your app. That is essentially a bet on abstraction over provider loyalty, backed by a component library that spans both server and edge runtimes.

Key highlights

  • Runs on Node.js, Cloudflare Workers, Vercel/Next.js, Supabase Edge Functions, Deno, Bun, and the browser
  • Modular, component-based architecture for rapid prototyping
  • Integrates with LangSmith for monitoring, evaluation, and debugging
  • Higher-level packages (Deep Agents, LangGraph.js) available for planning, subagents, and complex workflows
  • Broad integration library covering model providers, vector stores, retrievers, and toolkits

Verdict

Worth a look if you are building multi-step LLM applications and expect to switch models or deployment targets. If you are making a single fetch call to one API, this is kindly overkill.

Frequently asked

What is langchain-ai/langchainjs?
Stop rewriting LLM glue code every time you swap a model provider or deployment target.
Is langchainjs open source?
Yes — langchain-ai/langchainjs is open source, released under the MIT license.
What language is langchainjs written in?
langchain-ai/langchainjs is primarily written in TypeScript.
How popular is langchainjs?
langchain-ai/langchainjs has 18k stars on GitHub.
Where can I find langchainjs?
langchain-ai/langchainjs is on GitHub at https://github.com/langchain-ai/langchainjs.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.