Skip to content

Latest commit

 

History

History
93 lines (60 loc) · 2.6 KB

README.md

File metadata and controls

93 lines (60 loc) · 2.6 KB

🚀 Full-Stack Code Compiler

A blazing-fast online code compiler supporting multiple languages, built with Next.js, Express, and Redis. Execute code in real-time with a smooth developer experience.

🌟 Features

  • 🖥️ Multi-Language Support – Compile and run multiple programming languages.
  • Instant Execution – Optimized for low-latency code execution.
  • 🌐 Web-Based – No installation required, just open and start coding.
  • 🔐 Secure Execution – Sandboxed environment to ensure safe code execution.
  • 📜 Syntax Highlighting – Integrated with Code Mirror Editor for a smooth coding experience.
  • 🤓 Supports Vim Mode - Supports vim mode, so nerds can use it.

🌍 Live Demo

Check out the live version here: Live Compiler

⚠️ Note: The hosted version may not be blazingly fast due to VPS limitations (I'm running this on a budget 😅). Expect occasional delays in execution times.

🛠️ Tech Stack

  • Frontend: Next.js, React, Code Mirror Editor
  • Backend: Express.js, Docker
  • Database: Prisma, Redis
  • Execution Engine: Dockerized runtime
  • Deployment: Vercel (Frontend), VPS (Backend)
  • Mono-Repo Management: Turborepo

🧾 Execution Details

  • Memory Limit: 128MB
  • CPU Limit: 0.5 CPU
  • Execution Timeout: 10 seconds
  • Number of Workers: 1
  • Supported Languages: Python, Javascript, C, Java

🚀 Getting Started

Prerequisites

Make sure you have the following installed:

  • Node.js & npm
  • Docker (if using testing execution)

Installation

git clone https://github.com/wiper-r/code-compiler.git
cd code-compiler
pnpm install

Running the Project

Start docker services:

docker compose -f docker-compose.dev.yml up

Start the project:

pnpm dev

Visit http://localhost:3000 to start coding!

🔒 Privacy & Telemetry

We collect basic telemetry data to improve the compiler and understand usage trends. This includes:

  • The number of snippets compiled
  • The most frequently used programming languages

No personal or sensitive data is stored. The collected data helps us optimize performance and prioritize language support. If you have concerns, feel free to reach out or check the source code for transparency.

🤝 Contributing

Contributions are welcome! If you’d like to improve this project, feel free to:

  • Open an issue for feature requests or bugs
  • Submit a pull request with your improvements
  • Star the repo to show support ⭐

📜 License

MIT License. Feel free to use, modify, and share!


Happy coding! 💻🔥