DSPy vs LangChain
Side-by-side comparison with live GitHub signals. Last updated July 5, 2026.
| Metric | DSPy | LangChain |
|---|---|---|
| GitHub Stars | 35.8K | 141.0K |
| Contributors | 401 | 469 |
| Last Commit | Jul 5, 2026 | Jul 5, 2026 |
| Open Issues | 561 | 416 |
| License | open-source | open-source |
| Pricing | open-source | open-source |
| Free Tier | Yes | Yes |
| Category | frameworks | frameworks |
| Trending | No | No |
Shared Tags
Only in DSPy
Only in LangChain
About DSPy
DSPy replaces prompt engineering with programming. Instead of writing prompts, you define modules with input/output signatures and DSPy automatically optimizes the prompts and weights for your pipeline. Supports chain-of-thought, retrieval-augmented generation, and multi-hop reasoning patterns. From Stanford NLP.
View full listingAbout LangChain
LangChain is the most widely adopted framework for building LLM-powered applications. It provides modular abstractions for chains, agents, memory, retrievers, and tools, enabling developers to compose complex pipelines from reusable components. Available in both Python and JavaScript/TypeScript, LangChain integrates with every major LLM provider, vector store, and data source. Its ecosystem includes LangSmith for observability and LangGraph for stateful, graph-based agent workflows.
View full listing