lpweb

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 1 Imported by: 0

README

lpweb

lpweb is a way to access http service though libp2p. This allows to expose your http service even if you only have private ip like services running in your local machine or your home rapPi. It gives you domain name using your libp2p public key.

<libp2p_key_hash>.lpweb

browser => ( proxy_or_extension_with_libp2p) => (another_libp2p_node_with_http_service)

But you need access to both ends, run tunnel on one side and use proxy on other


# target machine
lpweb http-tunnel --port=4000 # where 4000 is port you want to tunnel, your websevice/ dev port / python3 -m http.server

# another machine
lpweb web-proxy --port=8080 # 8080 is a proxy port, use in browser/networking

TODO

  • websocket support
  • bring back DHT, currently it cheats by using etcd discovery for finding peer address and connect with libp2p (DHT was flaky cz new address would take time to propagate 🤷 ) remove etcd discovery, currently its is used to pass lowercase(hash), save that info in DHT or libp2p gossip
  • webextension someday 🤞 (browser extension would route .lpweb traffic through js impl of libp2p hence no need to run seperate proxy)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cli
ws
code

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL