Skip to content

tolgakurtuluss/shinychatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ShinyChatGPT - OpenAI ChatGPT Clone with Shiny

A beautiful, themeable, and user-friendly R Shiny interface for interacting with OpenAI's Chat Completions API.
Inspired by the official OpenAI Playground, this app supports:

  • βœ… Chat with GPT models (gpt-3.5-turbo, gpt-4, gpt-4o, etc.)
  • 🎨 Light/Dark theme toggle (with local storage memory)
  • πŸ”„ Loading spinner while waiting for API
  • πŸ’¬ Chat history with styled bubbles
  • βš™οΈ Adjustable temperature, max tokens, and system prompt
  • πŸ“€ Download chat history
  • 🧼 Clear chat button
  • 🧩 Responsive layout with custom styling

🌐 App Interface

The clean and intuitive UI is designed to make interactions seamless and visually appealing.

Dark Mode Example Dark Mode Example

White Mode Example White Mode Example

Chat Interface Example Chat Interface Example


πŸ“¦ Requirements

  • R β‰₯ 4.0
  • Shiny
  • shinyjs
  • httr
  • jsonlite

πŸš€ Try It Out on shinyapps.io

Experience ShinyChatGPT live on Shinyapps.io!

πŸ‘‰ Launch the App on shinyapps.io


πŸš€ Running Locally

Follow these steps to run ShinyChatGPT on your local machine:

1. Prerequisites

  • R: Ensure you have R installed. You can download it from the R project website.
  • RStudio IDE (Recommended): While not strictly necessary, RStudio provides a user-friendly environment for R development. Download it from the RStudio website.

2. Clone the Repository

Open your terminal or command prompt and run the following commands:

git clone https://github.com/tolgakurtuluss/shinychatgpt.git
cd shinychatgpt

3. Install Dependencies

You need to install the R packages listed in the "Dependencies" section. Open R or RStudio and run the following command in the R console:

install.packages(c("shiny", "shinyjs", "httr", "jsonlite"))

4. Run the App

There are a couple of ways to run the app:

  • Using RStudio:
    1. Open the shinychatgpt.R file in RStudio.
    2. Click the "Run App" button that appears at the top of the script editor.
  • Using the R Console:
    1. Navigate to the project directory (shinychatgpt) in your R console.
    2. Run the command: shiny::runApp()

Once the app is running, it should open in your default web browser.

About

The OpenAI Playground - ChatGPT Clone with Shiny application is built using the R programming language and the Shiny framework.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages