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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gullabs/any-llm

v0.9.3

Published

Batteries-included any-llm client for Gemini: engine, adapter, and Google SDK in one install.

Readme

@gullabs/any-llm

The default, batteries-included any-llm client package.

"Batteries-included" means concretely this: @gullabs/any-llm bundles @gullabs/core (the engine), @gullabs/google (the Gemini adapter), and @google/genai (the Gemini SDK) as dependencies and re-exports their full public API, so a single pnpm add gets you a working client instead of three separate installs.

Install

pnpm add @gullabs/any-llm

This installs the core engine, Gemini adapter, and @google/genai.

Usage

import {
  createClient,
  composeProviders,
  defaultGeminiRegistry,
  defineCallSite,
  googleProvider,
} from '@gullabs/any-llm'

const client = createClient({
  ...composeProviders([googleProvider()]),
})

const summarize = defineCallSite({
  id: 'summarize',
  provider: 'google',
  model: 'gemini-2.5-flash',
  jsonSchema: {
    type: 'object',
    properties: {
      title: { type: 'string' },
      bullets: { type: 'array', items: { type: 'string' } },
    },
    required: ['title', 'bullets'],
  },
  userTemplate: 'Summarize this:\n\n{{text}}',
})

// Auth is required per call — the library never reads environment variables itself.
const result = await client.runStructured(
  summarize,
  { text: documentText },
  { auth: { apiKey: process.env.GEMINI_API_KEY! } },
)

const descriptor = defaultGeminiRegistry.resolve('google', 'gemini-3.5-flash')
if (!descriptor) throw new Error('unknown model')

const parsedConfig = descriptor.configSchema.parse({
  reasoning: { effort: 'medium' },
})

Built-in descriptors own the strict model-config contract: descriptor.configSchema parses persisted or user-supplied config, and descriptor.configJsonSchema is the derived UI/form schema. Use reasoning.effort for Gemini 3 and Gemma built-ins, omit serviceTier for the provider's standard tier, and set flex explicitly when that trade-off is intended. priority remains rejected by the library for now.

Key exports

This package re-exports the full public API of @gullabs/core and @gullabs/google verbatim — createClient, composeProviders, defineCallSite, googleProvider, geminiAdapter, geminiPricingSource, LlmError, and every other named export from both packages. See their READMEs for details:

| Export | What it is | | --------------------------- | ----------------------------------------------------------- | | createClient(config) | Wires ports into a { generate, runStructured } client | | composeProviders(plugins) | Merges ProviderPlugins into ClientConfig fields | | defineCallSite(opts) | Defines a typed, reusable prompt template bound to a model | | googleProvider(opts?) | The Gemini ProviderPlugin factory, from @gullabs/google | | geminiAdapter(opts?) | The Gemini ProviderAdapter, from @gullabs/google | | geminiPricingSource() | Built-in Gemini pricing snapshot, from @gullabs/google | | LlmError | Typed error class — always thrown on call failure | | ANY_LLM_VERSION | This package's version, sourced from package.json |

Use @gullabs/core and @gullabs/google directly only when you want modular dependency control.

AI-agent skill

This package ships an Agent Skill at skills/any-llm/SKILL.md for AI coding tools that support the convention (e.g. Claude Code). Point a compatible assistant at it to get accurate, up-to-date usage guidance for this library instead of relying on its training data.

Learn more