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

@chikichat/model

v1.2.6

Published

The AI SDK is a TypeScript toolkit designed to help you build AI-powered applications using popular frameworks like Next.js, React, Svelte, Vue and runtimes like Bun or Node.js.

Downloads

107

Readme

AI SDK (model) 👋

The AI SDK is a TypeScript toolkit designed to help you build AI-powered applications using popular frameworks like Next.js, React, Svelte, Vue and runtimes like Bun or Node.js.

We are based on the AI SDK.

Installation

You will need Bun or Node.js 18+ and pnpm installed on your local development machine.

pnpm i @chikichat/model

Providers

  • [x] AI21 Labs
  • [x] Anthropic
  • [x] Cohere
  • [x] DeepSeek
  • [x] Google Generative AI
  • [x] Groq
  • [ ] Hugging Face
  • [x] Mistral
  • [ ] Novita
  • [x] Nvidia
  • [x] OpenAI
  • [x] OpenRouter AI
  • [ ] Perplexity
  • [ ] Qwen
  • [x] SambaNova
  • [x] Together
  • [ ] Vertex AI
  • [x] xAI

and SPECIAL

  • [ ] Co:Here
  • [ ] llama.cpp
  • [ ] TensorRT-LLM

Usage Examples

Large language models (LLMs) can generate text in response to a prompt, which can contain instructions and information to process. For example, you can ask a model to come up with a recipe, draft an email, or summarize a document.

@/index.ts (Bun Runtime)
import {generateText} from 'ai';
import {languageModel, usageModel} from '@chikichat/model';

const model = 'anthropic/claude-3-5-sonnet-20241022';

/**
 * Generate text using a language model.
 */
const {text, usage} = await generateText({
    model: languageModel(model, '<api key>'),
    system: 'You are a friendly assistant!',
    prompt: 'Why is the sky blue?',
});

console.log(text);
console.log(usageModel(model, usage));

// read more: https://sdk.vercel.ai/docs/ai-sdk-core/generating-text 
bun run index.ts

Embeddings are a way to represent words, phrases, or images as vectors in a high-dimensional space. In this space, similar words are close to each other, and the distance between words can be used to measure their similarity.

@/index.ts (Bun Runtime)
import {embed} from 'ai';
import {embeddingModel} from '@chikichat/model';

/**
 * Embed a text using an embedding model.
 */
const {embedding} = await embed({
    model: embeddingModel('mistral/mistral-embed', '<api key>'),
    value: 'sunny day at the beach',
});

console.log(embedding);

// read more: https://sdk.vercel.ai/docs/ai-sdk-core/embeddings
bun run index.ts

Contributing

Contributions to the AI SDK are welcome and highly appreciated. However, before you jump right into it, we would like you to review our Contribution Guidelines to make sure you have smooth experience contributing to AI SDK.

License

This project is licensed under the Apache License Version 2.0 License - see the LICENSE file for details.