Source: https://seerepo.com/compare/anomalyco/opencode/vs/mermaid-js/mermaid
Markdown source: https://seerepo.com/compare/anomalyco/opencode/vs/mermaid-js/mermaid.md
Description: opencode and mermaid share 3 technologies: dompurify, marked, and katex. Both are written in TypeScript.

# opencode vs mermaid

opencode and mermaid share 3 technologies: dompurify, marked, and katex. Both are written in TypeScript.

- [anomalyco/opencode](https://seerepo.com/r/anomalyco/opencode): The open source coding agent.
- [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: dompurify, marked, katex
- Only in opencode: Solid, @solidjs/router, Vite, Sentry, MCP, Anthropic, Electron, GitHub, Hono, @clack/prompts, Tailwind CSS, @tailwindcss/vite, @agentclientprotocol/sdk, Zod, Drizzle, jose, htmlparser2, gray-matter, @standard-schema/spec, electron-log, micromark, micromark-extension-gfm, pele, yaml
- Only in mermaid: js-yaml, markdown-table, sharp, stylis, roughjs, D3, dagre-d3-es, cytoscape, cytoscape-cose-bilkent, cytoscape-fcose, elkjs, @braintree/sanitize-url, Ajv

## Side by side

| | opencode | mermaid |
|---|---|---|
| Size | 1,028,811 lines written, 3,839 code files | 232,641 lines written, 670 code files |
| Who writes it | 0.3% of its commits signed by AI. With Claude Code, GitHub Copilot, Cursor, and Jules | 5.1% of its commits signed by AI. With Claude Code, Codex, Cursor, GitHub Copilot, and CodeRabbit |
| Activity | Last push November 4, 2026, 21,835 commits, 224,454 stars | Last push November 4, 2026, 11,988 commits, 91,011 stars |
| Tests | 1,608 test files. 35.1% 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, opencode or mermaid?

opencode, with 1,028,811 lines written; mermaid has 232,641.

The proof: [anomalyco/opencode's code at commit ffe6fed](https://github.com/anomalyco/opencode/tree/ffe6fed58334d921f64a86a8d86128bff5a4b566)

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

opencode, with 224,454 stars; mermaid has 91,011.

The proof: [anomalyco/opencode on GitHub](https://github.com/anomalyco/opencode)

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

opencode, with 1,608 test files; mermaid has 505.

The proof: [anomalyco/opencode's code at commit ffe6fed](https://github.com/anomalyco/opencode/tree/ffe6fed58334d921f64a86a8d86128bff5a4b566)

### Which was updated more recently, opencode 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, opencode or mermaid?

mermaid: an AI signed 5.1% of its commits, with Claude Code, Codex, Cursor, GitHub Copilot, and CodeRabbit; in opencode, 0.3%.

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

## Sources

- anomalyco/opencode: Read on November 4, 2026, at commit ffe6fed (https://github.com/anomalyco/opencode/tree/ffe6fed58334d921f64a86a8d86128bff5a4b566)
- 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.
