@tanstack/ai-typesafe has 33,113 recorded weekly downloads on npm, an increase of 502% over the past 30 days, ranking #899 of 3,247 tracked listings.
About @tanstack/ai-typesafe
@tanstack/ai-typesafe
TypeSafe Jev adapter for TanStack AI. Call Jev with
decide() and typed questions. This package talks HTTP with fetch. It
does not add a TypeSafe SDK.
Install
pnpm add @tanstack/ai @tanstack/ai-typesafe
Setup
Get an API key from TypeSafe and set it as an environment variable:
export TYPESAFE_API_KEY="..."
Usage
import { boolean, choice, decide, score } from '@tanstack/ai'
import { typesafeDecider } from '@tanstack/ai-typesafe'
const result = await decide({
adapter: typesafeDecider('jev-latest'),
state: ticket,
questions: {
queue: choice({
instructions: 'Which team should handle this ticket?',
options: {
billing: 'Payments, invoices, refunds',
tech: 'Bugs, outages, integrations',
sales: 'Pricing, upgrades, new accounts',
},
}),
urgency: score({
instructions: 'How urgent is this ticket?',
levels: ['low', 'medium', 'high'],
}),
refund: boolean({
instructions: 'Is the customer asking for a refund?',
}),
},
})
result.queue.value
result.meta.model
result.meta.usage
typesafeDecider(model) reads TYPESAFE_API_KEY from the environment. To
pass a key yourself, use createTypesafeDecider(model, apiKey).
Supported models
jev-latest— current stable Jev aliasjev-1.13.0— pinned Jev release
You can also pass other TypeSafe model ids as a string.
License
MIT
Description from the npm listing.
- ai
- ai-sdk
- typescript
- tanstack
- typesafe
- jev
- adapter
- evaluate
- decide
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm AI SDKs plugins
All 20 @tanstack/ai-typesafe alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@tanstack/ai-typesafe. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.