Show HN: I made an in-browser code editor with code replay and REPL
Code-replay lets you run the coding session like a movie, I wrote a blog post on how I implemented this: https://logicboard.com/blog/code-replay
You can try out the demo here: https://logicboard.com/demo/:replay
And play around with the code editor here: https://logicboard.com/demo/
Logicboard also has an REPL shell, just type "start()" and hit enter in the output area.
In case of REPL, you send STDIN to websocket and get STDOUT as response. All code execution happens in separate Docker containers.
You might want to restrict some of these things before Amazon shuts your account down for abuse requests.
You're basically handing everyone on the internet an EC2 instance to do literally anything with -- it'll be minutes to hours before this gets abused.
`uname` output from the container for example: Linux a976bf3f5ff7 4.14.193-113.317.amzn1.x86_64 #1 SMP Thu Sep 3 19:08:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
I just ran a couple of Python scripts that grabbed the ec2 instance metadata and the HN front page.
That said it’s pretty smooth and actually usable on mobile. Pretty polished too.