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

novixo-ai

v0.1.3

Published

Unified AI provider client with auto-fallback, rate-limit detection, and response caching. Works with Groq, Gemini, and Anthropic.

Readme

novixo-ai

Unified AI client for Node.js and the browser. One API for 15 AI providers — with automatic fallback, rate-limit detection, and response caching built in.

npm install novixo-ai

Quick start

import { NovixoAI } from "novixo-ai";

const ai = new NovixoAI({
  keys: {
    groq: process.env.GROQ_API_KEY,
    gemini: process.env.GEMINI_API_KEY,
    openai: process.env.OPENAI_API_KEY,
  },
});

// Single prompt
const text = await ai.ask("Explain recursion in simple terms");

// Multi-turn chat
const response = await ai.chat([
  { role: "user", content: "What is a binary tree?" },
  { role: "assistant", content: "A binary tree is..." },
  { role: "user", content: "Give me an example in JavaScript" },
]);

console.log(response.text);
console.log(response.provider); // which provider answered

Supported providers

| Provider | Key name | Default model | |----------------|-----------------|---------------------------------------------| | Groq | groq | llama3-8b-8192 | | Google Gemini | gemini | gemini-1.5-flash | | Anthropic | anthropic | claude-haiku-4-5-20251001 | | OpenAI | openai | gpt-4o-mini | | Cohere | cohere | command-r-plus | | Mistral | mistral | mistral-small-latest | | Together AI | together | meta-llama/Llama-3-8b-chat-hf | | Perplexity | perplexity | llama-3-sonar-small-32k-chat | | Hugging Face | huggingface | mistralai/Mistral-7B-Instruct-v0.2 | | OpenRouter | openrouter | openai/gpt-4o-mini (access to 100+ models) | | Fireworks AI | fireworks | llama-v3-8b-instruct | | DeepSeek | deepseek | deepseek-chat | | xAI (Grok) | xai | grok-beta | | AI21 | ai21 | jamba-instruct | | NLP Cloud | nlpcloud | finetuned-llama-3-70b |


How fallback works

novixo-ai tries providers left to right in your priority order:

  1. If a provider is rate limited, it's skipped and retried after cooldown.
  2. If a provider fails, the next one is tried automatically.
  3. If all providers fail, an error is thrown with details from each attempt.

Default order: groq → gemini → openai → mistral → anthropic → ...


Configuration

const ai = new NovixoAI({
  // Only add keys for providers you have access to
  keys: {
    groq:        "gsk_...",
    gemini:      "AIza...",
    openai:      "sk-...",
    cohere:      "...",
    mistral:     "...",
    together:    "...",
    perplexity:  "pplx-...",
    huggingface: "hf_...",
    openrouter:  "sk-or-...",
    fireworks:   "fw-...",
    deepseek:    "...",
    xai:         "xai-...",
    ai21:        "...",
    nlpcloud:    "...",
    anthropic:   "sk-ant-...",
  },

  // Custom priority order
  providers: ["groq", "gemini", "mistral", "openai"],

  // Override models per provider
  models: {
    openai:  "gpt-4o",
    mistral: "mistral-large-latest",
    groq:    "llama3-70b-8192",
  },

  maxTokens:   1024,     // default: 1024
  temperature: 0.7,      // default: 0.7
  cache:       true,     // default: true
  cacheTTL:    300_000,  // default: 5 minutes
});

API

ai.ask(prompt, systemPrompt?)

Single-turn shorthand. Returns response text as a string.

ai.chat(messages, options?)

Multi-turn chat. Returns an AIResponse:

{
  text:       string   // The model's response
  provider:   string   // Which provider answered
  model:      string   // Which model was used
  cached:     boolean  // Whether this came from cache
  durationMs: number   // Time taken in milliseconds
}

ai.clearCache()

Clears the in-memory response cache.

ai.cacheSize

Number of cached entries.


With system prompts

const res = await ai.chat(
  [{ role: "user", content: "Summarise this for me: ..." }],
  { systemPrompt: "You are a concise academic writing assistant." }
);

Force a specific provider for one call

const res = await ai.chat(messages, {
  providers: ["openai"], // only use OpenAI for this call
});

Part of the NovixoTech ecosystem


License

MIT © NovixoTech