experiments in tunnelling HTTP over libp2p in browser from go
  • JavaScript 68.5%
  • Go 30.1%
  • Dockerfile 1%
  • Shell 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kegan Dougal 783164aeed whoops
2020-05-18 18:09:32 +01:00
js whoops 2020-05-18 18:09:32 +01:00
.dockerignore Add working tests! 2020-05-18 17:29:52 +01:00
.gitignore inch closer to working; rename P2PConn as GoJsConn 2020-01-21 07:58:59 -08:00
Dockerfile Add working tests! 2020-05-18 17:29:52 +01:00
go.mod Add working tests! 2020-05-18 17:29:52 +01:00
go_http_js_libp2p_wasm_exec Add working tests! 2020-05-18 17:29:52 +01:00
LICENSE make it almost work for go<->js loopback 2019-12-27 17:20:30 +00:00
p2p_test.go Add working tests! 2020-05-18 17:29:52 +01:00
p2pLocalNode.go Add working tests! 2020-05-18 17:29:52 +01:00
p2pTransport.go More cleaning 2020-05-18 15:45:34 +01:00
package.json Add working tests! 2020-05-18 17:29:52 +01:00
peerInfo.go More cleaning 2020-05-18 15:45:34 +01:00
README.md Add docker instructions 2020-05-18 17:45:21 +01:00
test.sh Add working tests! 2020-05-18 17:29:52 +01:00
wasm_exec.js Add working tests! 2020-05-18 17:29:52 +01:00
webpack.config.js make it run 2020-01-05 13:09:11 +00:00

go-http-js-libp2p

Tunnel HTTP requests/responses in-browser from go-wasm over js-libp2p. In theory should be compatible with https://github.com/libp2p/go-libp2p-http.

To test:

$ yarn install
$ ./test.sh

Alternatively:

$ docker build -t ghjl .
$ docker run --rm ghjl

The tests will spin up a rendezvous server. For reference, you can spin one up like this:

npm install --global libp2p-websocket-star-rendezvous
rendezvous --port=9090 --host=127.0.0.1