← all repositories
davidmigloz/langchain_dart

Dart's LLM tooling drought ends with this LangChain port

It unofficially ports LangChain to Dart to address the scarcity of LLM libraries in the Flutter ecosystem.

langchain_dart
Not currently ranked — collecting fresh signals.
star history

What it does

LangChain.dart is an unofficial Dart and Flutter port of the Python LangChain framework. It supplies composable building blocks—model I/O, retrieval pipelines for RAG, and agent tool-calling—that you wire together with LangChain Expression Language to build chatbots, summarizers, and similar LLM-driven features. The codebase is split into a core abstraction layer, high-level chains, community integrations, and discrete API client packages so you only pull in what you actually need.

The interesting bit

Most LLM infrastructure is built for Python and JavaScript, leaving the Dart ecosystem as an afterthought. Rather than just wrapping a single SDK, the project replicates LangChain’s full architecture—LCEL composition, vector-store retrieval, and multi-provider agents—while also maintaining its own standalone HTTP client packages for direct API access.

Key highlights

  • Modular package design: langchain_core, langchain, langchain_community, and provider-specific integration packages.
  • Broad provider support including OpenAI, Google, Anthropic, Mistral, Ollama, and Firebase VertexAI.
  • Vector store integrations for RAG: Chroma, Pinecone, and Supabase Vector.
  • Standalone API client packages (e.g., googleai_dart, ollama_dart) usable without the framework.
  • Pipelines composed via LangChain Expression Language (LCEL).

Caveats

  • It is explicitly an unofficial port of the Python LangChain framework.

Verdict

Dart and Flutter developers who need native LLM features—RAG, agents, or multi-provider chat—should evaluate this. Those already working in Python or JavaScript enjoy an exponentially larger pool of existing libraries.

Frequently asked

What is davidmigloz/langchain_dart?
It unofficially ports LangChain to Dart to address the scarcity of LLM libraries in the Flutter ecosystem.
Is langchain_dart open source?
Yes — davidmigloz/langchain_dart is open source, released under the MIT license.
What language is langchain_dart written in?
davidmigloz/langchain_dart is primarily written in Dart.
How popular is langchain_dart?
davidmigloz/langchain_dart has 685 stars on GitHub.
Where can I find langchain_dart?
davidmigloz/langchain_dart is on GitHub at https://github.com/davidmigloz/langchain_dart.

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