Week 48, updated 23 Nov 2026

Compare Automation & agent frameworks

LangChain vs Dify

Updated : the last week a score, rank or safety result on this page changed.

LangChain

59

#16 overall, #3 in Automation & agent frameworks

Caution

  • Maintenance 30%7946
  • Adoption 30%7884
  • Docs 20%230
  • Community 20%, not measured yet––

Dify

56

#21 overall, #4 in Automation & agent frameworks

Caution

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.

FactLangChainDify
Score5956
Stars149,992161,711
Last push23 Nov23 Nov
Releases, 90 days10+8
LicenceMITDify Open Source License (modified Apache-2.0)
Open sourceOpen sourceSource-available (modified Apache-2.0)
LanguagePythonPython
TypeAgent frameworkAI tool
Runs locallyyesyes
Hosted optionunknownmentioned

“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
LangChain vs Dify, data from 23 Nov 2026
 LangChainlangchain-ai/langchainDifylanggenius/dify
Score59 56
Rank#16 overall · #3 in use case#21 overall · #4 in use case
Maintenance (30%)7946
Adoption (30%)7884
Docs (20%)230
Community (20%)not measurednot measured
Safety Caution
  • 2 critical-severity known vulnerabilities in runtime dependencies (OSV)
Caution
  • 1 critical-severity known vulnerability in runtime dependencies (OSV)
LicenseMITDify Open Source License (modified Apache-2.0)
Open sourceOpen sourceSource-available (modified Apache-2.0)
LanguagePythonPython
Stars149,992161,711
Last push
TypeAgent frameworkAI tool
Runs locallyyes (README: "uv add")yes (README: "docker compose up")
Hosted optionunknownmentioned (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.