Skip to content

IHx-TAXz/code-runner

Code Runner

A web-based code execution environment that allows you to write and run code in multiple programming languages directly in your browser.

🚀 Features

  • 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

🛠️ Tech Stack

  • Frontend: HTML, CSS, JavaScript with Monaco Editor
  • Backend: Node.js with Express and TypeScript
  • Execution Engine: Direct language interpreters/compilers (node, python, gcc, etc.)

📁 Project Structure

.
├── 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

▶️ Getting Started

Prerequisites

  • 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

Installation

  1. Clone the repository:

    git clone https://github.com/IHx-TAXz/code-runner.git
    cd code-runner
  2. Install dependencies:

    npm install
  3. Start the server:

    npx ts-node server.ts
  4. Open your browser and navigate to http://localhost:3000

🧪 Supported Languages

  • 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)

🤝 Community

Contributing

We welcome contributions to Code Runner! Please see our Contributing Guide for information on how to get involved.

Code of Conduct

Please see our Code of Conduct for guidelines on how to engage with our community.

📜 License

This project is licensed under the ISC License. See the LICENSE file for details.

🔒 Security Policy

Please see our Security Policy for information on how to report security vulnerabilities and our security considerations.

👥 Author

Ihsaan and Rasya - Creator

🙏 Acknowledgments

  • 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

About

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors