Playground
This is a real nREPL server, running right here in your browser:
nrepl-sci, which evaluates ClojureScript
with SCI. The REPL is a small nREPL client,
and next to it is every message it sends the server and every reply it gets
back, as they happen. Tab completes, Shift+Enter starts a new line, and code
can ask you for input with read-line. As you write, the editor asks the
server about your code, the way editors hooked up to nREPL do: eldoc for
the arguments of the call you’re in, and lookup for the docs of any symbol
you point at.
Each of the REPL’s tabs is a session of its own, with its own namespace and history. + clones the session you’re in and × closes one, so code can keep running in one tab while you carry on in another. Under the messages, you can also write messages of your own, as EDN maps, and send them just as they are.
Your browser wouldn’t let this page be cross-origin isolated, so code can’t ask you for input here, interrupting code (or closing a tab that’s running it) starts the server over, and sessions take turns running code.