Source: https://seerepo.com/compare/langgenius/dify/vs/mermaid-js/mermaid
Markdown source: https://seerepo.com/compare/langgenius/dify/vs/mermaid-js/mermaid.md
Description: dify and mermaid share 6 technologies: js-yaml, Ajv, sharp, elkjs, dompurify, and katex. dify is written in Python and mermaid in TypeScript.

# dify vs mermaid

dify and mermaid share 6 technologies: js-yaml, Ajv, sharp, elkjs, dompurify, and katex. dify is written in Python and mermaid in TypeScript.

- [langgenius/dify](https://seerepo.com/r/langgenius/dify): Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
- [mermaid-js/mermaid](https://seerepo.com/r/mermaid-js/mermaid): Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown

## What they share and what sets them apart

- In common: js-yaml, Ajv, sharp, elkjs, dompurify, katex
- Only in dify: net/http, Flask, psycopg2-binary, Celery, Redis, Postgres, SQLite, MySQL, Resend, Sentry, werkzeug, Hono, React, Vite, Next.js, pyjwt, langsmith, markdown-it-py, bleach, Pydantic, boto3, Zod, @hono/node-server, Tailwind CSS, class-variance-authority, cn, Base UI, @xmldom/xmldom, yaml, next-themes, lexical, react-sortablejs, @floating-ui/react, echarts, react-textarea-autosize, @tanstack/react-virtual, @monaco-editor/react, @pierre/highlights, embla-carousel-autoplay, embla-carousel-react, motion, pele, @heroicons/react, streamdown, unist-util-visit, html-to-image, mediabunny, qrcode.react, remark-directive
- Only in mermaid: markdown-table, stylis, roughjs, D3, dagre-d3-es, cytoscape, cytoscape-cose-bilkent, cytoscape-fcose, @braintree/sanitize-url, marked

## Side by side

| | dify | mermaid |
|---|---|---|
| Size | 2,369,007 lines written, 6,557 code files | 232,641 lines written, 670 code files |
| Who writes it | 5.1% of its commits signed by AI. With GitHub Copilot, Claude Code, Gemini CLI, Codex, Jules, Devin, Cursor, and Warp | 5.1% of its commits signed by AI. With Claude Code, Codex, Cursor, GitHub Copilot, and CodeRabbit |
| Activity | Last push November 4, 2026, 14,820 commits, 160,382 stars | Last push November 4, 2026, 11,988 commits, 91,011 stars |
| Tests | 4,748 test files. 67.4% of its code files have a test that imports them | 505 test files. 40.1% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, dify or mermaid?

dify, with 2,369,007 lines written; mermaid has 232,641.

The proof: [langgenius/dify's code at commit 1ac9aa0](https://github.com/langgenius/dify/tree/1ac9aa0d3c93733667d2095f3de2fa4cae0a3e1d)

### Which has more GitHub stars, dify or mermaid?

dify, with 160,382 stars; mermaid has 91,011.

The proof: [langgenius/dify on GitHub](https://github.com/langgenius/dify)

### Which has more tests, dify or mermaid?

dify, with 4,748 test files; mermaid has 505.

The proof: [langgenius/dify's code at commit 1ac9aa0](https://github.com/langgenius/dify/tree/1ac9aa0d3c93733667d2095f3de2fa4cae0a3e1d)

### Which was updated more recently, dify or mermaid?

Both got their last push on November 4, 2026.

The proof: [mermaid-js/mermaid's commits on GitHub](https://github.com/mermaid-js/mermaid/commits)

### Which has more commits signed by AI, dify or mermaid?

In both, an AI signed 5.1% of their commits.

The proof: [the commits each tool signed in langgenius/dify](https://seerepo.com/r/langgenius/dify/ai)

## Sources

- langgenius/dify: Read on November 4, 2026, at commit 1ac9aa0 (https://github.com/langgenius/dify/tree/1ac9aa0d3c93733667d2095f3de2fa4cae0a3e1d)
- mermaid-js/mermaid: Read on November 4, 2026, at commit 63333fd (https://github.com/mermaid-js/mermaid/tree/63333fd8db0540377d84795c7a43c59ded353b18)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
