Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haseeb-heaven/coderunner-chatgpt
Run and save the code in Chat-GPT directly in your browser, Supports upto 70+ languages.
https://github.com/haseeb-heaven/coderunner-chatgpt
api-rest chatgppt chatgpt-api code-runner fastapi gpt-4 gpt-code python rest-api
Last synced: 18 days ago
JSON representation
Run and save the code in Chat-GPT directly in your browser, Supports upto 70+ languages.
- Host: GitHub
- URL: https://github.com/haseeb-heaven/coderunner-chatgpt
- Owner: haseeb-heaven
- License: other
- Created: 2023-05-14T01:33:06.000Z (over 1 year ago)
- Default Branch: server
- Last Pushed: 2023-07-19T11:56:56.000Z (over 1 year ago)
- Last Synced: 2024-11-30T18:09:59.107Z (25 days ago)
- Topics: api-rest, chatgppt, chatgpt-api, code-runner, fastapi, gpt-4, gpt-code, python, rest-api
- Language: Python
- Homepage: http://code-runner.heavenplugins.com
- Size: 3.02 MB
- Stars: 40
- Watchers: 2
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code Runner Plugin
![cover_logo](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/logo.png?raw=true "")
[![Plugin](https://img.shields.io/badge/Code%20Runner-Plugin-blue)](https://code-runner-plugin.vercel.app/)
[![Plugin - Manifest](https://img.shields.io/badge/Code%20Runner-Manifest-blue)](https://code-runner-plugin.vercel.app/.well-known/ai-plugin.json)
[![Plugin](https://img.shields.io/badge/Paypal-Support-blue)]([https://code-runner-plugin.vercel.app](https://www.paypal.com/paypalme/EpicProTeam?country.x=IN&locale.x=en_GB))## Introduction
Check out my first awesome plugin for **ChatGPT** that lets you Run code in 70+ languages! 🙌👩💻👨💻
This code will run this Plugin on your local machine with localhost:8000 as the URL.
If you want to use Hosted one then check The Website is hosted on [Vercel](https://code-runner.heavenplugins.com)
Checkout new designed website for [Code Runner](https://code-runner-plugin.b12sites.com)## Information
💻 **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.
💾 Download Chat-GPT **Code Runner** today and start coding like a pro!
Ready 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!This uses JDoodle compiler API to execute your code and provide you with the output.
Checkout JDoole API [here](https://www.jdoodle.com/compiler-api/).
The 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.# Version and Update.
The current version is *Code Runner 1.3* and important notice.
### UPDATE:New **Free Plans** and **Premium Plan** are available for **Code Runner**. This plan includes the following features:
![plugin_pricing](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/server/resources/code-runner-pricing.png?raw=true "")To unlock these features, checkout the below links:
[Pricing Plans](https://code-runner-plugin.b12sites.com/pricing)
[Support](https://www.paypal.com/paypalme/EpicProTeam)### Features:
- **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).
![carbon_cpp_output](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/server/resources/carbon_cpp_output.png?raw=true "")
[Code Snippets Share Code - ChatGPT](https://chat.openai.com/share/1b61bc05-067b-4779-b208-a297534cba2b)For questions:
- Discord: [Discord](https://discord.gg/BCRUpv4d6H)
- Github: [Github](https://github.com/haseeb-heaven/CodeRunner-Plugin)Thank you for your support!
### UPDATE:
- **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.
- **Framwork updated:** For this version we have migrated to the *Quart* framework because of limitation of size on *Vercel Serverless functions*.# Installation.
To install the required packages for this plugin, run the following command:```bash
pip install -r requirements.txt
```To run the plugin, enter the following command:
```bash
python main.py or uvicorn main:app --reload
```1. Navigate to https://chat.openai.com.
2. In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
3. Select "Plugin store"
4. Search for "Code Runner"
5. Authenticate the Plugin with your account with authenticaion code recieved in email by PluginLab Support.
6. Install and Run the plugin and ask ChatGPT to generate some code you and run them.
![search_plugin](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/server/resources/plugin_search_result.png?raw=true "")## General Information
- Plugin uses the JDoodle Compiler API to execute your code and provide you with the output.
- Plugin lets you customize your coding environment with different themes and output types.
- Plugin helps you debug your code with syntax highlighting and error messages.
- Plugin allows you to save your code locally for future reference and easy access.## Usage
To use Code Runner Plugin, follow these steps:
- 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.
- Use one of the following prompts in the chat box and press enter:### Running your code.
- 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.
- 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.
![run_code](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/coderunner_output.png?raw=true "")### Saving your code.
- To save your code, use the following prompt in the chat box and press enter:- 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.
![save_code](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/coderunner_output_save.png?raw=true "")### Downloading your code.
- To download your code, use the following prompt in the chat box and press enter:- 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.
![download_code](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/coderunner_output_download.png?raw=true "")## Features
Some of the features of Code Runner Plugin are:
- Support for over 70 programming languages, including Python, Java, C++, Ruby, PHP, JavaScript, and more.
- Syntax highlighting and auto-completion for better coding experience.
- Ability to run and save code locally with a single click.
- Ability to customize themes and output types for your coding environment.
- Fast and reliable execution of code using the JDoodle Compiler API.## Localhost & Server Files.
The localhost and server files are located in the following directories:
- local: `main.py`
- Server: `server/main.py`For demo purpose i also created this in Quart framework. The files are located in the following directories:
- Quart Main: `server/main_quart.py`## Showcase - Demo of Plugin.
[![code_plugin_demo](https://img.youtube.com/vi/Ahko7E2S1R8/0.jpg)](https://www.youtube.com/watch?v=Ahko7E2S1R8)## Join Community.
Join the community of Code-Runner on Discord [here](https://discord.gg/BCRUpv4d6H).## Help
To get help with Code Runner Plugin, use the following prompt in the chat box and press enter:
![help](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/master/resources/coderunner_help_url.png?raw=true "")## License and Author
Code Runner Plugin is licensed under the [Proprietary License](https://github.com/haseeb-heaven/CodeRunner-Plugin/blob/main/LICENSE). make sure you read and understands everything written in license and agree to them before using the plugin.## Privacy Policy.
The privacy policy for Plugin and Website could be found here [Privacy Policy](https://code-runner-plugin.vercel.app/privacy)
make sure you read them carefully before executing them.Code Runner Plugin is developed by [Haseeb Heaven](https://github.com/haseeb-heaven), a software engineer and AI enthusiast.
If you have any feedback or suggestions for Code Runner Plugin, feel free to contact me at [Email]([email protected]) or open an issue on GitHub.