Repository navigation
Home
STomp is a web proxy that runs in the browser. You add it to your own site, and your visitors can open other websites inside frames on your page.
It is published on npm as @sysce/stomp and developed in Fracital/powerMouse. You can try it at stomp.fracit.al.
A service worker on your origin answers every request a proxied page makes. It rewrites HTML, CSS and JavaScript so the page runs inside your frame as if it were on its own origin. The actual network traffic goes through a transport (epoxy or libcurl) that runs in your page. The transport speaks the Wisp protocol to a relay such as holyWisp, and the relay opens the real TCP and UDP connections.
A request goes: proxied frame, service worker, controller (in your page), transport, Wisp relay, the website.
Three things make that work:
-
StompController, the object your page creates. It talks to the service worker and owns the transport. - The files in
dist/, which you serve from a directory of your site (/stomp/by default). - A Wisp relay. You can run your own or use the public one at
wss://holywisp.fracit.al/.
- Try STomp in five minutes
- Add STomp to a site or server I already have
- Build a browser UI with tabs, an address bar and history
- Keep proxied pages away from my own origin
- Look up an option, method or event
- Choose a transport and run a Wisp relay
- Put STomp in production
- Fix something that does not work
- Move an old TOMP setup to STomp
STomp started in early 2022 as TOMP (toomanyproxies), the first implementation of the TOMP specifications. Its successor, stompV1, shipped on npm as @sysce/stomp 1.0.0 to 2.0.0 from April 2022. Both used a bootstrapper script and a Bare server. The 2022 wiki had one page, a quickstart for the TOMP bootstrapper, and this wiki keeps that history.
The current STomp is a rewrite. It has no Bare server: requests travel over Wisp, and the proxy runs on the controller and service worker described above. Migrating from TOMP maps the old API to the current one.
The npm latest tag still points at 2.0.0, so npm install @sysce/stomp without a tag installs stompV1.
The wiki describes master. Nightly builds of master are published as @sysce/stomp@nightly, each one only after CI passed on its commit. Pin the exact version you tested with:
npm install @sysce/stomp@nightlyThe README has the API tables, and docs/ has design notes on single topics (HTTP cache, WebRTC, passkeys, the same-origin policy and others).
STomp is licensed under the GPL-3.0. Found a mistake in these pages? Open an issue.