HPCC-Systems Web-Assembly (JavaScript)
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:
This repository includes comprehensive instructions for AI assistants and GitHub Copilot:
packages/*/ directoriesThis repository is a monorepo with the following packages:
…
v1.x.x
import { graphviz, wasmFolder } from "@hpcc-js/wasm";
wasmFolder("https://cdn.jsdelivr.net/npm/@hpcc-js/wasm/dist");
const dot = "digraph G { Hello -> World }";
graphviz.dot(dot).then((svg) => {
const div = document.getElementById("placeholder");
div.innerHTML = svg;
});
graphvizVersion.then((version) => console.log(version));
v2.x.x
import { Graphviz } from "@hpcc-js/wasm";
const dot = "digraph G { Hello -> World }";
Graphviz.load().then((graphviz) => {
const svg = graphviz.dot(dot);
const div = document.getElementById("placeholder");
div.innerHTML = svg;
console.log(graphviz.version());
});
Notes:
const instance = await .load();v3.x.x
import { Graphviz } from "@hpcc-js/wasm-graphviz";
const dot = "digraph G { Hello -> World }";
Graphviz.load().then((graphviz) => {
const svg = graphviz.dot(dot);
const div = document.getElementById("placeholder");
div.innerHTML = svg;
console.log(graphviz.version());
});
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:
git clone https://github.com/hpcc-systems/hpcc-js-wasm.git
cd hpcc-js-wasm
npm ci
npm run build-docker
git clone https://github.com/hpcc-systems/hpcc-js-wasm.git
cd hpcc-js-wasm
npm ci
npm run install-build-deps
npm run build
暂无开放 Issues,或尚未同步最近议题。