Registry / testing / device-decoder.third-party

device-decoder.third-party

JSON →
library0.4.6jsnpmunverified

Barebones esbuild and test node server implementation for building. Current stable version 0.4.6. This package provides drivers for ganglion (using openbci library), muse, and webgazer. It is a minimal, experimental library for decoding device data, primarily for building and testing. No active release cadence; likely maintenance mode. Differentiator: lightweight esbuild-focused tooling for third-party device drivers, but known instability with ganglion driver.

npm install device-decoder.third-party
INSTALL
IMPORT
SIG · DEVICE-DECODER.THI
D
device-decoder.third-party
testingjavascriptv0.4.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import DeviceDecoder from 'device-decoder.third-party'
const DeviceDecoder = require('device-decoder.third-party')
Package may be ESM-only; CommonJS require may fail.
Ganglion
import { Ganglion } from 'device-decoder.third-party'
const { Ganglion } = require('device-decoder.third-party')
Named export; CommonJS destructuring may not work if package is ESM-only.
Muse
import { Muse } from 'device-decoder.third-party'
import Muse from 'device-decoder.third-party'
Muse is a named export, not default.
Webgazer
import { Webgazer } from 'device-decoder.third-party'
const webgazer = require('device-decoder.third-party').Webgazer
Named export; use named import syntax for tree-shaking.

Shows how to import and connect a Ganglion device using the openbci-based driver.

import { Ganglion } from 'device-decoder.third-party' const ganglion = new Ganglion() ganglion.connect() .then(() => console.log('Connected')) .catch(err => console.error(err)) // Note: ganglion driver uses openbci library and may be unstable.
Debug
Known issues
breakingGanglion driver switched from neurosity library to openbci library. Existing code using neurosity-based driver will break.
fix
Update to use openbci-compatible API or stay on older version <0.4.0.
affects: >=0.4.0
gotchaWebgazer driver may require additional setup for browser environment; not Node.js compatible.
fix
Use webgazer in a browser context with appropriate polyfills.
affects: all
gotchaPackage is minimal and may lack extensive error handling. Unhandled promise rejections possible.
fix
Wrap calls in try-catch and handle errors explicitly.
affects: all
Errors
Common errors & fixes
Cannot find module 'device-decoder.third-party'
Package not installed or misspelled.
fix
npm install device-decoder.third-party
Ganglion is not a constructor
Incorrect import: using default import instead of named import.
fix
import { Ganglion } from 'device-decoder.third-party'
require is not defined in ES module scope
Using CommonJS require in an ESM project.
fix
Use import syntax instead of require.
Upgrade
Version history
0.4.6latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
device-decoder.third-party — npm install device-decoder.third-party · libregistry