Skip to content

spt Upstream WASM Packages

This directory contains references and integration bridges for upstream spt WASM packages used by SPTFlo plugins.

Available WASM Packages

PackageCategoryDescription
micro-hnsw-wasmVector SearchUltra-fast HNSW vector similarity search
spt-attention-wasmNeuralFlash attention mechanism (2.49x-7.47x speedup)
spt-gnn-wasmGraphGraph Neural Networks for relationship modeling
spt-hyperbolic-hnsw-wasmEmbeddingsHyperbolic embeddings in Poincaré ball model
spt-learning-wasmLearningReinforcement learning algorithms
spt-nervous-system-wasmCoordinationNeural coordination for multi-agent systems
spt-economy-wasmEconomicsToken economics and resource allocation
spt-exotic-wasmQuantumQuantum-inspired optimization algorithms
spt-sparse-inference-wasmInferenceSparse matrix inference for efficiency
spt-tiny-dancer-wasmInferenceLightweight model inference (<5MB)
spt-mincut-wasmGraphGraph mincut algorithms for partitioning
spt-fpga-transformer-wasmAcceleratedFPGA-accelerated transformer operations
spt-dag-wasmGraphDirected Acyclic Graph processing
cognitum-gate-kernelCognitiveCognitive computation kernels
sonaNeuralSelf-Optimizing Neural Architecture

Upstream Repository

All packages are sourced from: https://github.com/smartpointstech/spt

Plugin Dependencies

PluginPrimary WASM Packages
@sptflo/plugin-healthcare-cdsmicro-hnsw-wasm, spt-gnn-wasm, spt-hyperbolic-hnsw-wasm
@sptflo/plugin-financial-riskmicro-hnsw-wasm, spt-economy-wasm, spt-sparse-inference-wasm
@sptflo/plugin-legal-contractsmicro-hnsw-wasm, spt-attention-wasm, spt-dag-wasm
@sptflo/plugin-code-intelligencemicro-hnsw-wasm, spt-gnn-wasm, spt-mincut-wasm, sona
@sptflo/plugin-test-intelligencespt-learning-wasm, spt-gnn-wasm, sona
@sptflo/plugin-perf-optimizerspt-sparse-inference-wasm, spt-fpga-transformer-wasm
@sptflo/plugin-neural-coordinationsona, spt-nervous-system-wasm, spt-attention-wasm
@sptflo/plugin-cognitive-kernelcognitum-gate-kernel, sona, spt-attention-wasm
@sptflo/plugin-quantum-optimizerspt-exotic-wasm, spt-hyperbolic-hnsw-wasm
@sptflo/plugin-hyperbolic-reasoningspt-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-wasm

Integration 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,
  },
};

Released under the MIT License.