Skip to main content

Crate chematic_wasm

Crate chematic_wasm 

Source
Expand description

chematic-wasm — WebAssembly bindings for the chematic cheminformatics library.

Exposes a small, ergonomic API for parsing SMILES and computing molecular descriptors from JavaScript/TypeScript via wasm-bindgen.

Structs§

MolHandle
A handle to a parsed molecule. Owns the molecule behind an Rc so that it can be cheaply cloned on the JS side without copying atom/bond data.

Functions§

ecfp4_bitvec
Compute the ECFP4 fingerprint as a bit-packed byte vector (256 bytes = 2048 bits).
parse_smiles
Parse a SMILES string into a MolHandle.
tanimoto_ecfp4
Tanimoto similarity between two molecules using ECFP4 fingerprints.