npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tempivo/sensor-beacon

v0.1.1

Published

Tempivo sensor BLE beacon SDK: TypeScript decoder plus iOS and Android scan libraries. Advertising only, no GATT.

Readme

@tempivo/sensor-beacon

Tempivo partner SDK for BLE advertising from Tempivo sensors (manufacturer id 0x026C). No GATT connection.

One npm package:

| Path | Use | |------|-----| | dist/ | Node / TypeScript decoder | | android/ + dist/tempivo-sensor-beacon.aar | Android scan + decode | | ios/ | iOS Swift Package (scan + decode) |

npm install @tempivo/sensor-beacon

Node / TypeScript

Node.js 18+. Import from the package root:

import {
  TEMPVO_SENSOR_MANUFACTURER_ID,
  normalizeManufacturerBytes,
  decodeSensorBeaconPayload,
} from '@tempivo/sensor-beacon';

const reading = decodeSensorBeaconPayload(normalizeManufacturerBytes(rawBytes));

Many stacks return manufacturer bytes without the 2-byte company id (6C 02). Use normalizeManufacturerBytes when needed.

Frame cache (0x03 + 0x04)

FW6 devices split meta (advertisement) and measurements (scan response):

import {
  createSensorBeaconFrameCache,
  ingestManufacturerPayload,
  buildSensorBeaconReading,
  macKeyFromAddress,
} from '@tempivo/sensor-beacon';

const cache = createSensorBeaconFrameCache();
const macKey = macKeyFromAddress('28:2C:02:4F:00:12');
ingestManufacturerPayload(advPayload, macKey, cache);
ingestManufacturerPayload(scanPayload, macKey, cache);
const reading = buildSensorBeaconReading(cache.last03.get(macKey), cache.last04.get(macKey));

TypeScript API

| Export | Purpose | |--------|---------| | TEMPVO_SENSOR_MANUFACTURER_ID | BLE company id 0x026c | | normalizeManufacturerBytes | Strip company id prefix when present | | decodeSensorBeaconPayload | One-shot decode | | ingestManufacturerPayload | Update frame cache | | buildSensorBeaconReading | Merge cached frames | | SensorBeaconReading | Parsed device + measurements |

Measurement types 0x01–0x22 decode to human-readable text on each slot.

Android

Published artifact: dist/tempivo-sensor-beacon.aar (built before npm publish).

// app/build.gradle.kts
dependencies {
    implementation(
        files(
            "${rootProject.projectDir}/../node_modules/@tempivo/sensor-beacon/dist/tempivo-sensor-beacon.aar",
        ),
    )
}

Adjust the path to your node_modules layout.

import com.tempivo.sensor.beacon.TempivoSensorBeaconScanner

val scanner = TempivoSensorBeaconScanner(context)
scanner.startScan { device ->
    // device.serialNumber, device.rssi, device.telemetry, device.summary
}

Declare and request BLUETOOTH_SCAN (API 31+) or location permissions for legacy APIs.

iOS

  1. File → Add Package Dependencies… → Add Local…
  2. Path: node_modules/@tempivo/sensor-beacon/ios
  3. Add product TempivoSensorBeacon
  4. Set NSBluetoothAlwaysUsageDescription in Info.plist
import TempivoSensorBeacon

final class ScanHost: NSObject, TempivoSensorBeaconScannerDelegate {
    private let scanner = TempivoSensorBeaconScanner()

    override init() {
        super.init()
        scanner.delegate = self
    }

    func start() { scanner.startScanning() }

    func sensorBeaconScanner(_ scanner: TempivoSensorBeaconScanner, didDiscover discovery: SensorBeaconDiscovery) {
        print(discovery.serialNumber ?? discovery.deviceId, discovery.reading?.summary ?? "")
    }
}

Requires iOS 15+. Use a physical device for BLE.

Build locally

npm run build:ts          # dist/ only
npm run build:android     # requires Android SDK
npm run build:all         # both

License

MIT