Ever typed rm -rf / into your brain before your terminal? Yeahโฆ same.
But what if there was a zero-risk place to try commands without breaking your system or nuking your $HOME folder?
๐งช Meet: TerminalSandbox
This is a web-based terminal sandbox I built for fun (and learning).
It's backed by a FastAPI-powered backend that safely runs Debian-based shell commands in isolated environments โ straight from your browser.
Use it to:
โ
Learn and test Linux CLI basics
โ
Practice without needing a VM or Docker
โ
Demo commands live to others
โ
Build your confidence in Bash, one ls at a time
โ
Feel like a hacker with absolutely no danger ๐จ
๐ But is it safe?
Yes. Iโve sandboxed the environment:
- Every user gets their own temporary isolated directory
- Dangerous patterns like
rm -rf,shutdown,reboot, etc. are blocked - Only safe, whitelisted commands are allowed (with descriptions)
- No persistent file system access
- Sessions expire and self-clean
Think of it like a toddler-safe terminal: you can poke around, break things (sort of), and nothing really explodes.
โ๏ธ Tech Stack
Hereโs the nerdy part:
- FastAPI backend (Python 3.11)
- Async command execution with stdout/stderr capture
-
uvicorn+slowapifor rate limiting - Hosted sessions with UUIDs and safety checks
- Frontend is served via Cloudflare Pages
- Currently supports Debian-based commands only โ but Arch might sneak in soon ๐
๐ฎ Live Demo
๐ Try it here: https://terminalsandbox.pages.dev
๐ Source code: [https://github.com/AbhishekDvs/linux-terminal-sandbox]
๐ข Why I built this
I love Linux. I love web stuff. And I really love giving folks a way to learn without fear.
This started as a sandbox experiment โ now itโs a tool I genuinely use to teach, debug, and play.
If youโve ever wanted to:
- Share shell snippets without spinning up an instance
- Help a friend learn terminal basics
- Or just flex your
htopin peace
Then TerminalSandbox might be your jam. ๐ฅ๏ธ
๐ Try it, Fork it, Break it (Safely)
Give it a spin. Share feedback. Fork it and build your own flavor.
If this project made you smile, star the repo or drop a comment.
Letโs make the terminal a little more welcoming โ one echo at a time.
๐ Built by Abhishek Dvs
If you liked this, check out more of my work and interests on my personal site:
๐ https://abhisdistro.pages.dev
I'd love to hear what you think!
Top comments (0)