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

ngrok-rsbuild-plugin

v0.0.2

Published

> 🌐 Expose your rsbuild dev server over the internet via ngrok β€” built for use with the **LynxJS Native App Framework**.

Readme

ngrok-rsbuild-plugin

🌐 Expose your rsbuild dev server over the internet via ngrok β€” built for use with the LynxJS Native App Framework.

This plugin creates an ngrok tunnel for your dev server, sets the correct assetPrefix for remote access, and optionally integrates with @lynx-js/qrcode-rsbuild-plugin to generate a QR code for fast mobile testing.


⚠️ Disclaimer: This README and plugin were generated and written with the help of AI. It may contain inaccuracies.
I'm not affiliated with LynxJS or its maintainers β€” this was built independently for use with the LynxJS ecosystem.

πŸ› οΈ Pull requests are welcome! If you notice something broken or unclear, feel free to contribute!


Features

  • πŸ”“ Automatically exposes your dev server using ngrok
  • πŸ›  Injects assetPrefix into dev config for remote asset loading
  • πŸ“± (Optional) Displays a QR code with your public ngrok URL for mobile devices
  • πŸ“„ Logs activity to logs.txt for debugging

Installation

npm install ngrok ngrok-rsbuild-plugin @lynx-js/qrcode-rsbuild-plugin --save-dev

Setup

Step 1: Add NGROK_TOKEN to your .env

NGROK_TOKEN=your-ngrok-authtoken

Step 2: Use the plugin in your rsbuild config

// rsbuild.config.ts or index.ts
import { pluginNgrok, setServer } from './ngrok-rsbuild-plugin'

export default {
  plugins: [pluginNgrok()],
  async setup() {
    const config = await setServer({
      host: 'localhost',
      port: 3000,
    });

    return config;
  }
}

API

setServer({ host, port })

Returns modified server and dev config with an updated assetPrefix.

pluginNgrok(options?)

Initializes the plugin and exposes the ngrok URL via the rsbuild API. Optionally accepts:

{
  schema?: (url: string) => any // defaults to { http: url }
}

Notes

  • You must have a valid NGROK_TOKEN set in your .env file.
  • The plugin writes logs to logs.txt in the project root.
  • The ngrok URL is exposed via api.expose('lynx:rsbuild:ngrok', { ngrok_url }).
  • This module uses custompatch to patch @lynx-js/rspeedy@^0.9.0, preventing it from automatically appending a port number to the ngrok URL. Make sure custompatch is installed and patched correctly if you encounter any URL formatting issues.

License

MIT