An encrypted proxy for browser javascript http://epoxy.r58playz.dev/
Find a file
Toshit Chawda 7ce772da7d
bump ver
2024-12-19 14:07:31 -08:00
client bump ver 2024-12-19 14:07:31 -08:00
server clippy pedantic 2024-11-29 21:30:09 -08:00
simple-wisp-client fix the dreaded simple wisp client freeze 2024-11-29 22:36:41 -08:00
wisp use rustc hash 2024-12-07 13:05:12 -08:00
.envrc nixification 2024-01-09 19:46:05 -08:00
.gitignore add a minimal build 2024-07-03 11:04:02 -07:00
Cargo.lock bump ver 2024-12-19 14:07:31 -08:00
Cargo.toml clippy pedantic 2024-11-29 21:30:09 -08:00
clippy.toml clippy pedantic 2024-11-29 21:30:09 -08:00
flake.lock nixification 2024-01-09 19:46:05 -08:00
flake.nix nixification 2024-01-09 19:46:05 -08:00
README.md remove atomics / bulk-memory requirement 2024-09-07 10:59:31 -07:00
rustfmt.toml fix the parking-lot issue 2024-07-08 17:12:25 -07:00

epoxy

Epoxy is an encrypted proxy for browser javascript. It allows you to make requests that bypass CORS without compromising security, by running SSL/TLS inside webassembly.

Using the client

Here is a simple usage example:

import epoxy from "./epoxy-module-bundled.js";

const { EpoxyClient, EpoxyClientOptions } = await epoxy();

let options = new EpoxyClientOptions();
options.user_agent = navigator.userAgent;

let client = await new EpoxyClient("wss://localhost:4000", options);

let response = await client.fetch("https://httpbin.org/get");
console.log(await response.text());

See client/demo.js for more examples.

Using the server

See the server readme.

Building

Server

See the server readme.

Client

Important

Building the client is only supported on Linux.

Make sure you have the wasm32-unknown-unknown rust target, the rust-std component, and the wasm-bindgen, wasm-opt, jq, and base64 binaries installed.

In the client directory:

bash build.sh

To host a local server:

python3 -m http.server