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

lan-gateway

v1.0.2

Published

Share your localhost services over WiFi - Multi-app HTTPS gateway for local development

Readme

LAN Gateway

Access your localhost apps from any device on your WiFi. Vibe coded with Antigravity

Why Use This?

Testing your web app on your phone usually means:

  • Exposing it to the internet (ngrok, localtunnel)
  • Dealing with public URLs and security concerns
  • Paying for tunneling services

LAN Gateway keeps everything local. Your apps stay on your network, accessible only to devices on your WiFi.

What It Does

  1. Runs multiple apps on your laptop
  2. Makes them accessible via HTTPS on your WiFi
  3. Auto-assigns ports (9000, 9001, 9002...)
  4. Optionally starts your apps for you

Install

npm install -g lan-gateway

Quick Start

# Create config
lan-gateway init

# Edit proxy-config.json (see below)

# Start gateway
lan-gateway start

Access your apps at https://YOUR_IP:9000, https://YOUR_IP:9001, etc.

Configuration

Edit proxy-config.json:

{
    "apps": [
        {
            "name": "my-app",
            "gatewayPort": "",
            "services": {
                "frontend": {
                    "enabled": true,
                    "url": "http://localhost:5173",
                    "path": "/",
                    "startCommand": "npm run dev",
                    "workingDirectory": "D:/Projects/MyApp/frontend"
                },
                "backend": {
                    "enabled": true,
                    "url": "http://localhost:3000",
                    "path": "/api",
                    "startCommand": "npm run dev",
                    "workingDirectory": "D:/Projects/MyApp/backend"
                }
            }
        }
    ]
}

Fields:

  • gatewayPort: Leave empty for auto-assign (9000, 9001...) or specify a port
  • url: Where your service runs locally
  • path: URL path for routing (/ for frontend, /api for backend)
  • startCommand: Optional - command to start your service
  • workingDirectory: Required if using startCommand

Multiple Apps

Each app gets its own gateway port:

{
    "apps": [
        {
            "name": "main-app",
            "gatewayPort": "",
            "services": { ... }
        },
        {
            "name": "test-app",
            "gatewayPort": "",
            "services": { ... }
        }
    ]
}

Result:

  • https://YOUR_IP:9000 → main-app
  • https://YOUR_IP:9001 → test-app

Security Warning

First time you access the gateway, your browser shows a security warning. This is normal - we use self-signed certificates.

Click "Advanced" → "Proceed". You only see this once per device.

Troubleshooting

Permission Denied Error (Windows)

If you get EACCES: permission denied when starting:

Cause: Antivirus software (Quick Heal, Avast, etc.) blocking Node.js from binding to network ports.

Solution:

  1. Add Node.js to your antivirus whitelist/exceptions
  2. Or temporarily disable network protection
  3. Or run PowerShell as Administrator

Port Already in Use

If your specified port is busy, the gateway will automatically try the next available port and notify you.

Service Won't Start

  • Check that workingDirectory path exists
  • Verify startCommand works when run manually
  • Check service logs in verbose mode: set "verbosity": "verbose" in config

Add to .gitignore

.gateway-cert/

How It Works

  1. Gateway creates HTTPS servers on your LAN
  2. Routes requests to your localhost services
  3. Optionally starts services if startCommand is set
  4. Stops everything when you press Ctrl+C

License

MIT