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

ttunnel

v0.0.4

Published

TTunnel is a minimal, elegant opensource WebSocket based HTTP tunneling.

Downloads

94

Readme

ttunnel

ttunnel exposes your localhost to the world for testing and sharing! No need to mess with DNS or those hard networking staff.

ttunnel can expose ony hostname other than localhost, for example it is suitable for sharing valet sites.

Installation

Globally

npm install -g ttunnel

As a dev dependency in your project

npm install -D ttunnel

Quickstart

npx ttunnel start 8080

Common Issues

Node Version

ttunnel requires node version greater than or equal 20, due to resolving localhost issue

Invalid Host Header

Host header is being sent automatically

If you are trying to tunneling Vue, React or any other frameworks, sometimes it requires Host header to be presented in the request headers. To solve this common issue through ttunnel, run the following command:

npx ttunnel start 8080 --host-header=localhost:8080

Restart your tunnel

Sometimes you want to make changes to your codebase, most of times this requires to close the tunnel, but don't worry about restarting the tunnel with the same domain. You just need to remember the domain, or customize it from the beginning.

npx ttunnel start 8080 --domain=my-awesome-subdomain

Arguments & Flags

Arguments

  • port (argument)(number) [required] The local port number to expose through.

Flags

  • api-key (flag) [required] Your TTunnel API Key to make sure all tunnels are authorized.
  • domain (flag)(string) Request a specific subdomain on the proxy server. Note You may not actually receive this name depending on availability.
  • endpoint (flag)(string) Used for self-hosted ttunnel version. Defaults to ws://ttunnel.me:4000.
  • hostname (flag)(string) Proxy to a custom hostname instead of default one. Note Host header will equal hostname value unless you used host-header flag.
  • host-header (flag)(string) set Host header
  • basic-auth (flag)(string) enforce basic auth on tunnel endpoint, user:password
  • request-header-add (flag)(string) header key:value to add to request
  • request-header-remove (flag)(string) header field to remove from request if present
  • response-header-add (flag)(string) header key:value to add to response
  • response-header-remove (flag)(string) header field to remove from response if present

Run npx ttunnel help command to learn more about ttunnel available commands and arguments.