LibreAI / Agentes de IA / langchainjs
// agents · langchain-ai/langchainjs

langchainjs

langchainjs é um projeto de agentes de IA de código aberto de langchain-ai (langchain-ai/langchainjs no GitHub). Tem 18.248 estrelas no GitHub e 3.422 forks, é publicado sob a licença MIT e foi atualizado pela última vez no GitHub em 8 de outubro de 2026.

The JavaScript/TypeScript version of LangChain - the agent engineering platform

★ 18,2 mil estrelas⑂ 3,4 mil forksMITatualizado out 2026
▦ visual: o README deste projeto não inclui nenhuma captura incorporável,
então aqui vai um marcador. O guia abaixo está completo mesmo assim.
// dados do projeto

Dados do projeto

Estrelas no GitHub
18.248
Forks
3.422
Licença
MIT
Última atualização no GitHub
8 de outubro de 2026
Categoria
Agentes de IA
Tipo de ficha
Guia de instalação completo
Site oficial
Official site
// como funciona

Como funciona

  1. Plan your JS/TS LLM app

    Decide the model, tools and data your agent or chain needs.

  2. Get the package

    Install langchain from npm with npm, pnpm or yarn - no clone needed for normal use.

  3. Add a provider package

    Install the integration package for your model provider and set its API key.

  4. Build your first chain or agent

    Compose a prompt, model and tool, run it, and iterate.

// recursos

Por que as pessoas gostam tanto

Standard model interface

Call different LLM providers through one consistent interface and swap models with minimal code changes.

Agent building blocks

Tools, prompts, memory and retrievers composed into chains and agents.

Ecosystem integrations

First-party packages connect LangChain.js to major model providers, vector stores and tools.

Runs anywhere JS runs

Supported environments include Node.js and other JavaScript runtimes per the README.

LangGraph and LangSmith path

Part of the LangChain ecosystem, so you can graduate to LangGraph agents and LangSmith observability.

TypeScript-first

Ships full TypeScript types for editor-friendly development.

Advertisement
// execute você mesmo

Execute você mesmo

  1. Clone the repository

    Get the source code from GitHub and enter the project directory.

    git clone https://github.com/langchain-ai/langchainjs.git
    cd langchainjs
  2. Install LangChain.js

    Install the core package with your package manager of choice.

    npm install -S langchain
  3. Import and build

    Import from the package in your TypeScript app and follow the docs' first-agent examples.

    import { ChatOpenAI } from "@langchain/openai"; // example provider package - see README resources
// casos de uso

O que você pode criar

Advertisement
// perguntas frequentes

Perguntas frequentes

Who maintains this project?

It is maintained by LangChain AI (langchain-ai) and contributors on GitHub.

Is it free to use?

Yes - LangChain.js is MIT licensed and free. Optional hosted services in the ecosystem (such as LangSmith) have their own pricing.

Does it need a paid API key?

The framework is free, but the models you call usually need your own provider API keys; local model integrations are also available.

How does it compare to alternatives?

Compared with the Python LangChain, this is the same platform philosophy for JavaScript/TypeScript stacks; compared with writing raw provider SDK calls, it adds portable abstractions at the cost of another layer to learn.

How do I get started?

Run npm install -S langchain, add your provider's integration package, and follow the documentation linked in the README.

// continue explorando

Ferramentas semelhantes

Agentes de IA

voltagent

AI Agent Engineering Platform built on an Open Source TypeScript AI Agent Framework

★ 10,7 mil estrelasMIT
Ver o guia →
Agentes de IA

Langchain

The agent engineering platform

★ 147,4 mil estrelasMIT
Ver o guia →
Agentes de IA

deepagents

The batteries-included agent harness from the LangChain team.

★ 30,0 mil estrelasMIT
Ver o guia →
Agentes de IA

yao-meta-skill

YAO: rigorous engineering, evaluation, and governance for reusable agent skills.

★ 2,7 mil estrelasMIT
Ver o guia →
Agentes de IA

KaibanJS

JavaScript framework for multi-agent systems with a Kanban-inspired design.

★ 1,5 mil estrelasMIT
Ver o guia →
Agentes de IA

astron-agent

iFLYTEK's enterprise agentic workflow platform — SuperAgents with workflows, RPA and one-click deploy.

★ 8,9 mil estrelasApache-2.0
Ver o guia →
// alternativas

Alternativas em Agentes de IA

Os outros projetos de Agentes de IA com mais estrelas no catálogo do LibreAI — a lista realista de alternativas se langchainjs não for o ideal para você.

// mais em agents

Mais em Agentes de IA

Projetos de Agentes de IA próximos no catálogo, os mais próximos em estrelas de langchainjs: continue explorando dos dois lados dele.

Baixe o langchainjs

Grátis e aberto: pegue o código-fonte, dê uma estrela no repositório e comece a criar.