spt Upstream WASM Packages
This directory contains references and integration bridges for upstream spt WASM packages used by SPTFlo plugins.
Available WASM Packages
| Package | Category | Description |
|---|---|---|
micro-hnsw-wasm | Vector Search | Ultra-fast HNSW vector similarity search |
spt-attention-wasm | Neural | Flash attention mechanism (2.49x-7.47x speedup) |
spt-gnn-wasm | Graph | Graph Neural Networks for relationship modeling |
spt-hyperbolic-hnsw-wasm | Embeddings | Hyperbolic embeddings in Poincaré ball model |
spt-learning-wasm | Learning | Reinforcement learning algorithms |
spt-nervous-system-wasm | Coordination | Neural coordination for multi-agent systems |
spt-economy-wasm | Economics | Token economics and resource allocation |
spt-exotic-wasm | Quantum | Quantum-inspired optimization algorithms |
spt-sparse-inference-wasm | Inference | Sparse matrix inference for efficiency |
spt-tiny-dancer-wasm | Inference | Lightweight model inference (<5MB) |
spt-mincut-wasm | Graph | Graph mincut algorithms for partitioning |
spt-fpga-transformer-wasm | Accelerated | FPGA-accelerated transformer operations |
spt-dag-wasm | Graph | Directed Acyclic Graph processing |
cognitum-gate-kernel | Cognitive | Cognitive computation kernels |
sona | Neural | Self-Optimizing Neural Architecture |
Upstream Repository
All packages are sourced from: https://github.com/smartpointstech/spt
Plugin Dependencies
| Plugin | Primary WASM Packages |
|---|---|
@sptflo/plugin-healthcare-cds | micro-hnsw-wasm, spt-gnn-wasm, spt-hyperbolic-hnsw-wasm |
@sptflo/plugin-financial-risk | micro-hnsw-wasm, spt-economy-wasm, spt-sparse-inference-wasm |
@sptflo/plugin-legal-contracts | micro-hnsw-wasm, spt-attention-wasm, spt-dag-wasm |
@sptflo/plugin-code-intelligence | micro-hnsw-wasm, spt-gnn-wasm, spt-mincut-wasm, sona |
@sptflo/plugin-test-intelligence | spt-learning-wasm, spt-gnn-wasm, sona |
@sptflo/plugin-perf-optimizer | spt-sparse-inference-wasm, spt-fpga-transformer-wasm |
@sptflo/plugin-neural-coordination | sona, spt-nervous-system-wasm, spt-attention-wasm |
@sptflo/plugin-cognitive-kernel | cognitum-gate-kernel, sona, spt-attention-wasm |
@sptflo/plugin-quantum-optimizer | spt-exotic-wasm, spt-hyperbolic-hnsw-wasm |
@sptflo/plugin-hyperbolic-reasoning | spt-hyperbolic-hnsw-wasm, spt-attention-wasm |
Installation
bash
# Install specific WASM bridges
npm install @smartpointstech/micro-hnsw-wasm
npm install @smartpointstech/attention-wasm
npm install @smartpointstech/gnn-wasmIntegration Pattern
typescript
import { initMicroHnsw } from '@smartpointstech/micro-hnsw-wasm';
import { FlashAttention } from '@smartpointstech/attention-wasm';
// Initialize WASM modules
const hnsw = await initMicroHnsw();
const attention = await FlashAttention.init();
// Use in SPTFlo plugin
export const plugin: SptFlowPlugin = {
name: '@sptflo/plugin-example',
bridges: {
hnsw,
attention,
},
};