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

node-red-contrib-makdev-iot

v0.1.0

Published

Node-RED nodes for querying your own IoT data from the MakDev IoT Platform Agent API

Readme

node-red-contrib-makdev-iot

Node-RED nodes for pulling your own IoT sensor data out of the MakDev IoT Platform (makdev.net) without hand-building HTTP Request nodes.

Wraps the platform's Agent HTTP API (GET /api/agent/devices|fields|data/latest|data/range), which is only usable by registered mqtt_xxx accounts and always scoped to your own data.

Nodes

  • makdev-iot-config - config node holding your Base URL and Agent Key. The Agent Key is stored encrypted by Node-RED's own credential store, never in the exported flow JSON.
  • makdev-iot - queries your data. One node, four actions selectable from a dropdown:
    • devices - list devices that have reported data
    • fields - list the fields currently present for a device (fields vary per device/user - there's no fixed list)
    • latest - most recent reading for a device (optionally a single field)
    • range - historical readings for a device over a time range (optionally a single field)

Getting an Agent Key

  1. Log in to your MakDev account and call POST /api/agent-key with your normal login token.
  2. The response contains api_key - copy it now, it is shown only once.
  3. Paste it into the makdev-iot-config node's "Agent Key" field and click "Test connection".

If you ever lose the key, calling POST /api/agent-key again issues a new one and revokes the old one (only one key is active per account at a time).

Example flow

[inject] -> [makdev-iot: devices] -> [debug]

Then, once you know a device name:

[inject] -> [makdev-iot: fields, device=myDevice] -> [debug]
[inject] -> [makdev-iot: latest, device=myDevice] -> [debug]
[inject] -> [makdev-iot: range, device=myDevice, start=-24h] -> [debug]

device and field can be set to a fixed string or pulled from msg.*/flow/global context, so you can drive them dynamically from an upstream node.

Output

  • devices / fields: msg.payload is an array of strings.
  • latest / range: msg.payload is an array of { time, field, value } objects.
  • msg.makdev is always set to { action, device, field } describing the request that was made.

Error handling

Failures (invalid device/field format, expired or revoked key, deactivated account) surface as a Node-RED error (catchable with a catch node) and are shown on the node's status with the HTTP status code, e.g. 401 Agent API key expired or revoked.

Not included

  • This package does not publish itself to npm - that's a separate, one-way decision left to whoever maintains this repo.
  • No MQTT node - use Node-RED's built-in mqtt in/mqtt out nodes against mqtt.makdev.net directly.
  • No rate limiting on the client side - the Agent API is currently free/unmetered; if the platform later adds quotas, errors will simply surface with whatever status/message the server returns.