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

@cldmv/wol-proxy

v1.0.1

Published

A simple, cross-platform Wake-on-LAN (WoL) HTTP proxy that lets you power on devices on your network by sending an HTTP request.

Downloads

6

Readme

wol-proxy

wol-proxy is a simple cross-platform CLI tool and HTTP server for sending Wake-on-LAN (WoL) packets over your network.

Use it as a local utility or run it on a remote VM to expose WoL via an HTTP API.


📦 Installation

npm install -g wol-proxy

🚀 Usage

1. Start the server

To start the proxy:

wol-proxy

It starts an HTTP server on port 3000 by default.

Override the port:

PORT=8080 wol-proxy

The server listens on all interfaces (0.0.0.0).


📬 Send Wake-on-LAN Request

Make a POST request to /wake with a JSON body:

Example using curl:

curl -X POST http://<proxy-ip>:3000/wake \
  -H "Content-Type: application/json" \
  -d '{"mac": "00:11:22:33:44:55", "ip": "10.0.0.100", "port": 9}'

Successful Response:

{ "success": true }

🔧 Request Options

| Field | Required | Description | |---------|----------|-------------| | mac | ✅ Yes | Target device MAC address (e.g. "f8:01:b4:68:bc:22") | | ip | ❌ No | Broadcast IP (default: 255.255.255.255) | | port | ❌ No | UDP port (default: 9) |


🧪 Quick Test

wol-proxy &
curl -X POST http://localhost:3000/wake \
  -H "Content-Type: application/json" \
  -d '{"mac": "00:11:22:33:44:55"}'

🔐 Security

This server is unauthenticated by default.
To secure it:

  • Use a reverse proxy (NGINX or Apache) with IP whitelisting or auth
  • Restrict access using a firewall or run behind a VPN

🖥 Development

Clone and run locally:

git clone https://github.com/CLDMV/wol-proxy.git
cd wol-proxy
npm install
node index.js


🛠 Running as a System Service (Ubuntu, CentOS, Fedora, etc.)

After installing wol-proxy globally with npm, it will automatically attempt to install a systemd service during post-install (on compatible Linux systems).

If successful, you’ll see a confirmation message and can start the service immediately.


✅ 1. Manual Setup (if automatic setup fails or is skipped)

You can still manually enable the service using the bundled .service file:

sudo cp $(npm root -g)/@cldmv/wol-proxy/wol-proxy.service /etc/systemd/system/wol-proxy.service

This copies the service file from the global npm module into the systemd directory.

✅ 2. Enable and start the service

sudo systemctl daemon-reload
sudo systemctl enable wol-proxy
sudo systemctl start wol-proxy

🔍 Check service status

sudo systemctl status wol-proxy

📋 View logs

journalctl -u wol-proxy -f

wol-proxy will now run in the background and start automatically at boot.


📜 License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0).

You may use, modify, and redistribute this software under the terms of the GPL-3.0 license.

See the full license text in the LICENSE file or at
https://www.gnu.org/licenses/gpl-3.0.html

© 2025 CLDMV