Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including browser-repl with all npm packages installed. Try it out:

browser-repl lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("browser-repl/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

browser-repl v0.4.0

CLI utility to set up a remote browser repl


CLI utility to set up a remote browser repl.

How to use

$ npm install -g browser-repl
$ export SAUCE_USERNAME="your username"
$ export SAUCE_ACCESS_KEY="your key"
$ repl ie6

Sign up for a free OSS account on SauceLabs.

How it works

browser-repl is built on top of the wd module, which is an implementation of the webdriver protocol.

Once a browser session is established, is used to establish a persistent connection that works on all browsers as fast as possible.

The server is hosted locally, and a reverse tunnel is set up with localtunnel which gives your computer a temporary URL of the format https://{uid}

The lines you enter are subsequently evald. A global window.onerror hook is also set to capture errors. Summoning repl with the -n argument disables this.



MIT - Copyright © 2014 Automattic, Inc.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free