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

@llmgateway/models

v1.17.0

Published

Model and provider definitions for [LLM Gateway](https://llmgateway.io) - the unified API for all LLM providers.

Readme

@llmgateway/models

Model and provider definitions for LLM Gateway - the unified API for all LLM providers.

Installation

npm install @llmgateway/models

Usage

Models

The models array contains all supported LLM models with their pricing and provider mappings:

import { models } from "@llmgateway/models";

// Find a specific model
const gpt4 = models.find((m) => m.id === "gpt-4o");

console.log(gpt4.id); // "gpt-4o"
console.log(gpt4.family); // "openai"
console.log(gpt4.contextSize); // 128000
console.log(gpt4.providers); // Provider mappings with pricing

Model Properties

| Property | Type | Description | | ------------------- | ------------------------ | ---------------------------------------------- | | id | string | Unique model identifier | | family | string | Model family (openai, anthropic, google, etc.) | | contextSize | number | Maximum context window in tokens | | maxOutput | number | Maximum output tokens | | providers | ProviderModelMapping[] | Available providers with pricing | | supportsImages | boolean | Whether model supports image inputs | | supportsTools | boolean | Whether model supports tool/function calling | | supportsReasoning | boolean | Whether model supports extended reasoning | | free | boolean | Whether model is free to use |

Provider Mapping Properties

| Property | Type | Description | | ------------------ | -------- | ---------------------------------- | | providerId | string | Provider identifier | | modelName | string | Model name at the provider | | inputPrice | number | Price per input token (USD) | | outputPrice | number | Price per output token (USD) | | cachedInputPrice | number | Price per cached input token (USD) | | contextSize | number | Provider-specific context size | | maxOutput | number | Provider-specific max output |

Providers

The providers array contains all supported LLM providers:

import { providers } from "@llmgateway/models";

// List all providers
providers.forEach((p) => {
  console.log(`${p.name}: ${p.description}`);
});

// Find a specific provider
const openai = providers.find((p) => p.id === "openai");
console.log(openai.name); // "OpenAI"
console.log(openai.website); // "https://openai.com"

Provider Properties

| Property | Type | Description | | ------------- | --------- | ----------------------------------- | | id | string | Unique provider identifier | | name | string | Display name | | description | string | Provider description | | website | string | Provider website URL | | streaming | boolean | Whether provider supports streaming | | color | string | Brand color (hex) |

Supported Providers

  • OpenAI
  • Anthropic
  • Google AI Studio
  • Google Vertex AI
  • Azure OpenAI
  • AWS Bedrock
  • Mistral
  • DeepSeek
  • xAI (Grok)
  • Perplexity
  • And more...

Full Model List

For the complete list of models with live pricing, visit llmgateway.io/models.

License

See LICENSE for details.