OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[OV JS] Update NPM README (#36665)
Kirill Suvorov5daeb6fef317
diff --git a/README.md b/README.mdindex fd55d34480a..a1a663a1729 100644--- a/README.md+++ b/README.md@@ -10,6 +10,7 @@ Open-source software toolkit for optimizing and deploying deep learning models.</p>[](https://badge.fury.io/py/openvino)+[](https://www.npmjs.com/package/openvino-node)[](https://anaconda.org/conda-forge/openvino)[](https://formulae.brew.sh/formula/openvino)diff --git a/docs/articles_en/about-openvino/release-notes-openvino/system-requirements.rst b/docs/articles_en/about-openvino/release-notes-openvino/system-requirements.rstindex 67d78e8edb1..26cdfca07b8 100644--- a/docs/articles_en/about-openvino/release-notes-openvino/system-requirements.rst+++ b/docs/articles_en/about-openvino/release-notes-openvino/system-requirements.rst@@ -35,7 +35,7 @@ CPU* Ubuntu 24.04 long-term support (LTS), 64-bit (Kernel 6.8+)* Ubuntu 22.04 long-term support (LTS), 64-bit (Kernel 5.15+)* Ubuntu 20.04 long-term support (LTS), 64-bit (Kernel 5.15+)- * macOS 12.6 and above, 64-bit and ARM64+ * macOS 12.6 and above, ARM64* CentOS 7* Red Hat Enterprise Linux (RHEL) 8 and 9, 64-bit* openSUSE Tumbleweed, 64-bit and ARM64diff --git a/docs/articles_en/openvino-workflow-generative/ov-tokenizers.rst b/docs/articles_en/openvino-workflow-generative/ov-tokenizers.rstindex c836eb52e99..c86fb2d41ed 100644--- a/docs/articles_en/openvino-workflow-generative/ov-tokenizers.rst+++ b/docs/articles_en/openvino-workflow-generative/ov-tokenizers.rst@@ -160,12 +160,6 @@ You can use converted tokenizers in C++ pipelines with prebuild binaries.<openvino_dir>\runtime\bin\intel64\Release\- .. tab-item:: MacOS_x86-- .. code-block:: sh-- <openvino_dir>/runtime/lib/intel64/Release-.. tab-item:: MacOS_arm64.. code-block:: shdiff --git a/docs/articles_en/openvino-workflow/deployment-locally/local-distribution-libraries.rst b/docs/articles_en/openvino-workflow/deployment-locally/local-distribution-libraries.rstindex 3b8638cca0b..5f51fe180e8 100644--- a/docs/articles_en/openvino-workflow/deployment-locally/local-distribution-libraries.rst+++ b/docs/articles_en/openvino-workflow/deployment-locally/local-distribution-libraries.rst@@ -113,15 +113,6 @@ Refer to the table below for details:| Arm® CPU | — | — |+--------------+-------------------------+-------------------------------------------------------+- .. tab-item:: macOS x86_64- :sync: macos-x86-64-- +--------------+-------------------------+-------------------------------------------------------+- | Device | Dependency | Location |- +==============+=========================+=======================================================+- | CPU | — | — |- +--------------+-------------------------+-------------------------------------------------------+-Libraries for Execution Modesdiff --git a/src/bindings/js/node/README.md b/src/bindings/js/node/README.mdindex 222f96e6707..fdec557349b 100644--- a/src/bindings/js/node/README.md+++ b/src/bindings/js/node/README.md@@ -1,57 +1,114 @@-# OpenVINO™ Node.js Bindings+# OpenVINO™ for Node.js-Use OpenVINO to deploy deep learning models easily in Node.js applications.+<div align="center">-## Introduction+-OpenVINO™ is an open-source toolkit designed for high-performance deep learning inference. Node.js-API provides bindings to subset APIs from OpenVINO Runtime. The Node.js bindings enable JavaScript-developers to use the capabilities of OpenVINO in their applications.+[<b>Quick install</b>](#quick-install) •+[<b>Getting Started</b>](#getting-started) •+[<b>Use Cases</b>](#example-use-cases) •+[<b>Documentation</b>](https://docs.openvino.ai/2026/api/nodejs_api/nodejs_api.html) •+[<b>Samples</b>](https://github.com/openvinotoolkit/openvino/blob/master/samples/js/node/README.md)-## Quick Start+[](https://www.npmjs.com/package/openvino-node?activeTab=versions)+[](#supported-platforms)+[](#license)-Install the **openvino-node** package:+</div>++**openvino-node** brings the [**OpenVINO™ Runtime**](https://docs.openvino.ai/) to **Node.js**. Deploy deep learning models with high-performance, hardware-accelerated inference directly from JavaScript and TypeScript applications. The package provides bindings to a subset of the OpenVINO Runtime API.++Prebuilt native addons and the OpenVINO runtime are fetched during `npm install`. You do not need a separate OpenVINO SDK installation for typical use.++## Key Features and Benefits:+ - 📦 Ready-to-use Runtime: Read, compile, and run OpenVINO IR, ONNX, TensorFlow, TFLite, and PaddlePaddle models directly from Node.js.+ - 📥 Plug-and-play install: Prebuilt native addons and the OpenVINO runtime are downloaded on `npm install` — no manual OpenVINO installation for typical use.+ - 🖥️ In-process inference: Run models directly inside your Node.js application process — no separate inference service or access tokens.+ - 🚀 Performance Optimization: Hardware-specific optimizations for CPU, GPU, and NPU devices, with synchronous and asynchronous inference.+ - 👨💻 Programming Language Support: API aligned with the OpenVINO Python/C++ APIs where possible, with TypeScript type definitions included.+ - 🧰 Preprocessing Support: Built-in pre/post-processing (layout, resize, element type conversion) via `PrePostProcessor`.++## Example use cases++**openvino-node** can run any model supported by OpenVINO Runtime. The following tasks are demonstrated by the bundled samples and notebooks:++- [Image classification](https://github.com/openvinotoolkit/openvino/tree/master/samples/js/node/hello_classification) - Recognize the main object in an image.+- [Asynchronous inference](https://github.com/openvinotoolkit/openvino/tree/master/samples/js/node/classification_sample_async) - Run multiple inference requests in parallel for higher throughput.+- [Object detection](https://github.com/openvinotoolkit/openvino/tree/master/samples/js/node/hello_reshape_ssd) - Detect and localize objects with bounding boxes (SSD), including model reshaping.+- [Optical character recognition (OCR)](https://github.com/openvinotoolkit/openvino/tree/master/samples/js/node/optical_character_recognition) - Detect and recognize text in images.+- [Image segmentation & background removal](https://github.com/openvinotoolkit/openvino/tree/master/samples/js/node/vision_background_removal) - Produce per-pixel masks to segment or remove the background.+- [Semantic segmentation](https://github.com/openvinotoolkit/openvino/blob/master/samples/js/node/notebooks/hello-segmentation.nnb) - Classify each pixel of an image into a category.+- [Pose estimation](https://github.com/openvinotoolkit/openvino/blob/master/samples/js/node/notebooks/pose-estimation.nnb) - Estimate human body keypoints.+- [Question answering (NLP)](https://github.com/openvinotoolkit/openvino/blob/master/samples/js/node/notebooks/question-answering.nnb) - Answer questions about a given text context.++## Quick install```bashnpm install openvino-node```-Use the **openvino-node** package:-```jsconst { addon: ov } = require("openvino-node");```-Refer to the complete description of the `addon` API in the-[documentation](https://docs.openvino.ai/2026/api/nodejs_api/addon.html).+## Requirements-See the [samples](https://github.com/openvinotoolkit/openvino/blob/master/samples/js/node/README.md)-for more details on how to use it.+Node.js **≥ 21**. Refer to the [supported platforms](#supported-platforms) for more details.-## Usage in Electron applications+## Supported platforms-To use the package in development of Electron applications on Windows, make sure that **Desktop-development with C++** component from-[Build Tools for Visual Studio](https://aka.ms/vs/17/release/vs_BuildTools.exe) is installed.+| **OS** | **x86** | **ARM** |+| ------ | ------- | ------- |+| **Windows** | ✅ | ❌ |+| **Linux** | ✅ | ✅ |+| **macOS** | ❌ | ✅ |-## Supported Platforms+Prebuilt binaries are downloaded for your OS/arch during `npm install`. If a platform is unsupported, you can build from source per the [JavaScript API Developer Documentation](https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/docs/README.md#openvino-node-package-developer-documentation).-- Windows x86-- Linux x86/ARM-- MacOS x86/ARM+## Getting started-## Documentation & Samples+### Model preparation-- [OpenVINO™ Node.js API](https://docs.openvino.ai/2026/api/nodejs_api/nodejs_api.html)-- [OpenVINO™ Node.js Bindings Examples of Usage](https://github.com/openvinotoolkit/openvino/blob/master/samples/js/node/README.md)+OpenVINO works best with models converted to **OpenVINO IR** (for example with [Optimum Intel](https://github.com/huggingface/optimum-intel) or `ovc`). ONNX, TensorFlow, TFLite, and PaddlePaddle models can also be read directly. See the [model preparation documentation](https://docs.openvino.ai/2026/openvino-workflow/model-preparation.html) for more details.-## Live Sample+### Minimal example++Initialize the runtime `Core`, read a model, compile it for a device, and run inference:++```js+const { addon: ov } = require("openvino-node");-You can run the following sample in the browser, no installation is required.-[Codesandbox](https://codesandbox.io/) is a free online service with limited resources. For optimal-performance and more control, it is recommended to run the sample locally.+async function main() {+ const core = new ov.Core(); // OpenVINO's starting point, one Core instance per application-- [hello-classification-sample](https://codesandbox.io/p/devbox/openvino-node-hello-classification-sample-djl893)+ // Read and compile a model (OpenVINO IR, ONNX, TF, TFLite, or Paddle)+ const compiledModel = await core.compileModel("/path/to/model.xml", "CPU");++ // Allocate an input tensor (fill it with real input data for your model)+ const input = compiledModel.inputs[0];+ const inputTensor = new ov.Tensor(ov.element.f32, input.shape);++ // Create an infer request and run inference+ const inferRequest = compiledModel.createInferRequest();+ const result = inferRequest.infer([inputTensor]);+ // Read the output+ console.log(result[compiledModel.outputs[0]].data);++}++main();+```++Refer to the complete description of the `addon` API in the+[documentation](https://docs.openvino.ai/2026/api/nodejs_api/addon.html).++More runnable examples are available in the [**OpenVINO Node.js samples**](https://github.com/openvinotoolkit/openvino/blob/master/samples/js/node/README.md).++## Usage in Electron applications++To use the package in development of Electron applications on Windows, make sure that the **Desktop+development with C++** component from+[Build Tools for Visual Studio](https://aka.ms/vs/17/release/vs_BuildTools.exe) is installed.## Build From Sources@@ -64,13 +121,7 @@ Contributions are always welcome! Read the[Contribution Guide](https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/js/node/CONTRIBUTING.md)to learn how you can get involved.-## See Also--- [OpenVINO™ README](https://github.com/openvinotoolkit/openvino/blob/master/README.md)-- [OpenVINO™ Core Components](https://github.com/openvinotoolkit/openvino/blob/master/src/README.md)-- [OpenVINO™ Python API](https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/python/README.md)-- [OpenVINO™ Other Bindings](https://github.com/openvinotoolkit/openvino/blob/master/src/bindings/README.md)--[License](https://github.com/openvinotoolkit/openvino/blob/master/LICENSE)+## License-Copyright © 2018-2026 Intel Corporation+The OpenVINO™ repository is licensed under [Apache License Version 2.0](https://github.com/openvinotoolkit/openvino/blob/master/LICENSE).+By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.diff --git a/src/bindings/js/node/package.json b/src/bindings/js/node/package.jsonindex b7ecae05f6a..2648a0a08eb 100644--- a/src/bindings/js/node/package.json+++ b/src/bindings/js/node/package.json@@ -1,7 +1,7 @@{"name": "openvino-node","version": "2026.3.0",- "description": "OpenVINO™ utils for using from Node.js environment",+ "description": "OpenVINO™ Runtime for Node.js: high-performance deep learning inference on Intel CPU, GPU, and NPU.","repository": {"url": "git+https://github.com/openvinotoolkit/openvino.git","type": "git"@@ -55,17 +55,17 @@"host": "https://storage.openvinotoolkit.org"},"keywords": [- "OpenVINO","openvino","openvino-node",- "openvino npm",- "openvino binding",- "openvino node.js",- "openvino library",- "intel openvino",- "openvino toolkit",- "openvino API",- "openvino SDK",- "openvino integration"+ "intel",+ "inference",+ "deep-learning",+ "machine-learning",+ "neural-network",+ "computer-vision",+ "ai",+ "ml",+ "nodejs",+ "typescript"]}diff --git a/src/bindings/js/node/scripts/lib/binary-manager.js b/src/bindings/js/node/scripts/lib/binary-manager.jsindex cdf790cbb58..4ff7f831a56 100644--- a/src/bindings/js/node/scripts/lib/binary-manager.js+++ b/src/bindings/js/node/scripts/lib/binary-manager.js@@ -141,7 +141,7 @@ class BinaryManager {* Checks if the current platform and architecture are compatible.** Supported platforms: 'win32', 'linux', 'darwin'.- * Supported architectures: 'arm64', 'armhf', 'x64'.+ * Supported architectures: 'arm64', 'x64'.** If the platform or architecture is not supported, an error message* is logged to the console.@@ -158,12 +158,15 @@ class BinaryManager {const arch = os.arch();- if (!["arm64", "armhf", "x64"].includes(arch))+ if (!["arm64", "x64"].includes(arch))missleadings.push(`Architecture '${arch}' is not supported.`);if (platform === "win32" && arch !== "x64")missleadings.push(`Version for windows and '${arch}' is not supported.`);+ if (platform === "darwin" && arch !== "arm64")+ missleadings.push(`Version for macOS and '${arch}' is not supported.`);+if (missleadings.length) {console.error(missleadings.join(" "));