Catalog npm
PACKAGE EXPLORERView in registry

@0xsarwagya/agnostic-web-ble

npm

Bluetooth Low Energy across web runtimes through one consistent API.

adapterblebluetoothbluetooth-low-energytypescriptweb-bluetooth
Versions collected1
Direct dependencies7From release 0.2.0
Last observed21 Oct, 09:38 UTC

README

Current package documentation

Agnostic Web BLE

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.

Install

pnpm add @0xsarwagya/agnostic-web-ble

First connection

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: [/* ... */] })],
});

Status

Beta. The adapter contract may still change before 1.0.

Documentation

https://oss.sarwagya.wtf/agnostic-web-ble/docs

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.0Registry latest5 Jul 20267

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
0xsarwagya/agnostic-web-ble

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
main
Last push
5 Jul 2026
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

0count
Gauge · observed snapshots24 Oct 2026
10.50
2026-10-24: 0 · observed 2026-10-24T11:33:39.8692976Z
24 Oct24 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2402026-10-24T11:33:39.8692976Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1b59202a259b3a4d0d07362f9a6f15938d3d7fdb62f19edab47a293afb39c6fa