P2P out the box alternative to Ngrok/Cloudflare using Iroh

objectwizard1 pts0 comments

p2p-tunnel - npm

npm

Search<br>Sign UpSign In

p2p-tunnel<br>0.1.11 • Public • Published an hour ago<br>Readme<br>Code Beta<br>1 Dependency<br>0 Dependents<br>3 Versions<br>p2p-tunnel

Instantly share a localhost port over P2P using Iroh.

Features

Share a local service without manual port forwarding.

Connect from another machine using a generated ticket.

Cross-platform release artifacts generated with cargo-dist.

npm installer support for easy install by platform.

Usage

Build and run from source:

cargo run -- share 3000

Run with npx (no global install):

npx p2p-tunnel share 3000

On another machine (or another terminal), connect using the ticket printed by share:

cargo run -- connect TICKET>

Or with npx:

npx p2p-tunnel connect TICKET>

The current connect command binds locally to 127.0.0.1:8080.

Installers and Releases

This repository uses cargo-dist with npm installers enabled.

Configured npm package name:

p2p-tunnel

Typical release workflow:

dist build<br>dist generate-ci

License

MIT. See LICENSE.

Readme<br>Keywords<br>none<br>Provenance

Share feedback

Package Sidebar<br>Install<br>npm i p2p-tunnel

Repository<br>Gitgithub.com/drmikesamy/p2p-tunnel

Homepage<br>github.com/drmikesamy/p2p-tunnel#readme

DownloadsWeekly Downloads<br>130

Version<br>0.1.11

License<br>MIT

Last publish<br>an hour ago

Collaborators

drmikesamy

Analyze security with SocketCheck bundle size View package health Explore dependencies<br>Report malware

tunnel share connect using ticket cargo

Related Articles