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

@novaqore/ai

v3.2.1

Published

NovaQore Private LLM client.

Readme


Install

npm install @novaqore/ai
// CommonJS
const NovaQoreAI = require("@novaqore/ai");

// ES Module
import NovaQoreAI from "@novaqore/ai";

Quick Start

Streaming (default)

const { chat } = new NovaQoreAI();

const { stream } = await chat({
  messages: [{ role: "user", content: "Hello" }],
});

for await (const chunk of stream) {
  const content = chunk.choices[0]?.delta?.content;
  if (content) process.stdout.write(content);
}

One-shot (non-streaming)

const { result } = await chat({
  messages: [{ role: "user", content: "Hello" }],
  stream: false,
});

console.log(result.choices[0].message.content);

Cancel a request

chat() returns an abort() function. Call it to tear down the request and its underlying connection at any time.

const { stream, abort } = await chat({
  messages: [{ role: "user", content: "Count to 100." }],
});

// e.g. abort after 1s, or wire to a stop button
setTimeout(abort, 1000);

try {
  for await (const chunk of stream) {
    process.stdout.write(chunk.choices[0]?.delta?.content || "");
  }
} catch (err) {
  if (err.name !== "AbortError") throw err;
}

Tool use

const { stream } = await chat({
  messages: [{ role: "user", content: "List the files in the current directory." }],
  tools: [{
    type: "function",
    function: {
      name: "bash",
      description: "Run a bash command and return stdout",
      parameters: {
        type: "object",
        properties: {
          command: { type: "string", description: "Shell command to run" },
        },
        required: ["command"],
      },
    },
  }],
});

let name = "";
let args = "";
for await (const chunk of stream) {
  const call = chunk.choices[0]?.delta?.tool_calls?.[0];
  if (call?.function?.name) name = call.function.name;
  if (call?.function?.arguments) args += call.function.arguments;
}

console.log(name);  // "bash"
console.log(args);  // '{"command":"ls"}'

Run local

NovaQore AI uses the standard /v1/chat/completions endpoint, so any compatible server works. llama.cpp is a common choice for self-hosting on your own GPU.

Start the server:

llama-server -m your-model.gguf --port 8080

Point the client at it:

const nq = new NovaQoreAI({ base_url: "http://localhost:8080" });

Requests hit ${base_url}/v1/chat/completions. Streaming, tools, tool_choice, and one-shot all behave the same.

Options

Constructor: new NovaQoreAI(options?)

| Option | Type | Default | Description | |--------|------|---------|-------------| | base_url | string | https://api.novaqore.ai | Override the API base URL |

chat(params)

| Param | Type | Default | Description | |-------|------|---------|-------------| | messages | array | (required) | Chat messages | | tools | array | [] | Tool definitions | | tool_choice | string | object | "auto" | "auto", "none", "required", or { type: "function", function: { name } } | | stream | boolean | true | Stream the response. When false, resolves to { result } instead of { stream } |

Roadmap

We are actively building the next generation of private AI infrastructure. Multi-model support, streaming improvements, and more.

View the Roadmap

Community

We are building this in the open. Join us.

Disclaimer

NovaQore AI is provided as-is. We do not store your conversations, log your prompts or responses, or use your data to train models. We do not keep copies of your requests.

We built NovaQore AI to give people and businesses a genuinely private way to use AI. That said, NovaQore AI is not a tool for illegal activity. We do not tolerate unlawful use of our service. While we cannot see your data, we will cooperate with law enforcement when presented with a valid legal order as required by law.

By using NovaQore AI, you agree to use it responsibly and in compliance with all applicable laws.

License

MIT