mirror of
https://github.com/matrix-org/go-http-js-libp2p.git
synced 2026-11-17 03:30:33 +00:00
experiments in tunnelling HTTP over libp2p in browser from go
- JavaScript 68.5%
- Go 30.1%
- Dockerfile 1%
- Shell 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| js | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| go.mod | ||
| go_http_js_libp2p_wasm_exec | ||
| LICENSE | ||
| p2p_test.go | ||
| p2pLocalNode.go | ||
| p2pTransport.go | ||
| package.json | ||
| peerInfo.go | ||
| README.md | ||
| test.sh | ||
| wasm_exec.js | ||
| webpack.config.js | ||
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