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

@signalbox/cloudflare-ddns

v0.1.7

Published

Cloudflare dynamic DNS for home connections, driven by your router's UPnP events

Readme

Example: Cloudflare dynamic DNS

A complete signalbox app: it keeps Cloudflare A records pointed at your home connection's public IP, with a config-driven CLI and systemd lifecycle — no domain logic in the CLI, all of it from the framework.

It watches for address changes two ways — the router's UPnP ExternalIPAddress push and a periodic poll — merges them into one stream, de-duplicates, and writes to Cloudflare only when the address actually changes.

This is the port of signalbox's own DDNS app, without the Discord chat-bridge.

Build

npm install
npm run build      # → dist/cli.js

Run the CLI with node dist/cli.js <command> (or npm link to get a cloudflare-ddns binary on your PATH).

Configure

node dist/cli.js config init     # prompts for each field, using the schema descriptions
node dist/cli.js config set ttl 120
node dist/cli.js config list     # secrets are redacted
node dist/cli.js config path     # where the file lives

Config resolves to /etc/cloudflare-ddns/config.json as root, otherwise ~/.config/cloudflare-ddns/config.json, written 0640 because it holds the API token.

| key | required | default | what | | --- | --- | --- | --- | | apiToken | ✓ (secret) | — | Cloudflare token, scoped Zone:DNS:Edit | | zoneId | ✓ | — | zone id from the domain's Overview page | | records | ✓ | — | comma-separated hostnames to keep updated | | ttl | | 60 | TTL for records this tool creates | | proxied | | false | route through Cloudflare's proxy (HTTP/HTTPS only) | | watchPort | | 5959 | TCP port the UPnP NOTIFY callback listens on | | fallbackMinutes | | 15 | safety-net re-check interval |

Run

node dist/cli.js run     # foreground — reacts to changes until Ctrl-C
node dist/cli.js once    # apply the records a single time and exit

Install as a service (Linux)

sudo node dist/cli.js setup      # hardened systemd unit, dedicated user, firewall port, enable + start
node dist/cli.js status
sudo node dist/cli.js teardown   # add --purge to also delete the config

setup runs the app as cloudflare-ddns run under a dedicated unprivileged system user and opens watchPort from the gateway. start | stop | restart | status control the unit.

How it works

| piece | role | | --- | --- | | @signalbox/config | the schema (field() builder, secrets) and the config store | | @signalbox/service-cli | the whole CLI + systemd lifecycle, from a small ServiceApp descriptor | | @signalbox/upnp | emits external-ip when the router reports a new WAN address | | @signalbox/commons | poll (fallback re-check) + dedupe (drop repeats) | | @signalbox/cloudflare | update(ip) patches the records, returning whether anything changed | | @signalbox/core | ties the plugins and the workflow together |

The pipeline is one workflow:

merge<Observation>(observed, polled)
    .filter(dedupeBy(o => o.ip))
    .effect(async ({ ip }) => ctx.plugins.cloudflare.update(ip))

See the signalbox documentation for the concepts.