The REPL is really just there to provide a simple interface to the running web server for debugging your apps. That said, it _is_ a full-on Node.js REPL so you can pretty much run any JavaScript you want in it.
(I’m not going to even pretend I understand what you’re using it for but it’s fun to see folks playing with it in ways I never imagined.) :)