Gathering detailed insights and metrics for @hpcc-js/wasm
Gathering detailed insights and metrics for @hpcc-js/wasm
Gathering detailed insights and metrics for @hpcc-js/wasm
Gathering detailed insights and metrics for @hpcc-js/wasm
npm install @hpcc-js/wasm
Typescript
Module System
Node Version
NPM Version
wasm: v2.24.3
Updated on Jul 06, 2025
wasm-zstd: v1.3.2
Updated on Jul 06, 2025
wasm-graphviz-cli: v1.4.2
Updated on Jul 06, 2025
wasm-graphviz: v1.9.2
Updated on Jul 06, 2025
wasm-expat: v1.4.2
Updated on Jul 06, 2025
wasm-duckdb: v1.7.2
Updated on Jul 06, 2025
TypeScript (51.61%)
C++ (24.78%)
CMake (13.09%)
JavaScript (4.93%)
HTML (3.63%)
C (1.13%)
Dockerfile (0.43%)
Shell (0.4%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
343 Stars
548 Commits
27 Forks
10 Watchers
9 Branches
12 Contributors
Updated on Jul 06, 2025
Latest Version
2.24.3
Package Id
@hpcc-js/wasm@2.24.3
Unpacked Size
37.93 MB
Size
29.63 MB
File Count
56
NPM Version
lerna/8.2.3/node@v22.16.0+x64 (linux)
Node Version
22.16.0
Published on
Jul 06, 2025
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
This repository contains a collection of useful c++ libraries compiled to WASM for (re)use in Node JS, Web Browsers and JavaScript Libraries:
Built with:
Converted this repository to a monorepo with the following packages:
1import { Base91 } from "@hpcc-js/wasm-base91"; 2import { Graphviz } from "@hpcc-js/wasm-graphviz"; 3import { Zstd } from "@hpcc-js/wasm-zstd"; 4 5// Graphviz --- 6async function dot2svg() { 7 const graphviz = await Graphviz.load(); 8 console.log("svg: ", graphviz.dot('digraph G { Hello -> World }')); 9} 10 11dot2svg(); 12 13// Base91 + Zstd --- 14const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi."; 15const data = new TextEncoder().encode(text); 16 17async function compressDecompress() { 18 const zstd = await Zstd.load(); 19 const compressed_data = zstd.compress(data); 20 const base91 = await Base91.load(); 21 const base91Str = base91.encode(compressed_data); 22 23 const compressed_data2 = base91.decode(base91Str); 24 const data2 = zstd.decompress(compressed_data2); 25 const text2 = new TextDecoder().decode(data2); 26 27 console.log("Text Length: ", text.length); 28 console.log("Compressed Length: ", compressed_data.length); 29 console.log("Base91 Length: ", base91Str.length); 30 console.log("Passed: ", text === text2); 31} 32 33compressDecompress();
v1.x.x
1import { graphviz, wasmFolder } from "@hpcc-js/wasm"; 2 3wasmFolder("https://cdn.jsdelivr.net/npm/@hpcc-js/wasm/dist"); 4 5const dot = "digraph G { Hello -> World }"; 6 7graphviz.dot(dot).then(svg => { 8 const div = document.getElementById("placeholder"); 9 div.innerHTML = svg; 10}); 11 12graphvizVersion.then(version => console.log(version));
v2.x.x
1import { Graphviz } from "@hpcc-js/wasm"; 2 3const dot = "digraph G { Hello -> World }"; 4 5Graphviz.load().then(graphviz => { 6 const svg = graphviz.dot(dot); 7 const div = document.getElementById("placeholder"); 8 div.innerHTML = svg; 9 10 console.log(graphviz.version()); 11});
Notes:
const instance = await <Wasm>.load();
v3.x.x
1import { Graphviz } from "@hpcc-js/wasm-graphviz"; 2 3const dot = "digraph G { Hello -> World }"; 4 5Graphviz.load().then(graphviz => { 6 const svg = graphviz.dot(dot); 7 const div = document.getElementById("placeholder"); 8 div.innerHTML = svg; 9 10 console.log(graphviz.version()); 11});
The following instructions are for building the entire repository from scratch. In general the instructions assume you are running from within a bash terminal.
To get an idea of what pre-requisites are required, please see the following files:
1git clone https://github.com/hpcc-systems/hpcc-js-wasm.git 2cd hpcc-js-wasm 3npm ci 4npm run build-docker
1git clone https://github.com/hpcc-systems/hpcc-js-wasm.git 2cd hpcc-js-wasm 3npm ci 4npm run install-build-deps 5npm run build
No vulnerabilities found.
Reason
26 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
SAST tool is run on all commits
Details
Reason
1 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 1/21 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
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
branch protection not enabled on development/release branches
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