Comparison
ragflow vs mastra
Verdict
Unverified catalog guidance: ragflow: RAGFlow is an open-source RAG engine that integrates agent capabilities to enhance context management for LLMs, built in Go under the Apache-2.0 license. mastra: Mastra is a TypeScript framework for AI-powered applications and agents, offering a dual-license model with enterprise features.
Markdown twin · ragflow alternatives · mastra alternatives
GraphCanon updated Oct 29, 2026
Trust & integrity
| Signal | ragflow | mastra |
|---|---|---|
| Maintenance | Very active (0d since push) As of Sep 18, 2026 · github_public_v1 | Very active (0d since push) As of Sep 18, 2026 · github_public_v1 |
| Provenance | Not a fork · Organization account As of Sep 18, 2026 · github_public_v1 | Not a fork · Organization account As of Sep 18, 2026 · github_public_v1 |
| OSV dependency advisories | Published findings As of Sep 18, 2026 · osv@v1 | No lockfile (source not queried) As of Sep 20, 2026 · osv@v1 |
| deps.dev advisories | Not queried deps.dev@v1 | Not queried deps.dev@v1 |
| OpenSSF Scorecard | Not queried openssf-scorecard@v1 | Not queried openssf-scorecard@v1 |
Tagline
- ragflow
- Retrieval-Augmented Generation (RAG) engine with agent capabilities
- mastra
- Modern TypeScript framework for AI-powered applications and agents
Stars
- ragflow
- 91k
- mastra
- 28k
Forks
- ragflow
- 11k
- mastra
- 2.8k
Open issues
- ragflow
- 1.4k
- mastra
- 520
Language
- ragflow
- Go
- mastra
- TypeScript
Adopt for
- ragflow
- Unverified catalog guidance: RAGFlow is an open-source RAG engine that integrates agent capabilities to enhance context management for LLMs, built in Go under the Apache-2.0 license.
- mastra
- Unverified catalog guidance: Mastra is a TypeScript framework for AI-powered applications and agents, offering a dual-license model with enterprise features.
Persona
- ragflow
- -
- mastra
- -
Runtime
- ragflow
- -
- mastra
- -
License
- ragflow
- Apache-2.0
- mastra
- Mastra operates under a dual-license model, with the core framework under Apache License 2.0 and enterprise features under the Mastra Enterprise License.
Last pushed
- ragflow
- Sep 18, 2026
- mastra
- Sep 18, 2026
Categories
- ragflow
- AI Agents, Data & Retrieval
- mastra
- AI Agents, Developer Tools
Trust and health
Open issues (recorded)
- ragflow
- 1.4k
- mastra
- 520
Stars delta
- ragflow
- +4.4k (30d)
- mastra
- +920 (30d)
Open issues delta
- ragflow
- -553 (30d)
- mastra
- +51 (30d)
OSV dependency advisories
- ragflow
- Published findings
- mastra
- No lockfile (source not queried)
Full report
- ragflow
- Trust report
- mastra
- Trust report
Stored relationship proposal (unverified)
Choose ragflow if…
- ragflow is primarily Go; mastra is TypeScript.
- License: ragflow is Apache-2.0, mastra is Other.
- Tags unique to ragflow: agent-harness, agentic-ai, agentic-retrieval, agentic-search.
- Also covers Data & Retrieval.
- ragflow has Docker configuration in its repository.
- Unverified catalog guidance: When you need an open-source RAG engine that can integrate with external LLM and embedding services to enhance context management.
When NOT to use ragflow
- Unverified catalog guidance: If your project does not require integration with external LLM and embedding services, as RAGFlow relies on these services.
- Unverified catalog guidance: If you are looking for a lightweight solution, as RAGFlow's Docker image is approximately 2 GB in size.
- Unverified catalog guidance: When you prefer tools that do not require building a Docker image, as RAGFlow's setup involves creating a Docker image.
Choose mastra if…
- mastra is primarily TypeScript; ragflow is Go.
- License: mastra is Other, ragflow is Apache-2.0.
- Pricing: The core framework is free and open-source under Apache License 2.0, but enterprise features require a valid enterprise license for production use..
- Requirements: Requires TypeScript and Node.js for development..
- Tags unique to mastra: agents, ai, chatbots, evals.
- Also covers Developer Tools.
- Unverified catalog guidance: When you need a TypeScript framework that supports AI functionalities such as chatbots, evaluations, and text-to-speech.
When NOT to use mastra
- Unverified catalog guidance: If your project strictly requires an entirely open-source solution without any proprietary enterprise components.
- Unverified catalog guidance: When you prefer frameworks that do not differentiate between open-source and enterprise features, as Mastra has distinct enterprise features that require a separate license.
Explore
Sources
Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.
- GitHub stars (infiniflow/ragflow) · observed Oct 29, 2026
- GitHub forks (infiniflow/ragflow) · observed Oct 29, 2026
- Last push (infiniflow/ragflow) · observed Sep 18, 2026
- License file (Apache-2.0) · observed Oct 29, 2026
- Decision facts (enrichment) · observed Sep 18, 2026
- Trust scan (lockfile / OSV) · observed Sep 18, 2026
- GitHub stars (mastra-ai/mastra) · observed Sep 20, 2026
- GitHub forks (mastra-ai/mastra) · observed Sep 20, 2026
- Last push (mastra-ai/mastra) · observed Sep 18, 2026
- License file (Other) · observed Sep 20, 2026
- Decision facts (enrichment) · observed Sep 18, 2026
- Trust scan (lockfile / OSV) · observed Sep 20, 2026
GitHub stars on cards: ragflow 91k · mastra 28k (synced Oct 29, 2026).
Common questions
- What is the difference between ragflow and mastra?
- ragflow: Retrieval-Augmented Generation (RAG) engine with agent capabilities. mastra: Modern TypeScript framework for AI-powered applications and agents. See the comparison table for recorded GitHub metadata and shared categories.
- When should I choose ragflow over mastra?
- For ragflow, compare these recorded points with mastra: ragflow is primarily Go; mastra is TypeScript; License: ragflow is Apache-2.0, mastra is Other; Tags unique to ragflow: agent-harness, agentic-ai, agentic-retrieval, agentic-search; Also covers Data & Retrieval; ragflow has Docker configuration in its repository; Unverified catalog guidance: When you need an open-source RAG engine that can integrate with external LLM and embedding services to enhance context management.
- When should I choose mastra over ragflow?
- For mastra, compare these recorded points with ragflow: mastra is primarily TypeScript; ragflow is Go; License: mastra is Other, ragflow is Apache-2.0; Pricing: The core framework is free and open-source under Apache License 2.0, but enterprise features require a valid enterprise license for production use.; Requirements: Requires TypeScript and Node.js for development.; Tags unique to mastra: agents, ai, chatbots, evals; Also covers Developer Tools; Unverified catalog guidance: When you need a TypeScript framework that supports AI functionalities such as chatbots, evaluations, and text-to-speech.
- When should I avoid ragflow?
- Unverified catalog guidance: If your project does not require integration with external LLM and embedding services, as RAGFlow relies on these services. Unverified catalog guidance: If you are looking for a lightweight solution, as RAGFlow's Docker image is approximately 2 GB in size. Unverified catalog guidance: When you prefer tools that do not require building a Docker image, as RAGFlow's setup involves creating a Docker image.
- When should I avoid mastra?
- Unverified catalog guidance: If your project strictly requires an entirely open-source solution without any proprietary enterprise components. Unverified catalog guidance: When you prefer frameworks that do not differentiate between open-source and enterprise features, as Mastra has distinct enterprise features that require a separate license.
- Is ragflow or mastra more popular on GitHub?
- ragflow has more recorded GitHub stars (90,923 vs 28,149). Stars measure visibility, not whether either tool fits your constraints.
- Which licenses are recorded for ragflow and mastra?
- ragflow: Apache-2.0. mastra: Other. Check each repository's current license and terms before use. Public GitHub hosting alone does not establish open-source licensing.
- Where can I find alternatives to ragflow or mastra?
- GraphCanon lists candidates at ragflow alternatives and mastra alternatives (ragflow markdown twin, mastra markdown twin). The discovery order uses stored relationship proposals and shared categories; it is not a verified replacement ranking.
- Is there a machine-readable version of this comparison?
- Yes. The markdown twin at this comparison mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.
- Which is better maintained, ragflow or mastra?
- ragflow: Very active. mastra: Very active. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.
- Where are the full trust reports for ragflow and mastra?
- GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: ragflow trust report; mastra trust report.