Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rkh/brirb
IRB in your browser, via WebSockets.
https://github.com/rkh/brirb
Last synced: about 1 month ago
JSON representation
IRB in your browser, via WebSockets.
- Host: GitHub
- URL: https://github.com/rkh/brirb
- Owner: rkh
- Created: 2010-07-20T09:23:33.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2014-10-27T18:32:24.000Z (about 10 years ago)
- Last Synced: 2023-04-10T08:23:06.838Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 152 KB
- Stars: 14
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
IRB in your browser, via WebSockets.
Proof of concept.# Installation
gem install haml em-websockets monkey-lib capture_stdout escape_utils
git clone git://github.com/rkh/brirb
cd brirb
make
ruby brirb.rbNow, 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): `Thread.new { 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.