# Mastra vs Vercel AI SDK

Both are open source framework options with comparable terms, so the choice comes down to which model of the problem you prefer — compare the descriptions below rather than the licence.

| | Mastra | Vercel AI SDK |
| --- | --- | --- |
| Licence | Open source | Open source |
| Pricing | open source | open source |
| Self-hostable | Yes | Yes |
| Languages | TypeScript | TypeScript |
| Install | npm install @mastra/core | npm install ai |
| Keys required | None | None |

## Full pages

- https://newagent.build/c/mastra
- https://newagent.build/c/vercel-ai-sdk

## Machine interfaces

- `GET https://newagent.build/api/registry` — every component as JSON
- `GET https://newagent.build/api/vendors` — vendors, with the repo and releases feed to watch
- `GET https://newagent.build/api/advise?q=<plain english>` — recommended stack for a description
- `GET https://newagent.build/api/stack?<layer>=<id>&format=sh|json|md|yml|agents|env` — a stack as files
- `GET https://newagent.build/llms.txt` — the whole registry in one fetch

Any page here also returns markdown if you send `Accept: text/markdown`.