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

@cencori/ai-sdk

v0.4.0

Published

Cencori AI SDK - The infrastructure layer for AI applications. Works with Vercel AI SDK, TanStack AI, and more.

Readme

@cencori/ai-sdk

The Cencori AI SDK — the infrastructure layer for AI applications.

Installation

npm install @cencori/ai-sdk

Vercel AI SDK Integration

import { cencori } from '@cencori/ai-sdk/vercel';
import { streamText } from 'ai';

const result = await streamText({
  model: cencori('gpt-4o'),
  messages: [{ role: 'user', content: 'Hello!' }]
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}

Tool Calling (Vercel AI SDK)

import { cencori } from '@cencori/ai-sdk/vercel';
import { generateText, tool } from 'ai';
import { z } from 'zod';

const result = await generateText({
  model: cencori('gpt-4o'),
  prompt: 'What is the weather in San Francisco?',
  tools: {
    getWeather: tool({
      description: 'Get the current weather for a location',
      parameters: z.object({
        location: z.string().describe('The city name'),
      }),
      execute: async ({ location }) => {
        return { temperature: 72, condition: 'sunny' };
      },
    }),
  },
});

TanStack AI Integration

import { cencori } from '@cencori/ai-sdk/tanstack';

const adapter = cencori('gpt-4o');

for await (const chunk of adapter.chatStream({
  messages: [{ role: 'user', content: 'Hello!' }]
})) {
  if (chunk.type === 'content') {
    process.stdout.write(chunk.delta);
  }
}

Tool Calling (TanStack AI)

import { cencori } from '@cencori/ai-sdk/tanstack';

const adapter = cencori('gpt-4o');

for await (const chunk of adapter.chatStream({
  messages: [{ role: 'user', content: 'Get weather for NYC' }],
  tools: {
    getWeather: {
      name: 'getWeather',
      description: 'Get weather for a location',
      inputSchema: { 
        type: 'object', 
        properties: { location: { type: 'string' } } 
      },
    },
  },
})) {
  if (chunk.type === 'tool_call') {
    console.log('Tool call:', chunk.toolCall);
  }
}

Configuration

Environment Variable

CENCORI_API_KEY=csk_your_key_here

Custom Configuration

import { createCencori } from '@cencori/ai-sdk/vercel';

const cencori = createCencori({
  apiKey: 'csk_your_key_here',
  baseUrl: 'https://cencori.com',
});

Supported Models

| Provider | Models | |----------|--------| | OpenAI | gpt-4o, gpt-4o-mini, o1 | | Anthropic | claude-3-5-sonnet, claude-3-opus, claude-3-haiku | | Google | gemini-2.5-flash, gemini-2.0-flash, gemini-3-pro | | xAI | grok-4, grok-3 | | Mistral | mistral-large, codestral | | DeepSeek | deepseek-v3.2, deepseek-reasoner | | + More | Groq, Cohere, Perplexity, Together |

Why Cencori?

  • 🔒 Security — PII filtering, jailbreak detection, content moderation
  • 📊 Observability — Request logs, latency metrics, cost tracking
  • 💰 Cost Control — Budgets, alerts, per-route analytics
  • 🔌 Multi-Provider — One API key for all AI providers
  • 🛠️ Tool Calling — Full support for function calling across providers

License

MIT © FohnAI