{"id":31648243,"url":"https://github.com/devlopersabbir/executeme","last_synced_at":"2025-10-07T06:59:54.568Z","repository":{"id":301596565,"uuid":"1002141732","full_name":"devlopersabbir/executeme","owner":"devlopersabbir","description":"ExecuteMe allows users to write, execute, and test code in various programming languages directly in the browser. https://devlopersabbir.github.io/executeme","archived":false,"fork":false,"pushed_at":"2025-09-14T13:25:16.000Z","size":2893,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T14:35:02.452Z","etag":null,"topics":["compiler","executeme","hight-performance","next15","nginx-docker"],"latest_commit_sha":null,"homepage":"https://executeme.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devlopersabbir.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-14T20:01:57.000Z","updated_at":"2025-09-14T13:25:19.000Z","dependencies_parsed_at":"2025-06-27T18:24:05.140Z","dependency_job_id":"fca150f4-ea71-4fb9-b4c6-33a012c78f26","html_url":"https://github.com/devlopersabbir/executeme","commit_stats":null,"previous_names":["devlopersabbir/executeme"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/devlopersabbir/executeme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlopersabbir%2Fexecuteme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlopersabbir%2Fexecuteme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlopersabbir%2Fexecuteme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlopersabbir%2Fexecuteme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlopersabbir","download_url":"https://codeload.github.com/devlopersabbir/executeme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlopersabbir%2Fexecuteme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278734416,"owners_count":26036404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","executeme","hight-performance","next15","nginx-docker"],"created_at":"2025-10-07T06:59:48.944Z","updated_at":"2025-10-07T06:59:54.561Z","avatar_url":"https://github.com/devlopersabbir.png","language":"TypeScript","funding_links":["https://github.com/sponsors/devlopersabbir","https://buymeacoffee.com/devlopersabbir"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🚀 ExecuteMe – Run Code Instantly and Securely\u003c/h1\u003e\r\n\r\n**[ExecuteMe](https://executeme.vercel.app)** is a powerful and minimalistic online code execution platform that allows developers to write, run, and test code in multiple programming languages instantly and securely — all within the browser.\r\n\r\nWhether you're experimenting with a new idea or teaching code, ExecuteMe gives you a real-time, sandboxed environment that works out of the box.\r\n\r\n## ✨ Features\r\n- **⚡ Instant Code Execution** – Run your code in real-time with just one click\r\n- **🔒 Secure Sandbox** – Ensures your code runs in a safe, isolated environment\r\n- **🧠 Multi-language Support** – Supports a growing list of languages including:\r\n  - 🐍 Python\r\n  - 🟨 JavaScript\r\n  - 🟦 TypeScript\r\n  - ☕ Java\r\n  - 💙 Kotlin\r\n- **🎨 Full Syntax Highlighting** – Modern and readable code editor with theme support\r\n- **🖥️ Responsive UI** – Works smoothly across all devices\r\n- **🌐 Live User Activity** – Shows active coders in real-time\r\n- **💾 Open Source** – Freely available to use, modify, and contribute\r\n\r\n## 🛠️ Built With\r\n- **⚛️ NextJs** – For frontend and tailwindcss for designing user interface\r\n- **🧰 Monaco Editor** – Powerful web-based code editor (from VS Code)\r\n- **🌍 Node.js + Express** – Backend service for execution management\r\n- **🔄 Docker** – Containerized code execution\r\n- **📡 Socket.IO** – Real-time connection to track active users\r\n- **📁 NodeCache** – In-memory cache for managing live sessions\r\n- **🔐 Custom Docker Images** – Tailored environments per language\r\n\r\n## 🧩 Architecture \u0026 Execution Challenges\r\nDesigning ExecuteMe required solving real-world challenges in scalability, isolation, and memory/resource management:\r\n\r\n## ⚙️ On-Demand Container Execution\r\n- 📦 Each execution triggers a **new Docker container**, isolated per language and user\r\n- 🧾 Code is saved temporarily in a unique `UUID` directory (e.g., `/temp/\u003cuuid\u003e`)\r\n- 🧼 After execution, both the **container and the temporary code directory** are destroyed automatically\r\n- ✅ Ensures **complete statelessness** and no leftover data between runs\r\n\r\n## 🧠 Memory \u0026 CPU Management\r\n- 🧠 Containers are limited via flags:\r\n  --memory=512m and --cpus=0.5\r\n- 🔁 Ensures no user can overuse system resources\r\n- 🧹 Automatic cleanup after every run helps maintain low disk and memory usage\r\n\r\n## 🔁 Concurrent Execution Handling\r\n- ⏱️ Uses `async/await` and `promisify(exec)` to avoid blocking the event loop\r\n- ⚡ Handles **multiple user requests at the same time**, spawning separate containers for each\r\n- 🛠️ Every language is handled via its own custom-built Docker image (`executor-python`, `executor-java`, etc.)\r\n\r\n## 🔒 Security Isolation\r\n- 🔐 Code runs in **completely sandboxed containers** with:\r\n  - No access to host machine\r\n  - No persistent file system or shared memory\r\n- 🚫 Containers are removed after use with --rm to prevent abuse\r\n- ✅ Each language has its own minimal, locked-down Docker image\r\n\r\n## 👥 Real-Time User Tracking\r\n- 📡 `Socket.IO + NodeCache` manage user connections in real-time\r\n- 👀 Displays current active users to the frontend\r\n- ♻️ Cleans up cache on disconnect to prevent stale connections\r\n\r\n## 📋 Prerequisites - For contribution\r\nBefore you get started, ensure you have the following installed on your system:\r\n\r\n- [**Docker**](https://docs.docker.com/get-docker/): Docker Engine and Docker Compose (Docker Desktop includes both).\r\n\r\n- [**Node.js**](https://nodejs.org/en/download/) (LTS version, e.g., 20.x or higher)\r\n\r\n- [**npm**](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) (comes with Node.js)\r\n\r\n## 🧑‍💻 Contributing \u0026 Supporting\r\n\r\n`executeme` is a fully open-source project, and contributions are highly encouraged! Whether it's adding new language support, improving performance, fixing bugs, or enhancing documentation, your input is valuable.\r\n\r\n### How to Contribute:\r\n\r\n1.  Fork the [GitHub repository](https://github.com/devlopersabbir/executeme).\r\n2.  Clone your fork.\r\n3.  Create a new branch for your feature or bug fix.\r\n4.  Make your changes, write tests, and ensure code quality.\r\n5.  Open a Pull Request with a clear description of your work.\r\n\r\n## 📄 License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details.\r\n\r\n### Support the Project:\r\n\r\nIf `executeme` helps you or your project, consider showing your support. Your contributions help maintain and improve this tool for the entire developer community!\r\n\r\n- **Sponsor on GitHub:** [https://github.com/sponsors/devlopersabbir](https://github.com/sponsors/devlopersabbir)\r\n- **Buy Me a Coffee:** [https://buymeacoffee.com/devlopersabbir](https://buymeacoffee.com/devlopersabbir)\r\n\r\n### Specially Thanks 💕\r\n\u003ca href=\"https://github.com/devlopersabbir/executeme/graphs/contributors\"\u003e\r\n  \u003cimg src=\"https://contrib.rocks/image?repo=devlopersabbir/executeme\" /\u003e\r\n\u003c/a\u003e\r\n\r\nMade with [contrib.rocks](https://contrib.rocks).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlopersabbir%2Fexecuteme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlopersabbir%2Fexecuteme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlopersabbir%2Fexecuteme/lists"}