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 🙏

© 2025 – Pkg Stats / Ryan Hefner

node-red-contrib-locapack

v0.0.7

Published

Some nodes to interact with LocaPack devices using the LocaPack protocol

Readme

locapack

Brief

Another localisation packet protocol to send/receive localisation data over networks.

Details

LocaPack is an implementation of the locapack protocol used to send or receive various localisation data over wired and wireless networks.

LocaPack enables the transport of:

  • universal GNSS localisation coordonates such as latitude/longitude data,
  • locally referenced localisations, such as {x,y} positions in an indoor environment,
  • inter-node proximity information such as ranging data.

Some extra features are also avalable, such as:

  • automatic mapping/translation of coordonates between universal GNSS/locally referenced localisations,
  • movement_id, that enables extra movement information based on another sensor (typically a local accelerometer),
  • packet sequence numbering and local timestamping, to track positions and detect missing information,
  • message hashing, to send shorter but incomplete payloads, to respect privacy.

Several implementations are available:

  • Embedded: C++ class (Arduino library)
  • Infrastrucure/IoT: Node-RED palette
  • Portable: python

A Json description of the messages is also available.

Implementation

LocaPack is available as a Node-RED Palette, ie a collection of nodes to produce or decode locapack messages.

Flow Example

Node-RED implementation status:

  • encode/decode header,
  • encode/decode universal GNSS packets,
  • encode/decode locally referenced packets.

JSON messages

LocaPack messages are also available in JSON.

Example of a Universal GNSS localisation packet:

{
  "header": {
    "protocol_version": 1,
    "device_id_size": 2,
    "packet_type": 1,
    "movement_id_presence_flag": false,
    "timestamp_presence_flag": true
  },
  "sequence_number": 2746,
  "timestamp": 27850001,
  "device_id": 237,
  "payload": [192,49,131,47,66,150,8,165,63,154,153,18,67,164,112,157,63],
  "universalGnssPacket": {
    "header": {
      "altitude_presence_flag": true,
      "dop_presence_flag": true
    },
    "latitude": 43.9,
    "longitude": 1.1,
    "altitude": 146.6,
    "dop": 1.2300000190734863
  }
}

Example of a Locally Referenced localisation packet:

{
  "LocaPack": {
    "header": {
      "protocol_version": 1,
      "device_id_size": 2,
      "packet_type": 2,
      "movement_id_presence_flag": false,
      "timestamp_presence_flag": true
    },
    "sequence_number": 163,
    "timestamp": 1630289,
    "device_id": 124,
    "payload": [224,0,0,128,63,0,0,0,64,0,0,64,64,0,0,128,64,136,119,102,85,68,51,34,17],
    "locallyReferencedPacket": {
      "header": {
        "z_presence_flag": true,
        "dop_presence_flag": true,
        "frameofref_id_presence_flag": true
      },
      "x": 1,
      "y": 2,
      "z": 3,
      "dop": 4,
      "frameofref_id": 9833440827789222000
    }
  }
}

License

Locapack is distributed under the GPLv3 license.