Compare Automation & agent frameworks
LangChain vs Dify
Updated : the last week a score, rank or safety result on this page changed.
- Maintenance 30%7946
- Adoption 30%7884
- Docs 20%230
- Community 20%, not measured yet––
LangChain scores 3 points higher. LangChain leads on maintenance; Dify leads on adoption and docs.
What this does not tell you
Scores are percentiles of public GitHub signals. Nobody here tested these tools hands-on, so the higher score is not a verdict on which suits your project. Yellow marks the higher value.
Which one fits you
From measured data and licences, not from testing.
Pick LangChain if
- Recent activity and releases matter most to you (maintenance 79).
- You need a permissive open-source licence (MIT).
Pick Dify if
- You want the more widely adopted option (adoption 84).
- You want the higher README docs score (docs 30 vs 2).
Safety side by side
Automated scan, 23 Nov 2026. Not a manual audit.
- CautionLangChain2 critical-severity known vulnerabilities in runtime dependencies (OSV)
- CautionDify1 critical-severity known vulnerability in runtime dependencies (OSV)
Why different labels?
A label partly reflects how much of each tool is visible and scannable, not only how risky it is. A tool without a lockfile cannot get a dependency check.
- LangChain: 2 critical-severity known vulnerabilities in runtime dependencies (OSV)
- Dify: 1 critical-severity known vulnerability in runtime dependencies (OSV)
Repo facts
Yellow = the higher value, where higher is better.
| Fact | LangChain | Dify |
|---|---|---|
| Score | 59 | 56 |
| Stars | 149,992 | 161,711 |
| Last push | 23 Nov | 23 Nov |
| Releases, 90 days | 10+ | 8 |
| Licence | MIT | Dify Open Source License (modified Apache-2.0) |
| Open source | Open source | Source-available (modified Apache-2.0) |
| Language | Python | Python |
| Type | Agent framework | AI tool |
| Runs locally | yes | yes |
| Hosted option | unknown | mentioned |
“Runs locally” and “Hosted option” are read from each README automatically (or from the official docs where noted); “unknown” means no evidence was found, not that it is absent.
Questions about LangChain vs Dify
Answers use this week's StackGrade data.
LangChain or Dify: which scores higher on StackGrade?
LangChain scores 3 points higher in Week 48: LangChain 59, Dify 56 out of 100. The score combines maintenance, adoption and docs (percentiles of public GitHub signals): LangChain 79, 78 and 2; Dify 46, 84 and 30. Community (20% weight) is not measured yet. It is not a hands-on test, so a higher score does not say which tool suits your project.
Is LangChain or Dify safer to use?
Safety labels from the automated scan of 23 Nov 2026: LangChain: Caution, 2 critical-severity known vulnerabilities in runtime dependencies (OSV); Dify: Caution, 1 critical-severity known vulnerability in runtime dependencies (OSV). It is an automated scan, not a manual audit.
Which is more widely used, LangChain or Dify?
By GitHub stars: Dify 161,711, LangChain 149,992. Adoption score (percentile among all 52 tracked tools): LangChain 78, Dify 84. Stars are one public signal and do not measure real-world use.
Which licences do LangChain and Dify use?
LangChain: MIT; Dify: Dify Open Source License (modified Apache-2.0). Read each licence text before commercial use.
Should I pick LangChain or Dify?
Pick LangChain if recent activity and releases matter most to you (maintenance 79); you need a permissive open-source licence (MIT). Pick Dify if you want the more widely adopted option (adoption 84); you want the higher README docs score (docs 30 vs 2). This comes from measured public data and licences only, not from hands-on testing.
Full comparison table, every criterion
| LangChainlangchain-ai/langchain | Difylanggenius/dify | |
|---|---|---|
| Score | 59 | 56 |
| Rank | #16 overall · #3 in use case | #21 overall · #4 in use case |
| Maintenance (30%) | 79 | 46 |
| Adoption (30%) | 78 | 84 |
| Docs (20%) | 2 | 30 |
| Community (20%) | not measured | not measured |
| Safety | Caution
| Caution
|
| License | MIT | Dify Open Source License (modified Apache-2.0) |
| Open source | Open source | Source-available (modified Apache-2.0) |
| Language | Python | Python |
| Stars | 149,992 | 161,711 |
| Last push | ||
| Type | Agent framework | AI tool |
| Runs locally | yes (README: "uv add") | yes (README: "docker compose up") |
| Hosted option | unknown | mentioned (README: "our Cloud") |
Get the board every Monday
One email a week: the new top 10, the biggest score changes and every safety label that changed.
Free. Double opt-in: you confirm by email first, unsubscribe in one click.