DSPy

agent-frameworkStable

DSPy: The framework for programming—not prompting—language models

Stars

36,214

Δ stars 7d

+225

Δ stars 30d

Forks

3,110

Contributors

437

npm DL / wk

PyPI DL / wk

219,157

Language

Python

Last push

2026-07-16

About DSPy

DSPy is the framework for _programming—rather than prompting—language models_. It allows you to iterate fast on **building modular AI systems** and offers algorithms for **optimizing their prompts and weights**, whether you're building simple classifiers, sophisticated RAG pipelines, or Agent loops. DSPy stands for Declarative Self-improving Python. Instead of brittle prompts, you write compositional _Python code_ and use DSPy to **teach your LM to deliver high-quality outputs**. Learn more via our official documentation site or meet the…

Read the full README on GitHub →

Install

pip install dspy-ai

DSPy growth signals this week

Growth score: 52/100 week of 2026-07-20

Acceleration (40%)79
Relative velocity (30%)12
Downloads (20%)37
Activity (10%)90

Signal history

WeekScoreΔ★Signal
2026-07-2052+225Stable
2026-07-1332+225Stable
2026-07-0648+243Stable
2026-06-2937+252Stable
2026-06-2234+224Stable
2026-06-1521+166Stable
2026-06-0816+91Stable

DSPy alternatives

Projects in the same category, closest in size — picked by data, not opinion.

PostHog MCP ServerStable36,739
LangGraphStable37,592
ComposioStable29,285
smolagentsStable28,432

See all agent-framework projects ranked by growth →

Frequently asked questions

Is DSPy still maintained?
Yes — actively maintained. The last push was on 2026-07-16, with 437 contributors.
Is DSPy growing?
It is stable this week, with a growth score of 52/100. See the weekly history above.
What are the best DSPy alternatives?
Closest by category and size in our data: PostHog MCP Server, LangGraph, Composio — full list with live signals above.

Embed this badge

Show your project's live signal in your README — it updates weekly with the data.

[![DSPy on What's Trending in AI](https://whatstrendinginai.com/badges/stanfordnlp-dspy-agent-framework.svg)](https://whatstrendinginai.com/projects/stanfordnlp-dspy-agent-framework/)

DSPy badge

Tracked since 2026-06-10 · data as of 2026-07-19 · 607 open issues · 109 releases