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

@qvac/inference

v0.21.0

Published

Bare-only in-process core of the QVAC SDK. Runs inference directly on the Bare runtime with explicit plugin assembly and no RPC, worker, or subprocess layer.

Readme

@qvac/inference

The Bare-only engine of the QVAC SDK. It runs inference directly on the Bare runtime in a single process without a worker or subprocess. Native GGML RPC is available as an opt-in distributed GPU path. You register the inference engines you need and call the same API surface as @qvac/sdk, in-process.

Part of the QVAC ecosystem

Home • Docs • Support • Discord

Why this exists

@qvac/inference is the pure-Bare layer of the SDK, written in TypeScript: the client API, the request engine, and the plugin system, all running in one Bare process. @qvac/sdk builds on top of it to reach Node, Electron, Expo, and Pear by launching this engine as a worker; on Bare you use it directly. It replaces the deprecated @qvac/bare-sdk package (last release 0.18.2).

@qvac/inference ships no plugins by default and has no required model or RPC server addon dependencies. Model addons are optional peers; RPC serving uses an explicitly registered provider. You install only the addon packages your app registers, so the resulting binary scales with the engines and services you actually assemble.

Requirements

  • A Bare runtime (see the bare version in engines). The package ships compiled JavaScript with type declarations; when working from source, run npm run build first.

Install

npm install @qvac/inference @qvac/translation-nmtcpp

Replace @qvac/translation-nmtcpp with the addon packages backing the plugins you register (see the table below).

Usage

Assemble an explicit plugin set with plugins([...]), which returns the API bound to those engines:

import { plugins } from '@qvac/inference'
import { nmtPlugin } from '@qvac/inference/nmtcpp-translation/plugin'

const sdk = plugins([nmtPlugin])

const result = await sdk.translate({
  modelId: 'my-model',
  text: 'Hello world',
  sourceLang: 'en',
  targetLang: 'fr'
})

Or register plugins imperatively and import the operations directly:

import { registerPlugin, loadModel, completion, LLAMA_3_2_1B_INST_Q4_0 } from '@qvac/inference'
import { llmPlugin } from '@qvac/inference/llamacpp-completion/plugin'

registerPlugin(llmPlugin)

const modelId = await loadModel({ modelSrc: LLAMA_3_2_1B_INST_Q4_0 })
const run = completion({ modelId, history: [{ role: 'user', content: 'Hi' }] })

Model operations require a registered model plugin. RPC discovery needs no model plugin or server provider; serving requires an explicitly registered server provider.

The Bare serving example shows explicit registration and cleanup with @qvac/[email protected].

Capability to addon package

| Plugin subpath | Addon package | | ----------------------------------------------------- | -------------------------------- | | @qvac/inference/llamacpp-completion/plugin | @qvac/llm-llamacpp | | @qvac/inference/llamacpp-embedding/plugin | @qvac/embed-llamacpp | | @qvac/inference/whispercpp-transcription/plugin | @qvac/transcription-whispercpp | | @qvac/inference/bci-whispercpp-transcription/plugin | @qvac/bci-whispercpp | | @qvac/inference/parakeet-transcription/plugin | @qvac/transcription-parakeet | | @qvac/inference/nmtcpp-translation/plugin | @qvac/translation-nmtcpp | | @qvac/inference/tts-ggml/plugin | @qvac/tts-ggml | | @qvac/inference/ggml-ocr/plugin | @qvac/ocr-ggml | | @qvac/inference/sdcpp-generation/plugin | @qvac/diffusion-cpp | | @qvac/inference/ggml-vla/plugin | @qvac/vla-ggml | | @qvac/inference/ggml-classification/plugin | @qvac/classification-ggml |

Configuration

The engine resolves a qvac.config.js or qvac.config.json from the current working directory, or from the path in QVAC_CONFIG_PATH. The resolved config applies on the first API call.

System resource diagnostics

Use getSystemResources to inspect locally observed CPU, system-memory, GPU, and driver capabilities. Pass sample: true only when you also need a fresh usage sample. Register a model plugin or RPC server provider before requesting diagnostics:

import { registerPlugin, getSystemResources } from '@qvac/inference'
import { llmPlugin } from '@qvac/inference/llamacpp-completion/plugin'

registerPlugin(llmPlugin)

const resources = await getSystemResources({ sample: true })

if (resources.capabilities.memory.totalBytes.status === 'supported') {
  console.log('System memory:', resources.capabilities.memory.totalBytes.value)
}

if (resources.sample?.cpu.status === 'supported') {
  console.log('CPU utilization:', resources.sample.cpu.value)
}

Every metric reports supported, unavailable, unverified, or failed. Supported values include their source and scope. These values are diagnostics; they do not reserve memory or guarantee that a model can be loaded.

Connection lifecycle

unloadModel releases a model but leaves the shared infrastructure — swarm, registry client, corestore — running so a long-lived process survives load/unload cycles. Tear it down explicitly when you are done:

import { close, unloadModel } from '@qvac/inference'

await unloadModel({ modelId })
await close() // release the swarm, registry client, storage-root lock, and registered plugins. Stop owned RPC servers.

close() also clears the plugin registry, so if you keep using the API afterward you must registerPlugin / plugins([...]) again first — otherwise the next call throws PluginsNotRegisteredError.

Custom plugins

Author an engine with definePlugin / defineHandler and register it like any built-in:

import { definePlugin, defineHandler, registerPlugin } from '@qvac/inference'

const myPlugin = definePlugin({
  /* modelType, addonPackage, loadConfigSchema, createModel, handlers */
})

registerPlugin(myPlugin)

License

Apache-2.0