Skip to content
tks98Public

About

A browser IDE with a real terminal: run Python, C++, Rust, Java and 12 more languages, or learn Linux and Docker. All on WebAssembly, with nothing to install.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Opcode

A browser IDE with a real terminal. Write and run code in 16 languages, or learn the Linux command line and Docker on a real Linux computer, with nothing to install. Everything runs in your browser on WebAssembly: no server ever runs your code.

Try it · Documentation · Host your own

A Python project in Opcode: the editor above, and the program running in the terminal below

Features

  • A real terminal for every project: Bash, coreutils, nano and your files in ~, with real compilers and interpreters. Run types the command for you (python3 main.py, cargo run, dotnet run), so you see what happens and can change it. Programs read keyboard input, and Ctrl+C stops them.
  • 16 languages: Python, web pages, JavaScript, TypeScript, Java, C#, C, C++, Rust, Go, Ruby, PHP, R, Lua, SQL and Bash. Each downloads the first time you use it, then comes from the browser's cache.
  • Linux and Docker machines: a real Alpine Linux computer, and one with Docker Engine, each with a built-in tutorial that checks your work.
  • Web preview: servers started in the terminal, web pages and R's plots open beside the editor.
  • Your code stays with you: projects and machines are saved in your browser, and never uploaded.
  • Works in Chrome, Edge, Firefox and Safari, on computers and Chromebooks, and on iPhone and iPad (iOS 27 or later) and Android phones and tablets.
  • Made for touch too: on a phone the screen goes to the editor or the terminal you're typing in, a key bar adds Esc, Tab, Ctrl, Ctrl+C and the arrows above the keyboard, and a finger scrolls the terminal.
A Docker machine: nginx runs in a container, and its page opens in the preview An R project: the script's output in the terminal, and its bar chart in the preview
Real Docker, with a container's web page in the preview R, with its plots in the preview

On iPhone and iPad

Opcode on an iPhone: a Python program in the editor, and its output in the terminal below Opcode on an iPhone with the keyboard open: the terminal fills the screen above it, with a bar of Esc, Tab, Ctrl, Ctrl+C and arrow keys Opcode on an iPad: a Rust program compiled with rustc and run in the terminal
Python on an iPhone The terminal and its key bar, above the keyboard Rust, compiled and run on an iPad

How it works

How Opcode works: the editor, terminal, preview, project sandbox, compilers and Linux machines all run in the browser; the network only provides files, an optional internet relay and the preview host

Each project runs in its own sandbox of WASIX programs on the Wasmer SDK, compilers such as Clang run in Web Workers, and the Linux and Docker machines are whole x86 PCs emulated by v86. The server only hands out files, so Opcode can be hosted as a static site. More in How it works.

Quick start

Use it: open https://opcode-dev.com, on a computer, phone or tablet.

Run it locally (Node.js 20 or later):

npm install
npm run dev        # then open http://localhost:5173

Host your own, with the Docker image:

docker run --rm -p 8080:8080 ghcr.io/tks98/opcode     # then open http://localhost:8080

or as a static site, such as GitHub Pages. Deploying covers HTTPS, internet access for terminals, and the settings.

Documentation

Using Opcode Projects, the terminal, files, the web preview, keyboard shortcuts
Languages Every language: its run command, toolchain and download size
Linux and Docker machines The machines, their tutorials, saving and sharing them
Deploying The Docker image, static hosting, the internet relay and the preview host
How it works The sandbox, the shell, the compilers and file sync
Development Scripts, tests and the project's layout
Limitations What doesn't work, or works differently
Design Colours, type and the notebook look

License

Copyright © 2026 tks98. Opcode is free software under the GNU Affero General Public License, version 3 or later: if you run a changed version for other people, offer them its source code (the start screen links to it, SOURCE_URL in src/lib/components/StartScreen.svelte). It includes and serves other open source software, listed with its licenses in THIRD_PARTY_NOTICES.md.

About

A browser IDE with a real terminal: run Python, C++, Rust, Java and 12 more languages, or learn Linux and Docker. All on WebAssembly, with nothing to install.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages