Compare

mastra vs n8n

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

Read it as markdown

What they share and what sets them apart

mastra-ai

mastra

Mastra is the modern TypeScript framework for AI-powered applications and agents.

TypeScript29.3kRead on November 2, 2026, at commit 7daa2e1What is mastra built with?
n8n-io

n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

TypeScript209.4kRead on November 3, 2026, at commit 5339f0cWhat is n8n built with?

In common

Only in mastra

Only in n8n

Side by side

SizeLines written by people and agents, without generated ones; code files, without tests.
mastra3,812,739 lines written9,739 code files
n8n5,238,068 lines written14,220 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
mastra6% of its commits signed by AIWith Claude Code, Devin, CodeRabbit, Cursor, GitHub Copilot, Codex, Factory, and Amp
n8n14.4% of its commits signed by AIWith Claude Code, Cursor, GitHub Copilot, Codex, and CodeRabbit
ActivityFrom GitHub and its history, on the day SeeRepo read it.
mastraLast push November 2, 202620,978 commits29,277 stars
n8nLast push November 3, 202626,041 commits209,435 stars
TestsThe files that test the code, and the share of code files a test imports.
mastra6,660 test files44% of its code files have a test that imports them
n8n10,697 test files53.6% of its code files have a test that imports them

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

Which has more GitHub stars, mastra or n8n?
n8n, with 209,435 stars; mastra has 29,277.

The proof: n8n-io/n8n on GitHub

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

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

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

What is your repo built with?

Paste your public repo and see it drawn.

Free, no account.

Or look inside SeeRepo's own →