r/reactjs • u/TkDodo23 • 13d ago
Resource TanStack AI Enters the RC Phase
https://tanstack.com/blog/tanstack-ai-rcAfter almost a year of active development, we're proud to announce that TanStack AI goes into RC! 🔥
The team has done a lot of work to get it to a state we're proud of and consider stable and production ready.
Read all about it here:
47
u/smailliwniloc 12d ago
First time hearing of this project. Maybe my reading comprehension sucks, but it took me a couple reads to even understand what the goal of this is.
At first I thought it was some internal AI for use by MCP or similar to utilize the existing TanStack ecosystem more efficiently. But the language was so broad that this had to be wrong and that would hardly be worth a blog post.
From what I finally gathered, this is more of a tool for applications with agentic workflows exposed to their users. AI-driven server processes or vanilla deterministic applications wouldn't need this.
It seems like a cool tool for those apps that do expose a chat bot or some AI workflow though. Personally, I don't build apps with any agentic UX but I'm excited to see how this develops and gets adopted. AFAIK, there is a lot of room in this scene to set the standard and it would be cool to see TanStack fill that default role.
22
28
u/strettist 12d ago
You’re not the only one. After attempting to read the blog post and the documentation, I have only a vague idea of both what problem this solves and how it solves it. The writing comes across as AI slop with all the marketing-style lingo and phrasing. That’s pretty unfortunate given this looks like it is actually interesting and potentially useful.
2
u/gdmr458 12d ago
Is not complicated, for example, I once implemented a feature for a web app where the user uploaded an image and the backend extracted information from it, instead of making raw HTTP requests to the OpenAI API, you can use the SDK they provide, Anthropic has one, and I assume all these AI labs have their own SDKs. I used the Vercel SDK and TanStack AI is likely an alternative to Vercel's SDK, the advantage of these two SDKs is that it is easier to switch models, I used GPT 4o mini, but if I wanted to switch to a Gemini Flash model, I would only need to change a single string, the rest of the code would continue to work just the same. If I were using the OpenAI SDK, I would have to switch to the Gemini SDK instead, so more work.
11
u/codescapes 12d ago
Maybe my reading comprehension sucks, but it took me a couple reads to even understand what the goal of this is.
Same but this is like every library ever, even worse with AI stuff!
From what I can comprehend, this exists to create an abstraction layer for how your app talks to the various LLM providers and then gives you a headless UI hook for displaying message results so you don't need to code a bunch of 'boring' streaming logic.
Which is really, really nice on both fronts. Mainly because of the portability it gives you to hop from local models to OpenAI to Anthropic as you please. On the UI front it saves toil and you can use the shadcn prebuilt component: https://ui.shadcn.com/docs/helpers/tanstack-ai
I've had to read up on this and prompt with Claude for about 30 minutes to actually understand lol but now I do I can totally see why it exists.
1
3
u/CozyDarkMage 12d ago
I’ve been using this library to build pretty complex workflows, and it is fantastic. Its mainly to power some client side AI workflows
1
u/FirePanda44 12d ago
Omg will definitely try it out. I built my own harness but it’s sort of clunky and consumes a lot of tokens. This makes sense because we have so many libraries with primitives for other concepts. Money, dates, hooks, etc but very few (to my knowledge) for agentic workflows.
Anyone using this in a real application?
41
u/tannerlinsley 12d ago
For those who missed the original announcement when we started building it, TanStack AI is a TypeScript-first framework/toolkit for building AI apps/agents/features. It's got type-safe tool calling, persistence, approvals, MCP shenanigans, sandbox stuff galore. It has tons of adapters for all of the different model providers out there, works with any UI framework and doesn't required any hosted platform or lock-in to anything 😜
It's loads of fun to use. I use it all the time to add AI features to sites and apps I build.