Observed since 21 Oct, 09:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Bluetooth Low Energy across web runtimes through one consistent API.
Bluetooth Low Energy for the web, whatever your browser might be.
A TypeScript library for using Bluetooth Low Energy across web runtimes through one consistent API. Your application knows the device. The adapter knows the runtime.
pnpm add @0xsarwagya/agnostic-web-ble
import { createBluetooth } from "@0xsarwagya/agnostic-web-ble";
import { nativeWebBluetoothAdapter } from "@0xsarwagya/agnostic-web-ble/adapters/native";
const bluetooth = createBluetooth({
adapters: [nativeWebBluetoothAdapter()],
});
const device = await bluetooth.requestDevice({
filters: [{ services: ["180f"] }],
});
const connection = await device.connect();
const service = await connection.getPrimaryService("180f");
const characteristic = await service.getCharacteristic("2a19");
const value = await characteristic.readValue();
console.log("battery level:", value.getUint8(0));
No hardware on hand? The mock adapter runs the same application code deterministically:
import { createMockAdapter } from "@0xsarwagya/agnostic-web-ble/adapters/mock";
const bluetooth = createBluetooth({
adapters: [createMockAdapter({ devices: [/* ... */] })],
});
Beta. The adapter contract may still change before 1.0.
https://oss.sarwagya.wtf/agnostic-web-ble/docs
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0Registry latest | 5 Jul 2026 | 7 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Public sponsor counts have not been collected. These signals belong to the repository owner.
github · 1 observations shown. Missing days are unknown.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-24 | 0 | 2026-10-24T11:33:39.8692976Z |
Observed since 21 Oct, 09:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1b59202a259b3a4d0d07362f9a6f15938d3d7fdb62f19edab47a293afb39c6fa