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

openvino-genai-node

v2026.4.1

Published

OpenVINO™ GenAI pipelines for using from Node.js environment

Readme

OpenVINO™ GenAI for Node.js

OpenVINO GenAI

Getting Started • Quick install • AI Scenarios • Documentation • Supported Models

GitHub Release NPM Version OS NPM License

openvino-genai-node brings OpenVINO™ GenAI with the most popular Generative AI model pipelines to Node.js. Run LLMs, VLMs, image and speech generation, and RAG locally with hardware-accelerated inference on top of OpenVINO Runtime.

This library is friendly to PC and laptop execution, and optimized for resource consumption. Prebuilt native addons, the OpenVINO runtime and tokenization are fetched during npm install. You do not need a separate OpenVINO SDK install for typical use.

Key Features and Benefits:

  • 📦 Pre-built Generative AI Pipelines: Ready-to-use pipelines for text generation (LLMs), visual language models (VLMs), image generation (Diffusers), speech recognition (Whisper), and speech generation (SpeechT5). See all supported AI scenarios.
  • 👣 Minimal Footprint: Smaller binary size and reduced memory footprint compared to other frameworks.
  • 📥 Plug-and-play install: Prebuilt native addons and OpenVINO runtime are downloaded on npm install — no manual OpenVINO installation for typical use.
  • 🖥️ In-process inference: Run models directly from Node.js in your application process — no separate inference service or access tokens.
  • 🚀 Performance Optimization: Hardware-specific optimizations for CPU, GPU, and NPU devices. See optimization techniques in the GenAI docs.
  • 👨‍💻 Programming Language Support: APIs aligned with Python/C++ where possible — async functions and ESM.
  • 🗜️ Model Compression: Support for 8-bit and 4-bit weight compression, including embedding layers.
  • 🎓 Advanced Inference Capabilities: In-place KV-cache, dynamic quantization, speculative sampling, and more.
  • 🎨 Wide Model Compatibility: Support for popular models including Llama, Mistral, Phi, Qwen, Stable Diffusion, Flux, Whisper, and others. Refer to the Supported Models for more details.

Quick install

npm install openvino-genai-node

Requirements

Node.js ≥ 21. Refer to the supported platforms for more details.

Supported platforms

| OS | x64 | arm64 | | ------ | ------- | --------- | | Windows | ✅ | ❌ | | Linux | ✅ | ✅ | | macOS | ❌ | ✅ |

Prebuilt binaries are downloaded for your OS/arch during npm install. If a platform is unsupported, installation or loading the native addon will fail — build from source per BUILD.md.

Getting started

Model preparation

Models must be converted to OpenVINO IR (for example with Optimum Intel). See the GenAI documentation for model preparation and supported architectures.

Minimal example (LLM)

Import a pipeline from openvino-genai-node, point it at a prepared model directory, then call generate or stream:

import { LLMPipeline } from "openvino-genai-node";

const modelPath = "/path/to/ov/model"; // directory with OpenVINO IR + tokenizer files
const device = "CPU"; // or "GPU", "NPU" where supported
const config = { max_new_tokens: 100 };

const pipe = await LLMPipeline(modelPath, device);

// One-shot generation
const result = await pipe.generate("What is OpenVINO?", config);
console.log(result);

// Streaming tokens to stdout
for await (const chunk of pipe.stream("What is OpenVINO?", config)) {
  process.stdout.write(chunk);
}

More runnable examples: samples/js.

Supported Generative AI Scenarios

The OpenVINO™ GenAI Node.js package supports the following scenarios (details and model lists are in the linked use-case docs):

Contributing

Contributions are welcome in the openvino.genai repository.

  • Read the project Contributing guide (PR process, code quality, branching).
  • Node.js bindings: build and test locally — BUILD.md (native addon + TypeScript wrapper in src/js).
  • JavaScript changes: from src/js, run npm run lint, npm run build, and npm test (tests require Python 3.10+ and model setup described in BUILD.md).
  • Samples: extend or fix examples under samples/js.
  • Open issues or pull requests on GitHub; use the repository PR template and fork-based workflow described in the contributing guide.

FAQ

Can I use OpenVINO GenAI in the browser?

Not with openvino-genai-node — this package targets Node.js (server-side) only. For in-browser inference, use Transformers.js.

Can I use OpenVINO GenAI for Node.js as an ML inference server?

No. openvino-genai-node does not expose REST or gRPC APIs; it runs models in-process inside your Node.js application. For a dedicated model-serving layer with HTTP/gRPC, deploy OpenVINO Model Server (OVMS) and call it from Node (or other clients).

License

The OpenVINO™ GenAI repository is licensed under Apache License Version 2.0. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.