mastra-ai/mastra
GitHubMastra is the modern TypeScript framework for AI-powered applications and agents.
- agents
- ai
- chatbots
- evals
- javascript
- llm
- mcp
- nextjs
- nodejs
- reactjs
- tts
- typescript
- workflows
- Stars:
- 29.3k
- Language:
- TypeScript
- Default branch:
- main
- Last scored:
At a glance
- Rank
- #35 of 401
- Top 9% · #5 of 82 TypeScript repos
- Checks passed
- 11 of 17
- Full list below
- Best set up for
- Cursor
- Score 91.6
- Needs most work for
- Aider
- Biggest fix: .aider.conf.yml (+14.1 pts)
What it has
What it's missing
What to fix first
Showing fixes for Claude Code
- 1Manageable sizeIf possible, split into smaller modules or carve out a focused entry path. Document where to start in AGENTS.md.+5.3 pts
- 2Reproducible dev envAdd a Makefile or devcontainer or Dockerfile so the agent can set up the project in one command.+4.7 pts
- 3Test suiteAdd a tests/ (or test/, __tests__/, spec/) directory with runnable tests. Document how to run them in AGENTS.md.+3.9 pts
Score for each AI agent
Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →
Does mastra-ai/mastra have agent instructions?
An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.
- AGENTS.md / CLAUDE.md
AGENTS.md(new tab) · 1,759 characters- Agent-specific files
packages/playground/.cursor/rules(new tab) (2 .mdc files),.agents/skills(new tab) (3 skills)No GEMINI.md, .openhands/setup.sh or .aider.conf.yml- Repos that have one
- 62 of 82 TypeScript repos · 221 of 401 repos on the leaderboard · See examples →
All 17 checks · 11 passed
How mastra-ai/mastra compares
- vs leaderboard average
- 17.6 pts above
- Average 66.8
- vs TypeScript average
- 13.2 pts above
- Average 71.2
- Stars among TypeScript repos
- #59 of 82
Passes checks most repos miss
- Skills (.agents/skills) · only 17% of repos pass it
- Cursor rules (.cursor/rules) · only 4% of repos pass it
- Pre-commit / git hooks · only 29% of repos pass it
One fix for the most agents: Manageable size would raise the score for all 9 agents, by up to 5.7 points.
Similar repos
Same language and host as this repo, closest in overall score.
- novuhq/novu84.5TypeScript · 40.3k ★
- getnao/nao84.4TypeScript · 2k ★
- TypeScript · 135.1k ★
- TypeScript · 92.6k ★
- n8n-io/n8n83.6TypeScript · 209.5k ★
- grafana/grafana82.6TypeScript · 77.7k ★
Same topics, any language
Repos tagged with the same GitHub topics, most shared first.
- stripe/ai40.2TypeScript · LLM, mcp, workflows
- Python · AI agents, LLM, mcp
- dagger/dagger59.3Go · AI agents, workflows
- aaif-goose/goose79.4Rust · AI agents, mcp
- QwenLM/qwen-code82.6TypeScript · LLM, mcp
- Svelte · LLM, mcp
Add a badge to your README
Paste this at the top of the README. It shows the score, and links back to this page.
[](https://agentfriendlycode.com/repo/github/mastra-ai/mastra)Check the score on every pull request
A GitHub Action posts one comment per pull request with how the score changed and why.