An open API service indexing awesome lists of open source software.

https://github.com/haseeb-heaven/code-runner-extension

Run and save the code in ChatGPT. Supports upto 70+ languages.
https://github.com/haseeb-heaven/code-runner-extension

ai-code chat-gpt chat-gpt-3 chat-gpt-code-run code-runner gpt gpt-4 gpt-code openai

Last synced: 10 months ago
JSON representation

Run and save the code in ChatGPT. Supports upto 70+ languages.

Awesome Lists containing this project

README

          

![cover_logo](https://github.com/haseeb-heaven/ChatGPT-CodeRunner/blob/master/resources/logo.png?raw=true "")
# Chat-GPT Code Runner

Chat-GPT Code Runner is a _Google Chrome_ extension that enables you to **Run Code** and **Save code** in more than **70 programming languages** using the **JDoodle Compiler _API_**. This powerful tool offers a variety of **themes** and the ability to _save_ your code locally. Enhance your coding experience with Chat-GPT Code Runner!
- **Support this Project**
## Features

- **Save Code Locally**: Save your code to your local machine for easy access and management.
- **Run Code in 70+ Languages**: Supports over 70 programming languages, offering versatility and flexibility for your coding needs.
- **JDoodle Compiler**: Utilizes the JDoodle Compiler API to compile and run code online.
- **Multiple Themes**: Choose from a variety of themes to customize your coding environment.

## Installation and Setup

1. Clone or download the repository to your local machine.
2. Follow the instructions on [this page](https://www.jdoodle.com/compiler-api/) to create a free JDoodle account and obtain your API Key and Secret. With a free account, you'll receive 200 credits per day.
3. Install the extension in your Google Chrome browser:
- Open the Extension Management page by navigating to `chrome://extensions`.
- Enable Developer Mode by clicking the toggle switch next to "Developer mode".
- Click the "Load unpacked" button and select the extension directory.
4. Configure the extension settings:
- Open the extension's settings by right-clicking the Chat-GPT Code Runner icon in your browser and selecting "Options".
- Enter your JDoodle API Key and Secret in the corresponding fields and save the settings.

Now you're ready to use Chat-GPT Code Runner!

## Usage

1.Ask **ChatGPT** to generate code for you.
2.Now you will see two buttons as **Run Code** and **Save Code** in the browser.
3.Now click on **Run Code** to run the code and you can see the output directly in the browser.
4.Now click on **Save Code** to save the code in your local machine.

## Usage Demo.
1. Demo of Python code generated by ChatGPT.
![python_code](https://github.com/haseeb-heaven/ChatGPT-CodeRunner/blob/master/resources/python_factorial.png?raw=true "")
2. Demo of C++ code generated by ChatGPT.
![cpp_code](https://github.com/haseeb-heaven/ChatGPT-CodeRunner/blob/master/resources/cpp_factorial.png?raw=true "")
3. Demo of Java code generated by ChatGPT.
![java_code](https://github.com/haseeb-heaven/ChatGPT-CodeRunner/blob/master/resources/java_sum_even.png?raw=true "")
4. Demo of C# code generated by ChatGPT.
![csharp_code](https://github.com/haseeb-heaven/ChatGPT-CodeRunner/blob/master/resources/csharp_sum_even.png?raw=true "")

# Video Demo.
This showcase video demo of **ChatGP**T _Code runner_ in action showing **Save** and **Run** code features.
[![video_demo](https://img.youtube.com/vi/W9OWmsmINSo/0.jpg)](https://www.youtube.com/shorts/W9OWmsmINSo)

## Settings and customization.
![settings_page](https://github.com/haseeb-heaven/ChatGPT-CodeRunner/blob/master/resources/settings.png?raw=true "")
This extesion also provides you the ability to customize the theme of the buttons and output type.
1. **Theme**: You can choose from the _10 themes_ available.
2. **Output Type**: You can choose from the 2 output types available.
3. **Run Code**: You can choose from the 2 options available.
4. **Save Code**: You can choose set custom **file name** and **file extension** for the code to be saved.

Written by **_HeavenHM @ 2023_** .