@tanstack/ai-perplexity has 143 recorded weekly downloads on npm, a decrease of 37.0% over the past 30 days.
It ranks #1635 of 2,256 tracked npm listings by weekly downloads.
PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.
About @tanstack/ai-perplexity
@tanstack/ai-perplexity
Perplexity Search API for TanStack AI.
Wraps POST https://api.perplexity.ai/search as a tool (and a low-level HTTP client) so an agent can fetch ranked web results (title, url, snippet, date?, last_updated?) for grounding.
This package does not ship a TanStack text adapter. Pair the search tool with a function-calling adapter such as openaiText. For Sonar chat(), use openaiCompatible from @tanstack/ai-openai/compatible — Sonar already searches the web and does not accept custom tools.
Install
Set your API key (get one at ):
Search tool
The tool input schema accepts:
| field | type | notes |
| query | string (required) | The search query. | | max_results | integer (1–20) | Defaults to defaultMaxResults when set, otherwise the API default (10). | | search_domain_filter | string[] | Max 20. Allowlist ("nytimes.com") or denylist ("-pinterest.com") — never both. | | search_recency_filter | "hour" \| "day" \| "week" \| "month" \| "year" | Recency window. | | search_after_date_filter | string | m/d/yyyy — only results on/after this date. | | search_before_date_filter | string | m/d/yyyy — only results on/before this date. |
Output: { results: Array }.
Direct client usage
Chat (Sonar)
Use openaiCompatible from @tanstack/ai-openai/compatible. Do not pass perplexitySearchTool here. Pass getPerplexityIntegrationHeaders() if you want the same X-Pplx-Integration attribution header the Search client sends automatically.
Docs
• Search quickstart: • Search API reference: • Domain filters: • Date / recency filters:
Description from the npm listing.
- ai
- ai-sdk
- typescript
- tanstack
- perplexity
- search
Where @tanstack/ai-perplexity sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (543)Similar npm AI SDKs plugins
Data 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-perplexity. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.