
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
hivannotate_rs_web
Advanced tools
WebAssembly bindings for HIVAnnotate - Annotating HIV transmission networks
A Rust implementation of the HIVCluster algorithm for constructing HIV transmission networks from genetic distance data, and the HIVAnnotate functionality for annotating networks with patient attributes.
# Clone the repository
git clone https://github.com/your-username/hivcluster_rs.git
cd hivcluster_rs
# Build the project
cargo build --release
# Run the binary
./target/release/hivcluster --help
# Process a CSV file
./target/release/hivcluster -i input.csv -t 0.015 -o output.json
# Process a JSON file
./target/release/hivcluster -i input.json -t 0.015 -o output.json
# Get help
./target/release/hivcluster --help
-i, --input: Input file path (CSV or JSON)-t, --threshold: Distance threshold for edge creation-o, --output: Output file path for results-f, --format: Output format (default: JSON)HIVAnnotate allows you to annotate a network with patient attribute data. The annotation process adds patient attributes to the network nodes and includes the attribute schema in the network JSON.
You can use the WebAssembly bindings to annotate networks in both browser and Node.js environments.
This implementation includes WebAssembly bindings for both HIVCluster and HIVAnnotate.
# Build WASM packages for both web and Node.js
./build_wasm.sh
# Create npm packages without publishing
./build_wasm.sh --pack
# Publish packages to npm
./build_wasm.sh --publish
# Install the web package
npm install hivcluster_rs_web
// Import and use the package
import * as hivcluster from 'hivcluster_rs_web';
// Initialize the module
await hivcluster.default();
// Process your data
const result = hivcluster.build_network(csvData, threshold, format);
# Install the Node.js package
npm install hivcluster_rs_node
// Import and use the package
const hivcluster = require('hivcluster_rs_node');
// Process your data
const result = hivcluster.build_network(csvData, threshold, format);
# Install the web package
npm install hivannotate_rs_web
// Import and use the package
import * as hivannotate from 'hivannotate_rs_web';
// Initialize the module
await hivannotate.default();
// Annotate your network
const result = hivannotate.annotate_network_json(
networkJson,
attributesJson,
schemaJson
);
# Install the Node.js package
npm install hivannotate_rs_node
// Import and use the package
const hivannotate = require('hivannotate_rs_node');
// Annotate your network
const result = hivannotate.annotate_network_json(
networkJson,
attributesJson,
schemaJson
);
{
"trace_results": {
"Nodes": [
{"id": "KU190031", "cluster": 1},
{"id": "KU190032", "cluster": 1}
],
"Edges": [
{"source": 0, "target": 1, "distance": 0.01}
]
}
}
[
{
"ehars_uid": "KU190031",
"country": "Canada",
"collectionDate": "2007-01-03"
},
{
"ehars_uid": "KU190032",
"country": "USA",
"collectionDate": "2007-03-23"
}
]
{
"ehars_uid": {
"type": "String",
"label": "Patient ID"
},
"country": {
"type": "String",
"label": "Country"
},
"collectionDate": {
"type": "String",
"label": "Collection Date"
}
}
# Run all tests
cargo test
# Run specific test
cargo test network_test
# Run annotation tests
cargo test annotation_test
FAQs
WebAssembly bindings for HIVAnnotate - Annotating HIV transmission networks
We found that hivannotate_rs_web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.