npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tanstack/ai-gemini

v0.0.2

Published

Google Gemini adapter for TanStack AI

Readme

Become a Sponsor!

TanStack AI

A powerful, type-safe AI SDK for building AI-powered applications.

  • Provider-agnostic adapters (OpenAI, Anthropic, Gemini, Ollama, etc.)
  • Multimodal content support - Send images, audio, video, and documents
  • Chat completion, streaming, and agent loop strategies
  • Headless chat state management with adapters (SSE, HTTP stream, custom)
  • Isomorphic type-safe tools with server/client execution
  • Enhanced integration with TanStack Start - Share implementations between AI tools and server functions

Read the docs →

Bonus: TanStack Start Integration

TanStack AI works with any framework (Next.js, Express, Remix, etc.).

With TanStack Start, you get a bonus: share implementations between AI tools and server functions with createServerFnTool:

import { createServerFnTool } from '@tanstack/ai-react'

// Define once, get AI tool AND server function (TanStack Start only)
const getProducts = createServerFnTool({
  name: 'getProducts',
  inputSchema: z.object({ query: z.string() }),
  execute: async ({ query }) => db.products.search(query),
})

// Use in AI chat
chat({ tools: [getProducts.server] })

// Call directly from components (no API endpoint needed!)
const products = await getProducts.serverFn({ query: 'laptop' })

No duplicate logic, full type safety, automatic validation. The serverFn feature requires TanStack Start. See docs for details.

Get Involved

Partners

Explore the TanStack Ecosystem

  • TanStack Config – Tooling for JS/TS packages
  • TanStack DB – Reactive sync client store
  • TanStack Devtools – Unified devtools panel
  • TanStack Form – Type‑safe form state
  • TanStack Pacer – Debouncing, throttling, batching
  • TanStack Query – Async state & caching
  • TanStack Ranger – Range & slider primitives
  • TanStack Router – Type‑safe routing, caching & URL state
  • TanStack Start – Full‑stack SSR & streaming
  • TanStack Store – Reactive data store
  • TanStack Table – Headless datagrids
  • TanStack Virtual – Virtualized rendering

… and more at TanStack.com »