https://github.com/shadowshahriar/crunchy-runner
A simple web-based compiler and code runner.
https://github.com/shadowshahriar/crunchy-runner
c-compiler cpp-compiler node-pty xterm-js
Last synced: over 1 year ago
JSON representation
A simple web-based compiler and code runner.
- Host: GitHub
- URL: https://github.com/shadowshahriar/crunchy-runner
- Owner: ShadowShahriar
- License: mit
- Created: 2024-05-16T18:59:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T12:56:50.000Z (over 1 year ago)
- Last Synced: 2025-01-29T03:49:27.713Z (over 1 year ago)
- Topics: c-compiler, cpp-compiler, node-pty, xterm-js
- Language: JavaScript
- Homepage: https://youtu.be/MHisDMl7HQI
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Crunchy Runner
## Overview
> **Crunchy Runner** is a local compiler and code runner created with web technologies. It uses [`node-pty`][1] to create a terminal instance that users can interact with in the front end using [`xterm.js`][2]
**Update:** Added support for **C#**, **Java**, **Python**, **JavaScript**, and **Go**.
[📌 **Video Demo**][8]

This project was _heavily_ inspired by the [**Programiz Online C Compiler**][3], but it lacked themes and customizability. So, I decided to create something similar with more features.
Initially, it started as a weekend project where I learned how to connect the backend with the frontend using [`express.js`][4] and [**web sockets**][5].
Special thanks to [**Ehsanul Haque**][11] vaiya for this project idea. I had a great time brainstorming this one.
## Prerequisites
This project depends on `node-pty`, which in turn depends on an older version of Node.js (**
[1]: https://www.npmjs.com/package/node-pty
[2]: https://xtermjs.org/
[3]: https://www.programiz.com/c-programming/online-compiler/
[4]: https://expressjs.com/
[5]: https://www.npmjs.com/package/ws
[6]: https://github.com/coreybutler/nvm-windows/releases/tag/1.1.12
[7]: https://github.com/microsoft/node-pty#windows
[8]: https://youtu.be/MHisDMl7HQI
[9]: https://codemirror.net/
[10]: ./LICENSE
[11]: https://www.facebook.com/61556343740668/
[12]: https://nodejs.org/en/blog/release/v17.9.1
[13]: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
[14]: https://aka.ms/vs/14/release/vcpp_spectre_libs_x64
[15]: https://www.python.org/downloads/release/python-2715/
[16]: https://www.msys2.org/
[17]: https://stackoverflow.com/a/47624225
[18]: https://www.oracle.com/java/technologies/downloads/
[19]: https://www.python.org/downloads/
[20]: https://nodejs.org/en/download/package-manager
[21]: https://www.codeblocks.org/
[22]: https://go.dev/dl/