ai  by TanStack

AI SDK for building intelligent applications

Created 3 months ago
2,139 stars

Top 20.7% on SourcePulse

GitHubView on GitHub
Project Summary

Summary TanStack AI is a type-safe, provider-agnostic SDK simplifying AI integration into applications. It addresses the complexity of managing diverse AI models and data formats by offering a unified interface for chat completions, streaming, and multimodal content. Targeting developers building AI-powered features, it reduces boilerplate, enhances type safety across client/server, and allows flexible integration with various AI backends.

How It Works The SDK utilizes provider-agnostic adapters for services like OpenAI, Anthropic, Gemini, and Ollama. It supports multimodal inputs (images, audio, video, documents) and offers headless chat state management with SSE and HTTP streaming adapters. Integration with TanStack Start via createServerFnTool enables defining AI tools once, generating type-safe server functions and AI-compatible tools without code duplication, ensuring isomorphic execution.

Quick Start & Requirements Installation typically uses npm or yarn, consistent with the TanStack ecosystem. Specific hardware, OS, or Python version requirements are not detailed. Links to official documentation and CONTRIBUTING.md are provided. A TypeScript example demonstrates usage with zod and @tanstack/ai-react.

Highlighted Details

  • Provider-agnostic adapters (OpenAI, Anthropic, Gemini, Ollama).
  • Multimodal content support (images, audio, video, documents).
  • Headless chat state management with streaming (SSE, HTTP).
  • Isomorphic type-safe server functions and AI tools via TanStack Start's createServerFnTool.

Maintenance & Community Community engagement is fostered via GitHub discussions and a Discord server. Partnerships are sought to advance development. Contribution guidelines are in CONTRIBUTING.md.

Licensing & Compatibility The specific open-source license is not explicitly stated in the README. Compatibility for commercial use or closed-source linking requires clarification.

Limitations & Caveats The serverFn feature requires TanStack Start. No other explicit limitations are mentioned.

Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
50
Issues (30d)
14
Star History
348 stars in the last 30 days

Explore Similar Projects

Starred by Guillermo Rauch Guillermo Rauch(Founder of Vercel), Jared Palmer Jared Palmer(SVP at GitHub; Founder of Turborepo; Author of Formik, TSDX), and
18 more.

ai by vercel

0.9%
21k
AI SDK for building AI-powered applications and agents
Created 2 years ago
Updated 14 hours ago
Feedback? Help us improve.