Browser Jack-in
A web browser extension that lets you inject a Scittle REPL server into the browser page. Then you can connect your favorite Clojure editor and inspect and manipulate the DOM to your heart’s content. Or let your AI agent loose on the page.
Prerequisite
Usage
Assuming you have installed the extension.
On the web page where you want to jack-in your REPL client: open the Browser Jack-in extension and follow the 1-2-3 step instructions.
Step 1 let’s you copy a Babashka command line that starts the browser-nrepl server, which is sort of a relay between your editor and the browser page...
Browser Jack-in
A web browser extension that lets you inject a Scittle REPL server into the browser page. Then you can connect your favorite Clojure editor and inspect and manipulate the DOM to your heart’s content. Or let your AI agent loose on the page.
Prerequisite
Usage
Assuming you have installed the extension.
On the web page where you want to jack-in your REPL client: open the Browser Jack-in extension and follow the 1-2-3 step instructions.
Step 1 let’s you copy a Babashka command line that starts the browser-nrepl server, which is sort of a relay between your editor and the browser page.
Note
The extension does not tamper with the web pages until the user chooses to connect the REPL. Once that is done the user evaluates code in the page context. It’s similar to using the console in the development tools, but you do it from your editor, and instead of JavaScript you use ClojureScript.
Demo
Installing
In waiting for this extension to be available on the extension web stores, you’ll need to install the packages manually in the browser’s developer mode. Grab the extension zip file(s) from the latest release.
Chrome:
- Unpack
browser-jack-in-chrome.zip(will unpack achromefolder) - Go to
chrome://extensions - Enable "Developer mode"
- Click "Load unpacked"
- Select the
chromefolder
Firefox:
- Go to
about:debugging#/runtime/this-firefox - Click "Load Temporary Add-on"
- Select any file in
browser-jack-in-firefox.zipfile
Safari:
(Actually the extension fails to establish the websocket connection in Safari. It tries to open it as a secure socket. If you know how to fix it, please file a PR.)
- Safari → Settings → Developer → Click "Add Temporary Extension"
- Select the
browser-jack-in-safari.zipfile - Ensure the extension is enabled in Safari → Settings → Extensions
Privacy
The extension does not collect any data whatsoever, and never will.
Licence
Development
To build and hack on the extension, see the development docs.
Enjoy! ♥️
Please consider sponsoring my open source work.