Source: https://seerepo.com/compare/mastra-ai/mastra/vs/n8n-io/n8n
Markdown source: https://seerepo.com/compare/mastra-ai/mastra/vs/n8n-io/n8n.md
Description: mastra and n8n share 6 technologies: Vite, Redis, MCP, OpenAI, Anthropic, and PostHog. Both are written in TypeScript.

# mastra vs n8n

mastra and n8n share 6 technologies: Vite, Redis, MCP, OpenAI, Anthropic, and PostHog. Both are written in TypeScript.

- [mastra-ai/mastra](https://seerepo.com/r/mastra-ai/mastra): Mastra is the modern TypeScript framework for AI-powered applications and agents.
- [n8n-io/n8n](https://seerepo.com/r/n8n-io/n8n): Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

## What they share and what sets them apart

- In common: Vite, Redis, MCP, OpenAI, Anthropic, PostHog
- Only in mastra: React, GitHub
- Only in n8n: Vue, Express, SQLite, Postgres, MongoDB, Supabase, MySQL, Sentry, Kafka

## Side by side

| | mastra | n8n |
|---|---|---|
| Size | 3,812,739 lines written, 9,739 code files | 5,238,068 lines written, 14,220 code files |
| Who writes it | 6% of its commits signed by AI. With Claude Code, Devin, CodeRabbit, Cursor, GitHub Copilot, Codex, Factory, and Amp | 14.4% of its commits signed by AI. With Claude Code, Cursor, GitHub Copilot, Codex, and CodeRabbit |
| Activity | Last push November 2, 2026, 20,978 commits, 29,277 stars | Last push November 3, 2026, 26,041 commits, 209,435 stars |
| Tests | 6,660 test files. 44% of its code files have a test that imports them | 10,697 test files. 53.6% 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, mastra or n8n?

n8n, with 5,238,068 lines written in 14,220 code files; mastra has 3,812,739 in 9,739.

The proof: [n8n-io/n8n's code at commit 5339f0c](https://github.com/n8n-io/n8n/tree/5339f0c988dd2fc89040cc5150bd3b991a4c6198)

### Which has more GitHub stars, mastra or n8n?

n8n, with 209,435 stars; mastra has 29,277.

The proof: [n8n-io/n8n on GitHub](https://github.com/n8n-io/n8n)

### Which has more tests, mastra or n8n?

n8n, with 10,697 test files; mastra has 6,660.

The proof: [n8n-io/n8n's code at commit 5339f0c](https://github.com/n8n-io/n8n/tree/5339f0c988dd2fc89040cc5150bd3b991a4c6198)

### Which was updated more recently, mastra or n8n?

n8n: its last push was on November 3, 2026, and mastra's on November 2, 2026.

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

### Which has more commits signed by AI, mastra or n8n?

n8n: an AI signed 14.4% of its commits, with Claude Code, Cursor, GitHub Copilot, Codex, and CodeRabbit; in mastra, 6%.

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

## Sources

- mastra-ai/mastra: Read on November 2, 2026, at commit 7daa2e1 (https://github.com/mastra-ai/mastra/tree/7daa2e1d35bfa7e3f072643b0c264dca1d5530c1)
- n8n-io/n8n: Read on November 3, 2026, at commit 5339f0c (https://github.com/n8n-io/n8n/tree/5339f0c988dd2fc89040cc5150bd3b991a4c6198)

## 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.
