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

@npmx86/dev-tunnel

v1.1.2

Published

CLI tool to expose local dev servers using Ngrok

Readme

🌐 dev-tunnel

Expose your local development server to the internet instantly with Ngrok.
Perfect for web development students, sharing demos, or testing on mobile devices.


Features

  • Automatic Ngrok Setup: Configures your Ngrok authtoken effortlessly.
  • Public URL Generation: Exposes your local server to a publicly accessible URL.
  • Framework Detection: Automatically detects popular frameworks like Vite, React, Next.js, Express, Spring Boot, Django, Go Gin, and .NET.
  • Vite Config Patching: Automatically updates Vite configuration to allow external access.
  • Clipboard Support: Copies the generated public URL to your clipboard.
  • Browser Auto-Open: Opens the public URL in your default browser.
  • Beginner-Friendly: Simple to use, even for those new to development.

Installation

Install globally via npm:

npm install -g dev-tunnel

Or run instantly without installation:

npx @npmx86/dev-tunnel

Usage

Expose your local server on a specified port:

dev-tunnel --port 3000

Optional Flags

  • -p, --port <port>: Specify the port to forward (default: 5173).
  • -f, --framework <name>: Manually specify the framework.
  • --no-open: Prevent the URL from opening in the browser.

Supported Frameworks

The following table outlines framework-specific behavior:

| Framework | Auto-Detected | Auto-Patch Supported | Notes | | ----------------- | ------------- | -------------------- | -------------------------------------- | | Vite | ✅ | ✅ | Adds allowedHosts to Vite config | | Express + EJS | ✅ | ✅ | Adds CORS-like headers for templates | | Django | ✅ | ✅ | Adds Ngrok host to ALLOWED_HOSTS | | Next.js | ✅ | ⚠️ No | Manual patch required (see below) | | React (CRA) | ✅ | ❌ | No patching needed | | Express (API) | ✅ | ❌ | Usually works without patching | | Spring Boot | ✅ | ❌ | Ensure proper CORS configuration | | Go Gin | ✅ | ❌ | Manually allow public access | | .NET | ✅ | ❌ | Ensure Startup.cs allows all origins |


Manual Configuration

If auto-patching is not supported or fails, follow these manual instructions:

Next.js

Update next.config.js:

/** @type {import('next').NextConfig} */
const nextConfig = {
  devServer: {
    host: '0.0.0.0',
  },
};

module.exports = nextConfig;

Django

Update settings.py:

ALLOWED_HOSTS = ['your-ngrok-url']

Notes

  • Ensure your local server is running before using dev-tunnel.
  • For frameworks requiring manual configuration, refer to their respective documentation for advanced CORS or host settings.
  • Ngrok's free tier has limitations, such as temporary URLs. Consider a paid plan for persistent URLs.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on our GitHub repository.


License

This project is licensed under the MIT License.