ai  by TanStack

AI SDK for building intelligent applications

Created 9 months ago
2,879 stars

Top 15.9% 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

17 hours ago

Responsiveness

Inactive

Pull Requests (30d)
139
Issues (30d)
33
Star History
128 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.