Skip to content
IRB in your browser, via WebSockets.
Ruby CoffeeScript CSS
Find file
Latest commit 4e0c6b3 @rkh Merge pull request #3 from ryancastro/patch-1
fixing minor typo - Because I'm a show of.
Failed to load latest commit information.
.gitignore remove generated files
Makefile remove generated files fixing minor typo - Because I'm a show of. revert 217bcaa and 12d8de8
brirb.haml initial commit
brirb.rb revert 217bcaa and 12d8de8
brirb.watchr remove generated files

IRB in your browser, via WebSockets. Proof of concept.


gem install haml em-websockets monkey-lib capture_stdout escape_utils
git clone git://
cd brirb
ruby brirb.rb

Now, open brirb.html.

What's the point?

  • Embed this in your Rails/Rack app, so you have a console in the process serving your page
  • Embed this in your ShowOff presentations to really show off
  • WebSockets are fun, play with the code!
  • Combine IRB with HTML output/interaction...
  • Output is fully async! Try this (in brirb): { loop { sleep 2; ws.send('foo') } } (stop it with _.kill)

Want to hack on it?

Feel free! Especially my javascript-fu sucks a lot. It is not very shell like at the moment.

Something went wrong with that request. Please try again.