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 🙏

© 2024 – Pkg Stats / Ryan Hefner

testproxy

v1.3.4

Published

Test your local websites on other devices

Downloads

10

Readme

Carbonium

testproxy

Test your locally running websites on other devices

If you are running a webserver as localhost, with a local webserver or in a virtual machine like VirtualBox VMware, Vagrant or Docker, you can't always access this webserver from other computers or mobile devices.

Testproxy will create a proxy to this local webserver and makes them available to other devices on the same (Wi-Fi) network. All without any configuration.

Running

Assuming http://localhost:8080/ is working in your local browser but nowhere else:

npx testproxy http://localhost:8080/

The first time it will ask you to install testproxy. Press enter to proceed.

If the command npm is not found, you have to install the Node.js and npm combination. Go to https://nodejs.org/ and install Node.js. Then type the command above again.

Testproxy will respond with something like:

Listening on http://192.168.0.93:6239

And it will show a QR code.

Type the URL in the browser on your mobile device or scan the QR code and the website will appear. Make sure the computer and other device are connected by the same (WiFi) network.

Type CTRL-C to stop testproxy.

Parameters

npx testproxy <url> [-l<port>] [-noqr]

url: the same url as you use for local development

port (optional): the port to listen to

-noqr turn off showing the QR code

Example

To make your local website test.mycompany available on port 9000 without showing the QR code:

npx testproxy http://test.mycompany/ -l9000 -noqr

You can connect different domain names to different port numbers at the same time. Testproxy does not work with https connections.

Highly secured WiFi

Some WiFi networks are highly secured and prevent you from accessing other computers on the same network. Here are some solutions to this problem:

  • Connect the host computer and the other computer or mobile to the same guest Wi-Fi network.
  • Configure one device as a hotspot and connect your other device to this hotspot.
  • Use another, unprotected Wi-Fi network for development and test purposes, installing a dedicated Wi-Fi access point if needed.

License

Testproxy is copyright 2023 Edwin Martin and MIT licensed.