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-tdn-wifi

v1.0.1

Published

WiFi scan/connect config page for Node-RED (systemd-networkd + wpa_supplicant)

Readme

node-red-contrib-tdn-wifi

A Node-RED node that serves a WiFi scan/connect page at /wifi-config, for Raspberry Pi boards running systemd-networkd + wpa_supplicant (not NetworkManager, not dhcpcd). No dependencies beyond Node's own built-ins — nothing else to npm install.

Quick start

  1. Drag a WiFi Config node onto any flow (it needs no wiring — 0 inputs) and deploy.
  2. Open /wifi-config (same host/port as Node-RED, or click Open WiFi Config page on the node).
  3. Click Scan Networks, pick one, enter its password, Connect.
  4. On success the page shows the assigned IP, gateway, DNS servers, and a live reachability check against web.whatsapp.com.

⚠️ Security note: /wifi-config is unauthenticated by default (matching this Pi's other TDN pages) and can change the Pi's WiFi network and store a new password on the device. Only run this on a trusted LAN. If this Pi is ever reachable from an untrusted network, put it behind a reverse proxy or VPN, or add your own auth in front of it.

Requirements on the Pi

  • wpa_cli (part of wpasupplicant) reachable for the WiFi interface's control socket — Node-RED runs as root on the Pi, so this works without extra permission setup.
  • ip (iproute2) — used to read the interface's IP address and default route.
  • resolvectl (systemd-resolved) for DNS servers, with a fallback to reading /etc/resolv.conf if it's not present.

Only home-style WPA2/WPA3-Personal networks are supported (SSID + password, 8-63 characters) — no WPA-Enterprise/802.1x.

Install / update

# Install (from the Pi, same pattern as node-red-contrib-tdn-whatsapp)
cd /root/.node-red
npm install /path/to/node-red-contrib-tdn-wifi

# Update after a new version is published
npm install node-red-contrib-tdn-wifi@latest

sudo systemctl restart nodered

Output

The node emits { payload: { event: 'connected' | 'disconnected', ssid? } } whenever the WiFi state changes, polled every 30 seconds independent of the page — wire it to a node-red-contrib-tdn-whatsapp Send node to get a WhatsApp alert when this Pi's WiFi drops or reconnects.

Why no NetworkManager (nmcli)?

This Pi's networking is configured with systemd-networkd + wpa_supplicant directly, so the node drives wpa_cli for scanning/associating and ip/resolvectl for reading the resulting IP configuration, rather than nmcli. If you're deploying this on a Pi OS image that uses NetworkManager instead, this package will not work as-is.