Skip to content
AI Trends Radar
Explore the catalog

Framework

DSPy

A framework for programming language models with declarative modules and optimizing their prompts automatically.

CodingResearchOfficial site

What is DSPy?

For Python developers and researchers who build systems on AI language models. Instead of writing prompts by hand, you describe each task in code and DSPy improves the prompts automatically.

Made by
Stanford NLP
Price
Free and open sourceFree and open source under the MIT licence. The AI models it calls are paid for separately.Details on the official site
Runs on
Python

Facts read from the maker’s own pages on . Prices and plans change; the official site has the last word.

How to start

  1. Install it with the command shown on the home page.
  2. Choose a language model and connect DSPy to it.
  3. Write a first small program by following the getting-started example.
Open the official start page

Signals.

Each source is shown as it was measured. Not enough evidence this period: two sources big enough to compare, or X or GitHub, are needed.

  • PyPI

    Downloads per week, mirrors excluded

    Package dspy

    1,680,963latest

    View data
    PyPI: Downloads per week, mirrors excluded
    PeriodValue
    31 Aug 20261,224,710
    7 Sept 20261,033,488
    14 Sept 20261,250,490
    21 Sept 20261,353,475
    28 Sept 20261,418,884
    5 Oct 20261,196,298
    12 Oct 20261,273,593
    19 Oct 20261,333,132
    26 Oct 20261,305,640
    2 Nov 20261,211,876
    9 Nov 20261,436,530
    16 Nov 20261,845,001
    23 Nov 20261,680,963
    • The way this is measured changed. Figures from before 31 Aug 2026 are not comparable and are not shown.
  • GitHub

    New forks per week

    Repository stanfordnlp/dspy

    34latest

    View data
    GitHub: New forks per week
    PeriodValue
    1 Dec 202516
    8 Dec 202513
    15 Dec 202516
    22 Dec 202517
    29 Dec 202511
    5 Jan 202629
    12 Jan 202621
    19 Jan 202623
    26 Jan 202611
    2 Feb 202614
    9 Feb 202616
    16 Feb 202613
    23 Feb 202616
    2 Mar 202617
    9 Mar 202624
    16 Mar 202630
    23 Mar 202616
    30 Mar 202627
    6 Apr 202624
    13 Apr 202632
    20 Apr 202634
    27 Apr 202628
    4 May 202617
    11 May 202623
    18 May 202627
    25 May 202621
    1 Jun 202622
    8 Jun 202621
    15 Jun 202624
    22 Jun 202633
    29 Jun 202632
    6 Jul 202635
    13 Jul 202628
    20 Jul 202620
    27 Jul 202628
    3 Aug 202638
    10 Aug 202637
    17 Aug 202630
    24 Aug 202626
    31 Aug 202624
    7 Sept 202624
    14 Sept 202629
    21 Sept 202639
    28 Sept 202629
    5 Oct 202622
    12 Oct 202627
    19 Oct 202627
    26 Oct 202629
    2 Nov 202627
    9 Nov 202630
    16 Nov 202623
    23 Nov 202634

    Stars, running total

    39,316latest

    +124 over the last week

    View data
    GitHub: Stars, running total
    PeriodValue
    16 Nov 202639,192
    23 Nov 202639,316
    • A running total, as it stood at the end of each week.
  • Hacker News

    Stories mentioning the phrase, per week

    Phrase “dspy”

    0latest

    View data
    Hacker News: Stories mentioning the phrase, per week
    PeriodValue
    1 Dec 20253
    8 Dec 20251
    15 Dec 20254
    22 Dec 20251
    29 Dec 20250
    5 Jan 20260
    12 Jan 20260
    19 Jan 20260
    26 Jan 20263
    2 Feb 20261
    9 Feb 20260
    16 Feb 20263
    23 Feb 20261
    2 Mar 20260
    9 Mar 20262
    16 Mar 20262
    23 Mar 20262
    30 Mar 20261
    6 Apr 20262
    13 Apr 20260
    20 Apr 20260
    27 Apr 20260
    4 May 20261
    11 May 20260
    18 May 20260
    25 May 20261
    1 Jun 20260
    8 Jun 20262
    15 Jun 20260
    22 Jun 20261
    29 Jun 20261
    6 Jul 20261
    13 Jul 20260
    20 Jul 20260
    27 Jul 20260
    3 Aug 20261
    10 Aug 20263
    17 Aug 20260
    24 Aug 20260
    31 Aug 20261
    7 Sept 20260
    14 Sept 20260
    21 Sept 20263
    28 Sept 20260
    5 Oct 20260
    12 Oct 20260
    19 Oct 20260
    26 Oct 20260
    2 Nov 20260
    9 Nov 20262
    16 Nov 20261
    23 Nov 20260

Each source is shown on its own scale; the numbers are not comparable across sources. Weekly figures, Monday to Monday (UTC), as reported by each source. Last updated 30 Nov 2026.

DSPy statistics. The latest week from each source, ready to quote.

  • PyPI: Downloads per week, mirrors excluded (Package dspy)

    1,680,963

    Week of 23 Nov 2026, +16% on the four-week average.

  • GitHub: New forks per week (Repository stanfordnlp/dspy)

    34

    Week of 23 Nov 2026, +25% on the four-week average.

  • GitHub: Stars, running total (Repository stanfordnlp/dspy)

    39,316

    Week of 23 Nov 2026, +124 over that week.

  • Hacker News: Stories mentioning the phrase, per week (Phrase “dspy”)

    0

    Week of 23 Nov 2026, −100% on the four-week average.

You may quote these figures with credit. Cite them as: AI Trends Radar, “DSPy”, weekly figures to the week of 23 Nov 2026, https://aitrendsradar.com/topics/dspy

Latest. New releases, and what people are discussing and watching.

Releases

From the project’s releases on GitHub.

Discussed on Hacker News

The most discussed stories of the last 30 days. Headlines are written by the people who posted them, and are not checked by us.

Questions and answers. DSPy, in short.

What is DSPy?

A framework for programming language models with declarative modules and optimizing their prompts automatically. For Python developers and researchers who build systems on AI language models. Instead of writing prompts by hand, you describe each task in code and DSPy improves the prompts automatically.

Is DSPy free?

Free and open source. Free and open source under the MIT licence. The AI models it calls are paid for separately. Prices were read from the maker’s own pages on 18 November 2026; the official site has the last word.

Who makes DSPy?

DSPy is made by Stanford NLP.

What does DSPy run on?

DSPy runs on Python.

How do I start with DSPy?

Install it with the command shown on the home page. Choose a language model and connect DSPy to it. Write a first small program by following the getting-started example.

Related topics.

More in AI coding tools. The highest heat this month first.

See all in AI coding tools
Do you make DSPy? Show its heat on your site
DSPy on AI Trends Radar

A small picture with this month’s heat, which updates by itself and links to this page. Paste one of these where you want it.

For a web page

<a href="https://aitrendsradar.com/topics/dspy"><img src="https://aitrendsradar.com/badge/dspy.svg" alt="DSPy on AI Trends Radar" height="28"></a>

For a README (Markdown)

[![DSPy on AI Trends Radar](https://aitrendsradar.com/badge/dspy.svg)](https://aitrendsradar.com/topics/dspy)