SDK Reference
The BXI SDK gives programmatic control over Anthriq hardware and the BXI Studio backend. Use it to configure channels, seat a headset, verify electrode contact, stream EXG, and run processing pipelines without the BXI Studio interface.
The SDK ships as two packages. @anthriq_dev/bxi-interface talks to one device through the BXI interface bridge. @anthriq_dev/services talks to the backend services that run pipelines and handle recording. Both run in the same process: a typical acquisition application configures hardware and starts a stream with the first, then runs the pipeline that consumes it with the second.
Install
npm install @anthriq_dev/bxi-interface
npm install @anthriq_dev/servicesBoth packages depend on the zeromq native bindings, which npm builds during install. @anthriq_dev/bxi-interface additionally depends on protobufjs for decoding stream frames.
Both are ES modules ("type": "module"). Import them with import, not require.
pip install anthriq-bxi-interface
pip install anthriq-servicesStart here
Go to your device — each page carries its specifications, the features it declares, and a complete runnable setup sequence:
Anthriq Instinct, the motorised headset
xSys, the amplifier with externally wired electrodes
xBud, USB analog acquisition front-end
A feature that only one device has sits under that device: Position the headset under Instinct, Acquire analog input under xBud. The Features pages hold the mechanics that more than one device declares, written once. The Concepts pages explain the model underneath.
Follow the session order
Pages are ordered the way a session runs:
Read device information to learn what the connected device supports.
Configure channels for gain, filtering, and routing.
Measure contact impedance to confirm the electrodes are seated.
Stream EXG, or run parallel streams to watch impedance while recording.
Impedance comes before EXG because that is the order it happens in: confirm contact, then acquire.
Update firmware sits outside that sequence; it is maintenance rather than part of a session. xBud follows its own path entirely, in Acquire analog input.
Read the concepts
Four pages describe behaviour that every task depends on. Reading them first makes the task pages shorter and the failure modes recognisable.
How the SDK talks to a device: the bridge daemon, the transport, and how capabilities are discovered rather than hardcoded.
Device support: which features each device declares.
Stream lifecycle: the six steps every stream follows, and the frame formats.
Impedance measurement: what separates a raw magnitude from an impedance in ohms, and what each conversion needs.
Run the backend services
@anthriq_dev/services covers everything that outlives a single device session:
Record and play back, then Read recording files for the on-disk layout and the marker format.
Last updated
Was this helpful?

