TanStack/ai
๐ค Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid.
Star History
Add Live Star History & Verified Badges to README.md
Keep your repository README looking professional and dynamic. As our continuous crawler records new stars, these official SVG badges update in real time with zero maintenance.
Renders your high-resolution star trajectory chart right inside your GitHub README or project docs.
[](https://githubrepo.cloud/repo/TanStack/ai?utm_source=readme_chart)
Compact Shields-style badges for your README header. Shows real-time stars and global ranking.
[](https://githubrepo.cloud/repo/TanStack/ai?utm_source=readme_badge) [](https://githubrepo.cloud/repo/TanStack/ai?utm_source=readme_badge) [](https://githubrepo.cloud/repo/TanStack/ai?utm_source=readme_badge)
Momentum
+79
STARS ยท LAST 30 DAYS
3
PER DAY
#459
MOST-STARRED TypeScript
| Window | 7 days | 30 days | 90 days |
|---|---|---|---|
| Stars gained | +0 | +79 | +270 |
| Per day | 1 | 3 | 3 |
| Forks gained | +0 | +7 | +18 |
ai gained 79 stars in the last 30 days, about 3 a day, and now has 3.2K. It is about 1 year old and has averaged roughly 3.2K stars a year. It ranks #459 among TypeScript repositories and #3,140 across all languages on GitHubRepo.
Trending Record
10
DAYS ON TRENDING
#4607
BEST RANK
Oct 9, 2026
FIRST APPEARANCE
Active
STATUS TODAY
ai has maintained a continuous presence across global trending indexes, peaking at #4607. Below is the 30-day activity profile:
๐ก Overview
ai is an open-source project written in TypeScript: ๐ค Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid.
Engineered for speed, consistency, and developer ease, it solves common hurdles in ai, ai-agents, ai-sdk. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.
โก Key Features
Optimized execution pipeline written in TypeScript for predictable speed.
Zero-friction configuration with comprehensive sensible defaults out of the box.
Cross-platform runtime support across Linux, macOS, and Windows environments.
Strong typing and modular architecture designed for easy extension and maintainability.
Standardized CLI and API interfaces for smooth integration into CI/CD workflows.
Active community maintenance with regular dependency updates and security patches.
๐ฅ Installation
$ npm install ai
โ System Requirements
Platforms
- โข macOS
- โข Linux
- โข Windows
Runtime & Dependencies
Node.js >= 18, npm, pnpm or bun
Architecture
x86_64, ARM64 (Apple Silicon & Graviton)
๐ง How It Works
ai coordinates its core functionality through a modular TypeScript pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.
๐ฏ Production Use Cases
Autonomous AI Agents
Orchestrate intelligent workflows and tool-calling routines with ai.
Model Inference & Prompting
Integrate fast, local or cloud-hosted generative AI models directly into production code.
Context Memory & RAG
Augment language models with dynamic vector retrieval and structured project memory.
Developer Productivity
Automate repetitive engineering tasks, code generation, and test creation using AI agents.
๐ Getting Started
Install ai using your package manager: `npm install ai`
Initialize your project workspace or configuration file for ai.
Import ai into your codebase or invoke it directly from your terminal.
Execute your test suite or run `ai --help` to verify successful setup.
๐ Strengths
โ ๏ธ Considerations
โ Alternatives & Direct Competitors
๐ฅ Who Should Use This
Developers and engineering teams building with TypeScript, seeking reliable, tested, and actively maintained tooling for production workloads.
๐ Nearby in the Rankings
TanStack/ai is currently ranked #3,140 by stars across every repository tracked on GitHubRepo. These are adjacent projects:
| Rank | Repository | Language | Stars | Action |
|---|---|---|---|---|
| #3,135 | apache/hugegraph | Java | โ 3.2K | Compare โ |
| #3,136 | elie222/rakazo | TypeScript | โ 3.2K | Compare โ |
| #3,137 | patrykandpatrick/vico | Kotlin | โ 3.2K | Compare โ |
| #3,138 | hybridsjs/hybrids | JavaScript | โ 3.2K | Compare โ |
| #3,139 | microsoft/retina | Go | โ 3.2K | Compare โ |
| #3,140 | TanStack/ai This Project | TypeScript | โ 3.2K | |
| #3,140 | PaulWoitaschek/Voice | Kotlin | โ 3.2K | Compare โ |
| #3,142 | coverlet-coverage/coverlet | C# | โ 3.2K | Compare โ |
| #3,142 | aliasvault/aliasvault | TypeScript | โ 3.2K | Compare โ |
| #3,144 | SuperTux/supertux | C++ | โ 3.2K | Compare โ |
| #3,145 | feder-cr/invisible_playwright | Python | โ 3.2K | Compare โ |
Frequently Asked Questions
What does ai do? +
๐ค Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid.
What language is ai written in? +
The primary language is TypeScript. Topics include: ai, ai-agents, ai-sdk, anthropic, chatbot.
Is ai actively maintained? +
Yes, the last recorded push was on Oct 9, 2026 with 40 open issues being tracked.
How many stars does ai have? +
ai has 3,178 stars and 359 forks on GitHub.
How does ai rank among GitHub repositories? +
With 3,178 stars, TanStack/ai is ranked #3,140 globally across all repositories tracked on GitHubRepo and #459 among TypeScript projects.
What license is ai distributed under? +
The repository reports a MIT license. Always verify the repository LICENSE file for legal terms.