{"id":22570393,"url":"https://github.com/haseeb-heaven/coderunner-chatgpt","last_synced_at":"2025-04-10T13:30:32.479Z","repository":{"id":165432592,"uuid":"640407303","full_name":"haseeb-heaven/coderunner-chatgpt","owner":"haseeb-heaven","description":"Run and save the code in Chat-GPT directly in your browser, Supports upto 70+ languages.","archived":false,"fork":false,"pushed_at":"2025-01-06T19:24:43.000Z","size":2996,"stargazers_count":40,"open_issues_count":1,"forks_count":19,"subscribers_count":2,"default_branch":"server","last_synced_at":"2025-04-10T08:59:50.739Z","etag":null,"topics":["api-rest","chatgppt","chatgpt-api","code-runner","fastapi","gpt-4","gpt-code","python","rest-api"],"latest_commit_sha":null,"homepage":"https://chatgpt.com/g/g-SuWVXlmkP-code-runner","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haseeb-heaven.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2023-05-14T01:33:06.000Z","updated_at":"2025-01-06T19:24:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"c60e2536-35b3-4242-9333-cf13e801c5a6","html_url":"https://github.com/haseeb-heaven/coderunner-chatgpt","commit_stats":null,"previous_names":["haseeb-heaven/coderunner-chatgpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseeb-heaven%2Fcoderunner-chatgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseeb-heaven%2Fcoderunner-chatgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseeb-heaven%2Fcoderunner-chatgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haseeb-heaven%2Fcoderunner-chatgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haseeb-heaven","download_url":"https://codeload.github.com/haseeb-heaven/coderunner-chatgpt/tar.gz/refs/heads/server","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225705,"owners_count":21068078,"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","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":["api-rest","chatgppt","chatgpt-api","code-runner","fastapi","gpt-4","gpt-code","python","rest-api"],"created_at":"2024-12-08T01:08:45.273Z","updated_at":"2025-04-10T13:30:32.467Z","avatar_url":"https://github.com/haseeb-heaven.png","language":"Python","funding_links":["https://www.paypal.com/paypalme/EpicProTeam?country.x=IN\u0026locale.x=en_GB","https://www.buymeacoffee.com/haseebheaven","https://img.buymeacoffee.com/button-api/?text=Support","https://www.paypal.com/paypalme/EpicProTeam"],"categories":[],"sub_categories":[],"readme":"# Code Runner Plugin/GPT\n![cover_logo](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/logo.png?raw=true \"\")\u003c/br\u003e\n[![Plugin](https://img.shields.io/badge/Code%20Runner-Plugin-blue)](https://code-runner-plugin.vercel.app/)\n[![Plugin](https://img.shields.io/badge/Paypal-Support-blue)]([https://code-runner-plugin.vercel.app](https://www.paypal.com/paypalme/EpicProTeam?country.x=IN\u0026locale.x=en_GB))\n[![Code-Runner GPT](https://img.shields.io/badge/Code%20Runner-GPT-blue)](https://chatgpt.com/g/g-SuWVXlmkP-code-runner)\u003c/br\u003e\n\u003ca href=\"https://www.buymeacoffee.com/haseebheaven\"\u003e\u003cimg src=\"https://img.buymeacoffee.com/button-api/?text=Support Code Runner\u0026emoji=\u0026slug=haseebheaven\u0026button_colour=40DCA5\u0026font_colour=ffffff\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=FFDD00\" /\u003e\u003c/a\u003e\n\n\n## Introduction\nCheck out my first awesome plugin for **ChatGPT** that lets you Run code in 70+ languages! 🙌👩‍💻👨‍💻 \u003c/br\u003e\nThis code will run this Plugin on your local machine with localhost:8000 as the URL. \u003c/br\u003e\nIf you want to use Hosted one then check The Website is hosted on [Vercel](https://code-runner.heavenplugins.com)\u003c/br\u003e\nCheckout new designed website for [Code Runner](https://code-runner-plugin.b12sites.com) \u003c/br\u003e\n### NOTE: Plugin has been updated to GPT\nThis plugin has been converted to GPT you can download from `GPT-Store` just search `Code Runner`.\nOr you can chat via this [![Code-Runner GPT](https://img.shields.io/badge/Code%20Runner-GPT-blue)](https://chatgpt.com/g/g-SuWVXlmkP-code-runner)\u003c/br\u003e\n\n## Information\n💻 **Run And Save Code** in over 70 programming languages with ease! **Chat-GPT Code Runner** offers a *versatile* and *flexible* coding experience for developers of all levels.\u003c/br\u003e\n💾 Download Chat-GPT **Code Runner** today and start coding like a pro!\u003c/br\u003e\nReady to supercharge your coding experience? Check out Code Runner Plugin, the ultimate Chat-GPT plugin for running and saving code in over 70 programming languages!\u003c/br\u003e\n\nThis uses JDoodle compiler API to execute your code and provide you with the output.\nCheckout JDoole API [here](https://www.jdoodle.com/compiler-api/).\nThe API Keys are embeded in the code and you get _200_ free API calls per day. Make sure to call Get Credits Spend API to check your remaining credits.\n\n# Version and Update.\nThe current version is *Code Runner 1.3* and important notice.\n### UPDATE:\n\nNew **Free Plans** and **Premium Plan** are available for **Code Runner**. This plan includes the following features:\u003c/br\u003e\n![plugin_pricing](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/server/resources/code-runner-pricing.png?raw=true \"\")\u003c/br\u003e\n\nTo unlock these features, checkout the below links:\u003c/br\u003e\n\n[Pricing Plans](https://code-runner-plugin.b12sites.com/pricing)\u003c/br\u003e\n[Support](https://www.paypal.com/paypalme/EpicProTeam)\u003c/br\u003e\n\n### Features:\n- **Save Snippets:** Save your code snippets for future reference and easy access in image format with color syntax highlighting powered by [Kod.so](https://kod.so).\u003c/br\u003e\n![carbon_cpp_output](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/server/resources/carbon_cpp_output.png?raw=true \"\")\u003c/br\u003e\n[Code Snippets Share Code - ChatGPT](https://chat.openai.com/share/1b61bc05-067b-4779-b208-a297534cba2b)\u003c/br\u003e\n\nFor questions:\n\n- Discord: [Discord](https://discord.gg/BCRUpv4d6H)\n- Github: [Github](https://github.com/haseeb-heaven/CodeRunner-Plugin)\n\nThank you for your support!\n\n### UPDATE:\n- **No Internet Access:** For **privacy** and **security** reasons, the **Python** environment does not have internet access. This means that **Python** libraries that require internet access to fetch data (like requests) won't work in this environment.\n- **Framwork updated:** For this version we have migrated to the *Quart* framework because of limitation of size on *Vercel Serverless functions*.\n\n# Installation.\nTo install the required packages for this plugin, run the following command:\n\n```bash\npip install -r requirements.txt\n```\n\nTo run the plugin, enter the following command:\n\n```bash\npython main.py or  uvicorn main:app --reload\n```\n\n1. Navigate to https://chat.openai.com. \u003c/br\u003e\n2. In the Model drop down, select \"Plugins\" (note, if you don't see it there, you don't have access yet).\u003c/br\u003e\n3. Select \"Plugin store\"\u003c/br\u003e\n4. Search for \"Code Runner\" \u003c/br\u003e\n5. Authenticate the Plugin with your account with authenticaion code recieved in email by PluginLab Support.\u003c/br\u003e\n6. Install and Run the plugin and ask ChatGPT to generate some code you and run them.\u003c/br\u003e\n![search_plugin](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/server/resources/plugin_search_result.png?raw=true \"\")\u003c/br\u003e\n\n## General Information\n\n- Plugin uses the JDoodle Compiler API to execute your code and provide you with the output.\n- Plugin lets you customize your coding environment with different themes and output types.\n- Plugin helps you debug your code with syntax highlighting and error messages.\n- Plugin allows you to save your code locally for future reference and easy access.\n\n## Usage\n\nTo use Code Runner Plugin, follow these steps:\n\n- Load the plugin in Chat-GPT by selecting \"Plugins\" from the Model drop down menu and then choosing \"Code Runner\" from the list of available plugins.\n- Use one of the following prompts in the chat box and press enter:\n\n### Running your code.\n  - Write me a C++ program for factorial of a number and Run the program: This prompt will write a C++ program for the factorial of a number and then run the program.\n  - Given the program [YOUR_CODE] and only compile the program: This prompt will compile the program [YOUR_CODE]. Please replace [YOUR_CODE] with your specific code when using this prompt.\n  ![run_code](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/coderunner_output.png?raw=true \"\")\u003c/br\u003e\n\n### Saving your code.\n- To save your code, use the following prompt in the chat box and press enter:\n\n  - Save the program [YOUR_CODE] with filename [YOUR_FILENAME]: This prompt will save the program [YOUR_CODE] with filename [YOUR_FILENAME]. Please replace [YOUR_CODE] and [YOUR_FILENAME] with your specific code and filename respectively when using this prompt.\n![save_code](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/coderunner_output_save.png?raw=true \"\")\u003c/br\u003e\n\n### Downloading your code.\n- To download your code, use the following prompt in the chat box and press enter:\n\n  - Download the code filename [YOUR_FILENAME]: This prompt will download the code with filename [YOUR_FILENAME]. Please replace [YOUR_FILENAME] with your specific filename when using this prompt.\n![download_code](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/coderunner_output_download.png?raw=true \"\")\u003c/br\u003e\n\n## Features\n\nSome of the features of Code Runner Plugin are:\n\n- Support for over 70 programming languages, including Python, Java, C++, Ruby, PHP, JavaScript, and more.\n- Syntax highlighting and auto-completion for better coding experience.\n- Ability to run and save code locally with a single click.\n- Ability to customize themes and output types for your coding environment.\n- Fast and reliable execution of code using the JDoodle Compiler API.\n\n## Localhost \u0026 Server Files.\nThe localhost and server files are located in the following directories:\n- local: `main.py`\n- Server: `server/main.py`\n\nFor demo purpose i also created this in Quart framework. The files are located in the following directories:\n- Quart Main: `server/main_quart.py`\n\n## Showcase - Demo of Plugin.\u003c/br\u003e\n[![code_plugin_demo](https://img.youtube.com/vi/Ahko7E2S1R8/0.jpg)](https://www.youtube.com/watch?v=Ahko7E2S1R8)\u003c/br\u003e\n\n## Join Community.\nJoin the community of Code-Runner on Discord [here](https://discord.gg/BCRUpv4d6H).\n\n## Help\nTo get help with Code Runner Plugin, use the following prompt in the chat box and press enter: \u003c/br\u003e\n![help](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/coderunner_help_url.png?raw=true \"\")\u003c/br\u003e\n\n## License and Author\nCode Runner Plugin is licensed under the [Proprietary License](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/main/LICENSE).\u003c/br\u003e make sure you read and understands everything written in license and agree to them before using the plugin.\n\n## Privacy Policy.\nThe privacy policy for Plugin and Website could be found here [Privacy Policy](https://code-runner-plugin.vercel.app/privacy)\nmake sure you read them carefully before executing them.\n\nCode Runner Plugin is developed by [Haseeb Heaven](https://github.com/haseeb-heaven), a software engineer and AI enthusiast.\u003c/br\u003e\nIf you have any feedback or suggestions for Code Runner Plugin, feel free to contact me at [Email](haseebmir.hm@gmail.com) or open an issue on GitHub.\u003c/br\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaseeb-heaven%2Fcoderunner-chatgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaseeb-heaven%2Fcoderunner-chatgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaseeb-heaven%2Fcoderunner-chatgpt/lists"}