When To Use This Package
Use@elata-biosciences/eeg-web when your app needs:
- EEG analysis APIs in the browser
- shared EEG web contracts used by higher-level integrations
- browser-side access to Elata WASM models and signal-processing helpers
@elata-biosciences/eeg-web-ble if you also need live Muse-compatible browser transport.
Installation
WASM Initialization
Before using any signal processing or model APIs, initialize the WASM module:initEegWasm is idempotent. Calling it multiple times returns the same promise. For synchronous initialization (e.g., in a Web Worker):
Basic Usage
Compute band powers from EEG data:Package Structure
@elata-biosciences/eeg-web is a thin TypeScript wrapper around WASM bindings generated by wasm-bindgen:
initEegWasm/initEegWasmSync: WASM initialization helpers- Headband frame types: normalized data schema for EEG transports
- All WASM APIs: re-exported from the generated bindings
Key Exports
initEegWasminitEegWasmSyncband_powersWasmAlphaBumpDetectorWasmAlphaPeakModelWasmCalmnessModelAthenaWasmDecodercreateRppgPipeline
Generated
wasm-bindgen exports are re-exported for compatibility and SDK debugging. Avoid instantiating generated wrappers directly unless you are intentionally debugging the SDK itself.Next
Choose A Package
Not sure if this is the right package? See the decision guide.
Add EEG to an Existing App
Step-by-step integration tutorial
Signal Processing
Band powers, FFT, spectrum analysis
Models
Alpha bump detection, calmness scoring
Headband Transport
Frame schema and transport interface