Gathering detailed insights and metrics for onnxjs-node
Gathering detailed insights and metrics for onnxjs-node
Gathering detailed insights and metrics for onnxjs-node
Gathering detailed insights and metrics for onnxjs-node
npm install onnxjs-node
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
12 Stars
36 Commits
4 Branches
1 Contributors
Updated on Mar 08, 2025
Latest Version
1.4.0
Package Id
onnxjs-node@1.4.0
Unpacked Size
14.54 kB
Size
4.49 kB
File Count
6
NPM Version
6.14.4
Node Version
12.18.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
onnxjs-node is a Node.js binding of ONNXRuntime that works seamlessly with ONNX.js.
Install the latest stable version:
npm install onnxjs-node
NOTE: binary files will be pulled from github during the npm install
process.
OS | Arch | CPU/GPU | NAPI version | Node.js version | ONNXRuntime version |
---|---|---|---|---|---|
Windows | x64 | CPU | v3 | v12.0.0+ | v1.4.0 |
Linux | x64 | CPU | v3 | v12.0.0+ | v1.4.0 |
macOS | x64 | CPU | v3 | v12.0.0+ | v1.4.0 |
Windows | x64 | GPU | v3 | v12.0.0+ | v1.4.0 |
Linux | x64 | GPU | v3 | v12.0.0+ | v1.4.0 |
There are 2 options to import onnxjs-node
.
onnxjs
by onnxjs-node
:
1//const onnx = require('onnxjs'); 2const onnx = require('onnxjs-node'); 3 4// use 'onnx' 5// ...
onnxjs-node
:
1const onnx = require('onnxjs'); 2require('onnxjs-node'); // this line can be put on the top as well 3 4// use 'onnx' 5// ...
After onnxjs-node
is imported, the default inference session class of ONNX.js will be overwritten. Any existing ONNX.js code will continue to work and model will run by ONNXRuntime backend.
Coming soon...
After onnxjs-node
is imported, ONNXRuntime backend will be used by default. However, it is possible to fallback to other backend by specifying the session option backendHint
:
1session = new onnx.InferenceSession({backendHint: 'wasm'}); // use WebAssembly backend
Copyright (c) fs-eire. All rights reserved.
Licensed under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
19 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More