A web-based code execution environment that allows you to write and run code in multiple programming languages directly in your browser.
- Support for 15+ programming languages (JavaScript, TypeScript, Python, Java, C++, Go, Rust, and more)
- In-browser code editor with syntax highlighting powered by Monaco Editor
- Real-time code execution with output display
- Multi-file support with tabbed interface
- Responsive design that works on desktop and mobile devices
- Frontend: HTML, CSS, JavaScript with Monaco Editor
- Backend: Node.js with Express and TypeScript
- Execution Engine: Direct language interpreters/compilers (node, python, gcc, etc.)
.
├── frontend/ # Static frontend files
│ ├── index.html # Main HTML page
│ ├── style.css # Styling
│ └── script.js # Client-side logic
├── server.ts # Entry point for backend server
├── package.json # NPM configuration and dependencies
└── package-lock.json # Lock file for dependency versions
- Node.js (v14 or higher)
- npm (comes with Node.js)
- Language interpreters/compilers for the languages you want to run:
- Node.js (for JavaScript/TypeScript)
- Python (for Python)
- Java JDK (for Java)
- GCC (for C/C++)
- Go (for Go)
- And others as needed
-
Clone the repository:
git clone https://github.com/IHx-TAXz/code-runner.git cd code-runner -
Install dependencies:
npm install
-
Start the server:
npx ts-node server.ts
-
Open your browser and navigate to
http://localhost:3000
- JavaScript (.js)
- TypeScript (.ts)
- Python (.py)
- PHP (.php)
- Ruby (.rb)
- Go (.go)
- Java (.java)
- C (.c)
- C++ (.cpp)
- Rust (.rs)
- Bash (.sh)
- Lua (.lua)
- Perl (.pl)
- Swift (.swift)
- Kotlin (.kt)
We welcome contributions to Code Runner! Please see our Contributing Guide for information on how to get involved.
Please see our Code of Conduct for guidelines on how to engage with our community.
This project is licensed under the ISC License. See the LICENSE file for details.
Please see our Security Policy for information on how to report security vulnerabilities and our security considerations.
Ihsaan and Rasya - Creator
- Monaco Editor for the excellent in-browser code editor
- Express.js for the web framework
- All the language interpreters and compilers that make this possible