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

moyo-expose

v0.0.4

Published

Expose local dev server on LAN, detect IP/port and print QR (works with Vite/Next/CRA).

Readme

moyo-expose

Expose your local development server on your LAN and instantly generate a QR code to open the app on your phone.

✅ Works with Next.js
✅ Works with Vite
✅ Auto-detects your local IP
✅ Generates a QR code in the terminal
✅ Zero configuration


📦 Installation

Global install (recommended)

npm install -g moyo-expose

Now you can run:

moyo-expose --next

or

moyo-expose --vite

Local project install

npm install moyo-expose --save-dev

Then add a script in package.json:

"scripts": {
  "expose": "moyo-expose --next"
}

Run it:

npm run expose

🚀 Usage

For Next.js projects

moyo-expose --next

For Vite projects

moyo-expose --vite

✅ What it does

When you run the command:

  • Detects an available port (default 3000)
  • Finds your local network IP
  • Starts your dev server
  • Prints both local and LAN URLs
  • Displays a QR code you can scan on your phone

Example output:

Local:   http://localhost:3000
Network: http://192.168.0.45:3000

Scan this QR code to open the app on your phone:
▇▇▀▇▇█▄...

✅ Why use this?

Perfect when developing on a laptop and testing the UI on:

  • Android
  • iPhone/iOS
  • Tablets
  • Multiple devices on the same Wi-Fi

No more manually typing IP addresses.


⚠️ Requirements

  • Node 14+
  • A Wi-Fi network (phone + computer must be on the same network)

🛠 Supported frameworks

| Framework | Status | | --------- | ------- | | Next.js | ✅ Works | | Vite | ✅ Works |

React Native support is planned.


📌 CLI Options

| Flag | Description | | -------- | ------------------------ | | --next | Start Next.js dev server | | --vite | Start Vite dev server |


👤 Author

Anaclet Mwela Email: [email protected]


📄 License

MIT License Free to use, modify, and distribute.


Happy coding! 🚀