Show HN: Embed a real Linux terminal on your website

raboukhalil3 pts0 comments

Embed sandbox.bio - sandbox.bio

🥳 sandbox.bio turns 5 this week! Follow along

For Educators

Embed sandbox.bio<br>Add a live terminal to your website or blog post<br>You can embed a sandbox.bio terminal directly on your website or blog post. Simply add this script tag to your page:<br>If you use GitHub Pages, any Markdown code blocks you mark as ```bash will have a "Run" button that executes<br>directly in the embedded terminal. For HTML websites, any with the class "language-bash" will get a "Run"<br>button.<br>You can also customize the embedded terminal by adding attributes to the script tag:<br>data-cwd="folder-name": the starting working directory in the terminal<br>data-config="https://yourwebsite.com/config.json": an optional remote config URL, using the same format as the sandboxbio.config.json file used by the GitHub integration. This file can be hosted<br>on GitHub Pages too.<br>If you need to preload files in the terminal, you can use the array files inside your config, and specify the URLs to<br>where each file lives:<br>tools: [<br>{ "url": "https://.github.io//data/example.bam", "path": "example.bam" }

terminal sandbox config embed github website

Related Articles