Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
The pretty much "official" DSPy framework for Typescript
| Date | Stars |
|---|---|
| 2026-07-24 | 2842 |
| 2026-07-25 | 2843 |
| 2026-07-28 | 2843 |
| 2026-07-30 | 2843 |
| 2026-07-31 | 2853 |
| 2026-08-06 | 2853 |
Today
— stars today
This week
+10 stars this week
This month
— stars this month
Momentum
45.0
growth rate 0.35%/day
# Ax — DSPy for TypeScript / Python / Java / C++ / Go / Rust and more
One programming model for building with LLMs across TypeScript, Python, Java,
C++, Go, and Rust.
Ax is TypeScript-first and ships today as `@ax-llm/ax`. The same signatures,
provider mappings, agents, flows, runtime contracts, and optimizers are also
compiled into verified generated Python, Java, C++, Go, and Rust libraries.
[](https://www.npmjs.com/package/@ax-llm/ax)
[](https://pypi.org/project/axllm/)
[](https://crates.io/crates/axllm)
[](https://central.sonatype.com/artifact/dev.axllm/ax)
[](https://discord.gg/DSHg3dU7dW)
[](https://x.com/intent/follow?screen_name=dosco)
> 💬 **Follow [@dosco](https://x.com/intent/follow?screen_name=dosco) on X** for new releases and to chat about the project.
## What Ax is
- **Signatures** for typed structured generation: string DSL, fluent `f()`
builder, or any **Standard Schema v1** validator — Zod, Valibot, ArkType.
- **Provider abstraction** across OpenAI-compatible endpoints, OpenAI
Responses, Anthropic, Gemini, Grok/xAI, Mistral, Cohere, Reka, DeepSeek,
Azure OpenAI, audio, and realtime event streams.
- **Agents** with runtime execution, context budgets, checkpoints, action-log
replay, discovery, memory, skills, and delegation.
- **Flows** as typed program graphs with branches, loops, feedback, cache
behavior, parallel execution, and `.returns(...)` projection.
- **Optimizers** including GEPA, few-shot bootstrapping, portable optimizer
artifacts, and evaluation/apply flows.
- **One semantic core** compiled into TypeScript, Python, Java, C++, Go, and
Rust library shapes, so the same Ax program model can move across runtime
stacks.
## Language Matrix
| Ecosystem | Package / import | Status |
|---|---|---|
| TypeScript / JavaScript | `@ax-llm/ax`<br>`import { ai, ax, agent, flow } from "@ax-llm/ax"` | Published on npm |
| Python | `axllm`<br>`from axllm import ai, ax, agent, flow` | Published on PyPI |
| Java | `dev.axllm:ax`<br>`import dev.axllm.ax.*` | Published on Maven Central |
| C++ | `axllm::axllm`<br>`#include <axllm/axllm.hpp>` | CMake `FetchContent` (source build) |
| Go | `github.com/ax-llm/ax/packages/go`<br>`import ax "github.com/ax-llm/ax/packages/go"` | Installable with `go get`; opt-in `runtime/goja` actor runtime |
| Rust | `axllm`<br>`use axllm::{ai, ax, agent, flow};` | Published on crates.io; protocol-first code runtime |
```mermaid
flowchart LR
S["Signature (string, f, Standard Schema)"] --> G["AxGen typed generation"]
G --> P["Provider descriptors / AI clients"]
G --> A["AxAgent"]
G --> F["AxFlow"]
G --> O["GEPA / optimizer artifacts"]
C["Shared Ax semantics"] --> TS["TypeScript"]
C --> PY["Python"]
C --> JV["Java"]
C --> CP["C++"]
C --> GO["Go"]
C --> RS["Rust"]
```
## 30 seconds
The TypeScript package is the source implementation and the current published
package:
```typescript
import { ai, ax } from "@ax-llm/ax";
const llm = ai({ name: "openai", apiKey: process.env.OPENAI_APIKEY });
const classify = ax(
'review:string -> sentiment:class "positive, negative, neutral"',
);
const { sentiment } = await classify.forward(llm, {
review: "This product is amazing!",
});
// sentiment: "positive" — typed as the literal union
```
No prompt engineering. Switch `name: "openai"` to `"anthropic"`, `"google-gemini"`, `"mistral"`, `"deepseek"`, `"grokExcerpt of 29,397 characters
Read on GitHubSpacy · United States
1.7k
Josh Fleming · Facebook · United States
62
Amit · India
11
9
8
Tom · @dwarvesf
8
6
6
6
5
4
3
3
3
2
Mathieu · France
2
Andrei Onel · @askmanu · Ireland
2
Miles Zimmerman · @Dealops · United States
2
1
Hendrik Kuck · gravity&storm · Germany
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:6eb8c0a1b010ea78, topic:large-language-models, topic:llm
matched fp:6eb8c0a1b010ea78, topic:rag
matched fp:6eb8c0a1b010ea78, topic:dspy, readme:prompt engineering, readme:structured generation