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-qr-cli

v2.2.1

Published

CLI para exponer un servidor local con ngrok y mostrar la URL como código QR

Readme

ngrok-qr-cli

CLI para exponer tu servidor local con ngrok y mostrar la URL pública como código QR en la terminal.

Requisito: Necesitas un authtoken de ngrok (gratuito). ¿Cómo obtenerlo?


Instalación global (recomendado)

npm install -g ngrok-qr-cli

Una vez instalado, ejecuta:

ngrok-qr-cli --port 3000
  • -p / --port: Puerto local a exponer (por defecto: 3000)

Primeros pasos

1. Configurar el authtoken de ngrok

Crea una cuenta gratuita en ngrok.com, obtén tu token desde el dashboard y ejecútalo una vez:

ngrok-qr-cli   # la primera vez te pedirá el token interactivamente

O bien configúralo manualmente con el CLI de ngrok:

npx ngrok authtoken TU_TOKEN

El token se guarda en ~/.config/ngrok/ngrok.yml y no necesitas repetirlo.


Uso

# Puerto por defecto (3000)
ngrok-qr-cli

# Puerto personalizado
ngrok-qr-cli --port 8080
ngrok-qr-cli -p 8080

Desarrollo local

Requisitos: Node.js ≥ 18, pnpm

git clone https://github.com/tuusuario/ngrok-qr-cli.git
cd ngrok-qr-cli
pnpm install
pnpm start -- --port 3000

Scripts disponibles

| Comando | Descripción | |---------|-------------| | pnpm start | Ejecuta sin compilar (tsx) | | pnpm run dev | Modo watch (recarga automática) | | pnpm run build | Compila TypeScript → dist/ | | pnpm run lint | Linting con oxlint | | pnpm run format | Formatea el código con Prettier |


Publicar en npm

# Compilar y empaquetar
pnpm run build
pnpm pack           # genera ngrok-qr-cli-x.x.x.tgz

# Publicar al registro de npm
pnpm publish

Requiere cuenta en npmjs.com y npm login.


Instalar desde tarball (sin npm registry)

Para distribuir sin publicar en npm:

# En la máquina de desarrollo
pnpm run build
pnpm pack

# Transferir ngrok-qr-cli-2.0.0.tgz a la otra máquina y ejecutar:
npm install -g ngrok-qr-cli-2.0.0.tgz

Tecnologías


Solución de problemas

"invalid tunnel configuration" / "tunnel already exists" El binario ngrok v3 tiene un bug de timing al arrancar. Esta herramienta lo resuelve automáticamente con un reintento tras detectar la sesión activa.

"Your account is limited to 1 simultaneous ngrok agent sessions" (ERR_NGROK_108) Asegúrate de que no haya otra sesión de ngrok activa. Las cuentas gratuitas permiten solo 1 agente a la vez.

El binario de ngrok no se descargó (usuarios pnpm) Ejecuta pnpm approve-builds para permitir los scripts de instalación del paquete ngrok.


Licencia

ISC