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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kabbi/ble-mesh

v1.0.7

Published

This is **VERY EXPERIMENTAL**, **WORK IN PROGRESS** implementation of BLE Mesh v1.0 specification on top of `noble` library, allowing it to work on PCs, Macs and Raspberry PIs.

Downloads

12

Readme

ble-mesh

This is VERY EXPERIMENTAL, WORK IN PROGRESS implementation of BLE Mesh v1.0 specification on top of noble library, allowing it to work on PCs, Macs and Raspberry PIs.

Try it now (if you have provisioned mesh network):

cp ./keychain.json.example ./keychain.json
vi ./keychain.json # Add your mesh keys here
DEBUG=app:* npm run blink 0x0001 # Specify the target device with Generic OnOff model here
# Voila, the blink should commence

Working features:

  • basic mesh crypto
  • handling segmented incoming messages
  • sending and receiving generic on-off messages

TODO:

  • node provisioning (it's easier to do that with mobile app anyway)
  • handling segmented outgoing messages
  • figure out seq numbers saving and restoring
  • better api for high-level mesh operations
  • web bluetooth support and demo app
  • node and element discovery

Development

This project is using flow for static type checking and jest to ensure everything works as expected. Run npm test -- --watch anytime you want to change something.

I was mostly using Nordic nRF Mesh app to provision and test my devices, and to capture network packet dump to test my implementation. Thank you, Nordic team!

Interesting code places:

  • src/layers/*.js - low-level mesh network layers implementation, handling binary parsing, security, etc.
  • src/layers-e2e.test.js - example of end-to-end usage: message sending and receiving
  • src/models/*.js - model message definitions, add your vendor and sig models here
  • src/utils/mesh-crypto.js - main crypto implementation
  • src/packets.js - base packet structure definitions
  • decrypt.js - simple tool to decrypt received messages, useful for debugging

ToDo:

  • move some things between layers
  • network discovery
  • proxy control