Skip to main content

Installation

Requirements: Node.js 18+, browser with WebAssembly support.

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
The full API surface includes signal processing functions, analysis models, and the Athena decoder. See the following pages for details:

Signal Processing

Band powers, FFT, spectrum analysis

Models

Alpha bump detection, calmness scoring

Headband Transport

Frame schema and transport interface