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

@pipeline-builder/ai-core

v3.4.79

Published

Shared AI provider registry for Pipeline Builder: lazily initialized SDK wrappers for Anthropic, OpenAI, Google, xAI, and Bedrock used by AI-assisted pipeline and plugin generation.

Readme

@pipeline-builder/ai-core

📖 View documentation

Shared AI provider registry for Pipeline Builder: lazily initialized SDK wrappers for Anthropic, OpenAI, Google, xAI, and Bedrock used by AI-assisted pipeline and plugin generation.

Internal workspace package — consumed by other packages via workspace:*. ESM only (the ai SDK v6 is ESM-only).

Responsibilities

  • Lazily initializes a registry of AI SDK provider wrappers from environment variables — only providers with a configured API key are registered.
  • Resolves a Vercel AI SDK LanguageModel for a given provider + model, validating against the static provider catalog.
  • Supports a one-off model created from a caller-supplied API key (not cached in the registry).
  • Re-exports the ai SDK helpers consumers need so they don't add a separate dependency.

Providers and their env vars: Anthropic (ANTHROPIC_API_KEY), OpenAI (OPENAI_API_KEY), Google (GOOGLE_GENERATIVE_AI_API_KEY), xAI (XAI_API_KEY), and Amazon Bedrock (authenticates via the runtime IAM role).

Key exports

| Export | Purpose | |---|---| | getAvailableProviders() | Returns provider info for providers with a configured API key | | getProviderModels(providerId) | Returns the model list for a provider from the static catalog (no env var needed) | | resolveModel(providerId, modelId) | Returns a LanguageModel from the registry; throws if the provider is unconfigured or the model is unknown | | createModelWithKey(providerId, modelId, apiKey) | Creates a one-off LanguageModel from a custom key (not cached) | | ProviderEntry (type) | A registered provider: its info plus a createModel factory | | LanguageModel (type), generateText, streamText, Output | Re-exported from the ai SDK |

Usage

import { resolveModel, generateText } from '@pipeline-builder/ai-core';

const model = resolveModel('anthropic', 'claude-sonnet-4-20250514');
const { text } = await generateText({ model, prompt: 'Generate a pipeline spec…' });

Development

pnpm build   # projen build (compile + lint + test + package)
pnpm test    # run the Jest test suite

License

Apache-2.0. See LICENSE.