npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@elata-biosciences/eeg-web

v0.1.2

Published

Web wrapper for the Elata EEG WASM bindings

Downloads

145

Readme

@elata-biosciences/eeg-web

Web wrapper for the Elata EEG WASM bindings. This package provides a simple init function and re-exports the generated WASM APIs.

Package intent

@elata-biosciences/eeg-web is intentionally a thin wrapper:

  • dist/index.js / dist/index.d.ts are small on purpose
  • they provide init helpers and re-export the generated WASM module
  • the full API surface is generated by wasm-bindgen

Install

Using pnpm (recommended):

pnpm add @elata-biosciences/eeg-web

Using npm:

npm install @elata-biosciences/eeg-web

Requirements

  • Node.js >= 18 for server-side usage.
  • Modern browser with WebAssembly support for in-browser usage.

Device support

@elata-biosciences/eeg-web itself does not implement Bluetooth device connection logic. It exposes WASM APIs that can be used with data from supported integrations (for example, eeg-demo).

Current supported EEG headband integrations in this repo:

  • Muse 2 / Muse S (classic BLE, 4 EEG channels: TP9, AF7, AF8, TP10)
  • Muse S Athena (protocol v2, 8 EEG channels)
  • Synthetic Muse-compatible BLE bridge (Muse-Synthetic) for testing

Usage

import { initEegWasm, band_powers } from "@elata-biosciences/eeg-web";

await initEegWasm();
const powers = band_powers(eegData, 256);
console.log(powers.alpha);

Key exports

  • initEegWasm / initEegWasmSync – helpers to initialize the underlying WASM module.
  • band_powers, WasmAlphaBumpDetector, WasmAlphaPeakModel, WasmCalmnessModel, AthenaWasmDecoder – core signal and model APIs re-exported from the generated WASM bindings.

Build and sync WASM

From the repo root:

./run.sh build eeg

This builds eeg-wasm, runs wasm-bindgen, syncs generated WASM files into packages/eeg-web/wasm, and builds the TypeScript package.

Release Notes

For package publishing, release order, dist-tags (next/latest), and recovery from bad releases, see docs/releasing.md.

TypeScript layout

  • src/*.ts: source code edited in this repo
  • dist/*.js: emitted runtime files used by consumers
  • dist/*.d.ts: emitted type declarations used by TypeScript consumers
  • wasm/*: generated wasm-bindgen artifacts re-exported by this package

When consuming @elata-biosciences/eeg-web, TypeScript resolves types from dist/index.d.ts and runtime code from dist/index.js.

Where the API is defined

The full exported API (for example band_powers, WasmAlphaBumpDetector, WasmAlphaPeakModel, WasmCalmnessModel, AthenaWasmDecoder) comes from:

  • packages/eeg-web/wasm/eeg_wasm.js (runtime)
  • packages/eeg-web/wasm/eeg_wasm.d.ts (types)

src/index.ts re-exports everything from that module so consumers can import from @elata-biosciences/eeg-web directly.