DSPy

agent-frameworkNo score yet

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

Stars

34,962

Δ stars 7d

Δ stars 30d

Forks

2,975

Contributors

432

npm DL / wk

PyPI DL / wk

Language

Python

Last push

2026-06-09

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
Newly tracked — a growth score appears after the first full scoring week. Signals are deliberately suppressed during cold start to avoid false positives.

DSPy alternatives

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

LangGraphNo score yet34,340
AgnoNo score yet40,617
ComposioNo score yet28,708
Semantic KernelNo score yet28,090

See all agent-framework projects ranked by growth →

Frequently asked questions

Is DSPy still maintained?
Yes — actively maintained. The last push was on 2026-06-09, with 432 contributors.
What are the best DSPy alternatives?
Closest by category and size in our data: LangGraph, Agno, 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.svg)](https://whatstrendinginai.com/projects/stanfordnlp__dspy/)

DSPy badge

Tracked since 2026-06-10 · data as of 2026-06-10 · 529 open issues · 109 releases