Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@quintessential/health-hid

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@quintessential/health-hid

A library for interacting with medical devices over WebHID.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-37.5%
Maintainers
2
Weekly downloads
 
Created
Source

HealthHID

A library for interacting with medical devices over WebHID.


This library is primarily focused around receiving readings from health-related biometric devices.

Usage:

Due to WebHID security-related limitations, users need to explicitly grant the page permission to utilize their devices on every single page load.
As such, users of the library need to manually call ask for a device handle via Device.requestDevice().
Upon receiving access, the device will be automatically opened and ready for use.
Individual devices may then utilize said device handle to interact with the hardware device through the relevant device utils.
Besides returning the actual response, device commands typically log successful output in a text representation.
By default, said output is piped to the console, but a custom data handler may be specified via devHandle.setStrOut(dataHandler).

Example: 👨🏻‍🔬

# Retrieving the active slot's current user ID from a Microlife Blood Pressure Monitor

const userId = await HealthHid.MicrolifeBPM.getUserId(device);
console.log(userId);
> KON14

Demo Dashboard:

git clone git@github.com:Quintessential-SFT/HealthHID.git
cd HealthHID
npm ci
npm run dev

# Navigate to http://localhost:8080

Supported Devices:

Blood Pressure Monitors:

ManufacturerDeviceVendor IDProduct IDNamespace
Microlife*0x4B40x5500MicrolifeBPM

(*) Most Microlife BPM devices utilize the implemented BPA-100 protocol.

Blood Glucose Monitors:

ManufacturerDeviceVendor IDProduct IDNamespace
MicrolifeGlucoTeq0x04D90xB564MicrolifeGlucoTeq
OkBiotechOkMeter0x04D90xB564MicrolifeGlucoTeq

Limitations:

WebHID is currently only supported on Chromium* desktop browsers.

Acknowledgements

🐍 joergmlpts/blood-pressure-monitor

Keywords

FAQs

Package last updated on 17 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc