TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: I made an in-browser code editor with code replay and REPL

87 pointsby logicboardalmost 2 years ago
I made a Logicboard.com — A collaborative code editor with code-replay feature.<p>Code-replay lets you run the coding session like a movie, I wrote a blog post on how I implemented this: <a href="https:&#x2F;&#x2F;logicboard.com&#x2F;blog&#x2F;code-replay" rel="nofollow">https:&#x2F;&#x2F;logicboard.com&#x2F;blog&#x2F;code-replay</a><p>You can try out the demo here: <a href="https:&#x2F;&#x2F;logicboard.com&#x2F;demo&#x2F;:replay" rel="nofollow">https:&#x2F;&#x2F;logicboard.com&#x2F;demo&#x2F;:replay</a><p>And play around with the code editor here: <a href="https:&#x2F;&#x2F;logicboard.com&#x2F;demo&#x2F;" rel="nofollow">https:&#x2F;&#x2F;logicboard.com&#x2F;demo&#x2F;</a><p>Logicboard also has an REPL shell, just type &quot;start()&quot; and hit enter in the output area.

8 comments

nacsalmost 2 years ago
This allows outbound network access, allows program execution (within the container) and more.<p>You might want to restrict some of these things before Amazon shuts your account down for abuse requests.<p>You&#x27;re basically handing everyone on the internet an EC2 instance to do literally anything with -- it&#x27;ll be minutes to hours before this gets abused.<p>`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&#x2F;Linux
评论 #36093415 未加载
andrewstuartalmost 2 years ago
As nacs said, this is a really bad idea - you should take it offline or prevent network access ASAP.<p>I just ran a couple of Python scripts that grabbed the ec2 instance metadata and the HN front page.
z3t4almost 2 years ago
My editor <a href="https:&#x2F;&#x2F;webide.se&#x2F;" rel="nofollow">https:&#x2F;&#x2F;webide.se&#x2F;</a> use operational transform for undo&#x2F;redo, collaboration, and code replay for macro and tutorials. I think Heroku also started out as an editor, but pivoted to &quot;code-execution as a service&quot;.
brazzledazzlealmost 2 years ago
Just to add to the other voices: executing untrusted code can be extremely dangerous. There’s so many ways to shoot yourself in the foot. I’m not sure if container boundaries are sufficient but each repl shouldn’t share a namespace with the others at the very least.<p>That said it’s pretty smooth and actually usable on mobile. Pretty polished too.
ceepeealmost 2 years ago
I&#x27;m curious if anyone would like to use the code-execution as a service. It&#x27;s basically a websocket based API where you send a blob of code and get execution result as response.<p>In case of REPL, you send STDIN to websocket and get STDOUT as response. All code execution happens in separate Docker containers.
评论 #36088700 未加载
评论 #36089726 未加载
评论 #36091558 未加载
评论 #36088754 未加载
Takennicknamealmost 2 years ago
Where is the code being executed?
评论 #36090932 未加载
评论 #36091113 未加载
pcthrowawayalmost 2 years ago
Nice use of phoenix liveview (I&#x27;m assuming). The app is really smooth, and executes rust faster than the official rust playground
评论 #36091097 未加载
andrewstuartalmost 2 years ago
Is that code mirror?
评论 #36091070 未加载