Interactive Elixir in a web browser

A while back i saw a suggestion somewhere that Elixir have a try it in your browser feature. I thought this was a cool idea, but it wasn’t something i personally needed. Today i had nothing better to do so i proof of concepted what it would take to get a decent console/iex experience in the browser.
This is what i came up with. I had to change ~10 lines of code in Elixir.IEx.Server and Elixir.IEx.Evaluator to redirect IO.

My CSS skills are sub par so that is certainly something that could use work.

demo

anyway check it out here

20 Likes