How saehm/druidjs works
DruidJS is a JavaScript data-analysis library whose main workflow is to turn input data into a Matrix, run a dimensionality-reduction method, and return a lower-dimensional embedding. Its public API also exposes clustering, nearest-neighbor indices, metrics, and matrix operations. The graph preserves these documented capabilities and shows selected internal math and WebAssembly layers. Relationships are limited to those supported by the README or the supplied excerpts and source index; unsampled algorithms are represented at their existing directory paths.
Main entry points: Matrix.js Matrix Data · index.js Public Exports · PaCMAP.js PaCMAP · UMAP.js UMAP
Components 20
Public API
- Public Exports
src/index.js
Dimensionality Reduction
- DR Framework
src/dimred/DR.js - Reduction Methods
src/dimred - PCA
src/dimred/PCA.js - MDS
src/dimred/MDS.js - UMAP
src/dimred/UMAP.js - PaCMAP
src/dimred/PaCMAP.js
Data Analysis
- Neighbor Indices
src/knn - HNSW
src/knn/HNSW.js - Clustering Algorithms
src/clustering - Clustering Base
src/clustering/Clustering.js - K-Means
src/clustering/KMeans.js
Numerical Foundations
- Matrix Data
src/matrix/Matrix.js - Distance Metrics
src/metrics - Linear Algebra
src/linear_algebra - Randomizer
src/util/randomizer.js - Spanning Tree
src/util/minimum_spanning_tree.js
WebAssembly Acceleration
- Wasm Runtime
src/wasm/index.js - Wasm Thresholds
src/wasm/thresholds.js
Other components
- Library User
Connections 30
- Library User → Public Exports: imports
- Public Exports → Matrix Data: exports
src/index.js - Public Exports → Reduction Methods: exports
src/index.js - Public Exports → Clustering Algorithms: exports
src/index.js - Public Exports → Neighbor Indices: exports
src/index.js - Library User → Matrix Data: creates input
- Library User → Reduction Methods: selects method
- Reduction Methods → DR Framework: extends framework
src/dimred/PaCMAP.js - Library User → PCA: runs transform
- Library User → UMAP: runs transform
- Library User → PaCMAP: runs transform
- Library User → MDS: runs transform
- UMAP → Matrix Data: uses data
src/dimred/UMAP.js - UMAP → Neighbor Indices: uses indices
src/dimred/UMAP.js - UMAP → Wasm Runtime: calls kernels
src/dimred/UMAP.js - PaCMAP → Matrix Data: uses data
src/dimred/PaCMAP.js - PaCMAP → PCA: initializes with
src/dimred/PaCMAP.js - PaCMAP → MDS: initializes with
src/dimred/PaCMAP.js - PaCMAP → Neighbor Indices: queries neighbors
src/dimred/PaCMAP.js - HNSW → Neighbor Indices: implements index
src/knn/index.js - Clustering Algorithms → Clustering Base: exports base
src/clustering/index.js - Clustering Algorithms → K-Means: exports algorithm
src/clustering/index.js - K-Means → Matrix Data: processes data
- Matrix Data → Linear Algebra: uses eigen solver
src/matrix/Matrix.js - Matrix Data → Randomizer: uses generator
src/matrix/Matrix.js - Matrix Data → Wasm Thresholds: checks thresholds
src/matrix/Matrix.js - Matrix Data → Wasm Runtime: calls kernels
src/matrix/Matrix.js - Wasm Runtime → Wasm Thresholds: configures dispatch
- Library User → Clustering Algorithms: runs algorithm
- Library User → HNSW: searches neighbors