DSPy is free, with no paid plan attached. Mastra is free, with no paid plan attached. Both are listed under Agent Frameworks (Developers), so this is a like-for-like comparison. Neither is ranked above the other — Flocci carries no sponsored placement.
DSPy vs Mastra — straight answers
DSPy vs Mastra: what is the difference?
DSPy is free, with no paid plan attached and is listed for open-source (MIT) framework from Stanford NLP, 37k+ GitHub stars. Mastra is free, with no paid plan attached and is listed for open-source TypeScript framework (Apache 2.0) for agents, workflows and RAG. Both sit in Agent Frameworks (Developers).
Is DSPy or Mastra cheaper to start with?
Neither — DSPy and Mastra are both free, so the choice comes down to capability rather than cost. Both entries list what they uniquely do above.
Which should I choose, DSPy or Mastra?
Choose DSPy if you need open-source (MIT) framework from Stanford NLP, 37k+ GitHub stars; choose Mastra if you need open-source TypeScript framework (Apache 2.0) for agents, workflows and RAG. Flocci AI Tools does not rank one above the other — it shows both feature sets side by side and lets the requirement decide.
DSPy compared with Mastra: pricing tier, category, listed capabilities and links.