🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@wklm/profiles

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wklm/profiles

Pre-built BLE device profiles — heart rate, battery, device info. Typed parsers for Bluetooth GATT characteristics

latest
Source
npmnpm
Version
1.0.0-beta.1
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

@wklm/profiles

Pre-built BLE device profiles -- heart rate, battery, device info. Typed parsers for Bluetooth GATT characteristics.

Install

npm install @wklm/profiles @wklm/core

Usage

import { WebBLE } from '@wklm/core';
import { HeartRateProfile } from '@wklm/profiles';

const ble = new WebBLE();
const device = await ble.requestDevice({ filters: [{ services: ['heart_rate'] }] });

const hr = new HeartRateProfile(device);
await hr.connect();

hr.onHeartRate((data) => {
  console.log(`${data.bpm} BPM, contact: ${data.contact}`);
  console.log('RR intervals:', data.rrIntervals);
});

const location = await hr.readSensorLocation(); // 0=Other, 1=Chest, 2=Wrist
hr.stop(); // unsubscribe all

Available profiles

  • HeartRateProfile -- onHeartRate(cb), readSensorLocation(), resetEnergyExpended()
  • BatteryProfile -- battery level reads and notifications
  • DeviceInfoProfile -- manufacturer, model, firmware, serial number
  • defineProfile(config) -- factory to create custom profiles with typed parsers

AI agent integration

MCP server for coding agents (Claude Code, Cursor, Copilot):

npx -y @wklm/mcp

Full SDK reference for LLM context: https://ioswebble.com/llms-full.txt

Two scopes

The @wklm/* packages (core, profiles, react) are the cross-browser BLE SDK -- they work on any platform with Web Bluetooth support (Chrome, Edge, iOS Safari via the extension). The @wklm/* packages (detect, cli, mcp, skill) handle iOS-specific extension detection, install prompts, and agent tooling. Use both together for full iOS Safari coverage.

Keywords

bluetooth

FAQs

Package last updated on 06 Mar 2026

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