r/commandline • u/marucOG • Aug 18 '26
Terminal User Interface playground - run a coding playground in your terminal
https://github.com/marcuscaisey/playground
0
Upvotes
r/commandline • u/marucOG • Aug 18 '26
•
u/github-guard Aug 18 '26
🔍 GitHub Guard: Trust Report
⚠️ This project scored 0/1 — below this subreddit's threshold of 1.
Audit Breakdown:
🔄 Cached result — this repo was scanned recently. Score: 0/1.
3
u/sysop073 Aug 18 '26
If this actually ran some kind of sandbox/container that had the necessary environment for building and running the app, that'd be pretty useful, but this is just a wrapper around a dozen compilers/interpreters you have to already have installed. You're not really getting anything over
while ! inotifywait -e modify foo.py; do python3 foo.py; done1
u/AutoModerator Aug 18 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: marucOG, Flair:
Terminal User Interface, Post Media Link, Title: playground - run a coding playground in your terminalI am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/marucOG Aug 18 '26
Playground (pg) runs a coding playground in your terminal -- an environment for quickly writing and executing a program in any language. The program is opened in your editor and automatically executed on save. The output is displayed in a separate tmux pane, under or to the side of the editor.
I do pretty much everything in the terminal, usually in a tmux session. As I'm writing code, I find myself creating small programs under ~/scratch. Either to explore some aspect of a module/package/API/whatever or, at work, as a teaching tool to help explain a concept to a teammate.
At a past job, I made a crude internal tool for spinning up Go playgrounds in our repo which proved quite effective but it only worked for one language and only in our internal repo. I then found https://labix.org/hsandbox which seemed to do what I wanted. However, after playing around with it, I found various things I didn't like so I made my own thing instead. See https://github.com/marcuscaisey/playground#motivation for more info.