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

@o-town/local.dev

v1.2.0

Published

Expose your local website to the internet instantly — no config, no signup.

Readme

local.dev

Expose your local website to the internet — instantly. No signup, no config.

npx local.dev 3000

Install

npm install -g @o-town/local.dev

Or use without installing:

npx @o-town/local.dev 3000

CLI Usage

npx local.dev [port] [options]

Arguments

| Argument | Description | Default | |----------|--------------------------|---------| | port | Local port to expose | 3000 |

Options

| Flag | Alias | Description | |-----------------------|-------|------------------------------------------| | --subdomain | -s | Request a custom subdomain | | --host | -H | Local host to tunnel (default: localhost)| | --qr | -q | Show QR code for the public URL | | --open | -o | Open tunnel URL in your browser | | --print-requests | -r | Log incoming HTTP requests | | --help | -h | Show help | | --version | -v | Show version number |

Examples

# Expose port 3000
npx local.dev 3000

# Expose port 8080 with a custom subdomain
npx local.dev 8080 --subdomain myapp

# Show QR code (great for mobile testing)
npx local.dev 3000 --qr

# Open tunnel URL in browser + log requests
npx local.dev 3000 --open --print-requests

# Expose a non-localhost server
npx local.dev 3000 --host 192.168.1.10

Programmatic API

You can also use local.dev as a Node.js library:

const { tunnel } = require('@o-town/local.dev');

async function main() {
  // Simple: just pass a port
  const t = await tunnel(3000);
  console.log('Public URL:', t.url);

  // Stop the tunnel when done
  t.close();
}

main();

With options

const t = await tunnel({
  port: 8080,
  subdomain: 'myapp',
  host: 'localhost',
  printRequests: true,
});

console.log(t.url); // https://myapp.loca.lt

t.on('request', (info) => {
  console.log(info.method, info.path, info.statusCode);
});

t.on('close', () => {
  console.log('Tunnel closed');
});

API Reference

tunnel(port, [options])Promise<TunnelHandle>

tunnel(options)Promise<TunnelHandle>

Options:

| Property | Type | Description | |-----------------|---------|--------------------------------------| | port | number | Required. Local port to expose | | host | string | Local host (default: 'localhost') | | subdomain | string | Requested subdomain | | printRequests | boolean | Log requests (default: false) |

TunnelHandle

| Property/Method | Description | |-----------------|------------------------------| | .url | The public HTTPS URL | | .close() | Close the tunnel | | .on('request', cb) | Fired on each HTTP request | | .on('close', cb) | Fired when tunnel closes | | .on('error', cb) | Fired on tunnel errors |


How it works

local.dev creates a secure tunnel from a public URL to your local machine using the localtunnel protocol. Incoming requests hit the public URL and are proxied through to your local server — no port forwarding or firewall changes needed.


License

MIT


Publishing

npm install
npm login
npm publish --access public

Scoped packages require --access public to be visible on the npm registry.