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

aimodels

v0.6.0

Published

A collection of AI model specifications across different providers

Readme

aimodels

A collection of AI model specifications across different providers. This universal JavaScript package provides normalized data about AI models, including their capabilities, context windows, and pricing information. Works in any JavaScript runtime (Node.js, browsers, Deno).

Use cases

aimodels is useful when you need to programmatically access info about AI models and their capabilities. It's ideal for frameworks or applications that interact with different models, need to run inference across various providers or show info about models in the UI.

aimodels powers:

Installation

npm install aimodels

Usage

import { models } from 'aimodels';

// 1. Get all models that support chat functionality
const chatModels = models.canChat();
console.log(`Available chat models: ${chatModels.length}`);
// Example output: "Available chat models: 99"

// 2. Find all chat models with vision capabilities from OpenAI
const visionModelsFromOpenAI = models.canChat().canSee().fromProvider('openai');
console.log(visionModelsFromOpenAI.map(model => model.name));
// Example output: ["GPT-5", "GPT-5.1", ...]

// 3. Check if a specific model can process images
const model = models.id('gpt-5.1');
if (model?.canSee()) {
  console.log(`${model.name} can process images`);
  // Enable image upload in your UI
  const allowAttachingImgs = true;
}

// You can also check multiple capabilities with a single method
if (model?.can('img-in', 'chat')) {
  console.log(`${model.name} can both chat and understand images`);
}

// And use capability checks to make UI decisions
function renderModelControls(model) {
  return {
    showImageUpload: model.canSee(),
    showAudioRecorder: model.canHear(),
    showFunctionEditor: model.canCallFunctions(),
    showResponseFormatting: model.canOutputJSON(),
  };
}

Available API Methods

// Capability methods
models.canChat()               // Models with chat capability
models.canReason()             // Models with reasoning capability
models.canRead()               // Models that can process text input
models.canWrite()              // Models that can output text
models.canSee()                // Models that understand images
models.canGenerateImages()     // Models that can create images
models.canHear()               // Models that understand audio
models.canSpeak()              // Models that can generate speech
models.canOutputJSON()         // Models that provide structured JSON output
models.canCallFunctions()      // Models with function calling capability
models.canGenerateEmbeddings() // Models that output vector embeddings

// Provider and creator methods
models.fromProvider('openai')  // Find models by provider
models.fromCreator('meta')     // Find models by creator

// Context window methods
models.withMinContext(32768)   // Find models with at least this context size

// Model lookup
models.id('gpt-5.1')           // Find a specific model by ID

Features

  • Comprehensive database of AI models from major providers (OpenAI, Anthropic, Mistral, etc.)
  • Normalized data structure for easy comparison
  • Intuitive fluent API for filtering models by capabilities
  • Context window information
  • Creator and provider associations
  • TypeScript support with full type safety
  • Zero dependencies
  • Universal JavaScript support (Node.js, browsers, Deno)
  • Regular updates with new models

License

MIT

Development

Build Process

This project uses tsup (built on esbuild) for bundling. The build process is simple:

# Build the complete package and test
npm run build