Files
chatgpt-web/README.md
Niek van der Maas 2a4aabbe4b Squashed 'src/awesome-chatgpt-prompts/' changes from 8957965..ad10492
ad10492 Merge pull request #750 from nextdoorUncleLiu/develop
4c4ca14 Merge branch 'main' into develop
f9d3913 Update README.md
799b4a1 Merge pull request #757 from buimatt/main
4eac478 Merge pull request #756 from Mike-FreeAI/add-dark-mode
a31541a Update prompts.csv
1f06568 Update README.md
4d388ec Add dark mode and publish to GitHub Pages using GitHub Actions
5d0a253 add prompt Architectural Expert
d56ff0e Update README.md
57a8dc4 add sponsor
70b7283 Add files via upload
9f94573 Merge pull request #725 from Ameya-2003/main
12468c3 An Ethereum Developer prompt, by Ameya.
546ac0e Merge pull request #720 from JulianFisla/patch-1
41ddc9a Update prompts.csv
01263cf Update README.md
b18d60d Merge pull request #714 from yisraeldov/patch-3
483cefd Remove relocated political foolishness.
0dad98a Update README.md
999a373 Update README.md
42293a3 Update README.md
64cfc7b added chatgpt store.
cdd8681 Merge pull request #702 from jaresty/add-find-prompt-utility
46b73c6 Merge pull request #707 from Illyism/patch-1
410e24b Update README.md
ff71a1c Merge pull request #706 from Illyism/patch-1
82f1556 Update prompts.csv
a3554a2 Update README.md
46b7440 Merge pull request #705 from umutphp/main
3ef8d5a Update README.md
24df2af 🇵🇸
311d4a6 Update README.md
4100c34 Merge pull request #704 from shvuuuu/main
4091f07 Update prompts.csv
4981fba Update README.md
3ee3610 find-prompt now takes an argument and also only prints the prompt in the output
19990c8 Make find-prompt executable
eab7244 Add helper script to search for a prompt by name
514989d Merge pull request #597 from iuzn/main
87a9af4 Update README.md
7164404 add @illacloud as sponsor
01211d2 add sponsorship
4dd0655 remove sponsor
d7ac663 Merge branch 'main' into main
6db1612 Added: Prompt Enhancer
162d31f Added: Prompt Enhancer

git-subtree-dir: src/awesome-chatgpt-prompts
git-subtree-split: ad104922e16aa9a7b53f5ce8b40223bb3743328a
2024-08-21 13:59:45 +02:00

15 KiB
Raw Blame History

ChatGPT-web

GitHub Workflow Status JavaScript Style Guide GitHub All Contributors

URL: https://niek.github.io/chatgpt-web/

Screenshot of ChatGPT-web

ChatGPT-web is a simple one-page web interface to the OpenAI ChatGPT API. To use it, you need to register for an OpenAI API key first. All messages are stored in your browser's local storage, so everything is private. You can also close the browser tab and come back later to continue the conversation.

Features

  • Open source: ChatGPT-web is open source (GPL-3.0), so you can host it yourself and make changes as you want.
  • Private: All chats and messages are stored in your browser's local storage, so everything is private.
  • Customizable: You can customize the prompt, the temperature, and other model settings. Multiple models (including GPT-4) are supported.
  • Cheaper: ChatGPT-web uses the commercial OpenAI API, so it's much cheaper than a ChatGPT Plus subscription.
  • Fast: ChatGPT-web is a single-page web app, so it's fast and responsive.
  • Mobile-friendly: ChatGPT-web is mobile-friendly, so you can use it on your phone.
  • Voice input: ChatGPT-web supports voice input, so you can talk to ChatGPT. It will also talk back to you.
  • Pre-selected prompts: ChatGPT-web comes with a list of pre-selected prompts, so you can get started quickly.
  • Export: ChatGPT-web can export chats as a Markdown file, so you can share them with others.
  • Code: ChatGPT-web recognizes and highlights code blocks and allows you to copy them with one click.
  • Desktop app: ChatGPT-web can be bundled as a desktop app, so you can use it outside of the browser.
  • Image generation: ChatGPT-web can generate images using the DALL·E model by using the prompt "show me an image of ...".
  • Streaming: ChatGPT-web can stream the response from the API, so you can see the response as it's being generated.

Development and Building

Heres how to participate in development and prepare your build for production:

Setting Up and Running the Development Server

To install dependencies and start the development server:

npm ci
npm run dev

Preparing the Production Build

To compile the project for production, ensuring optimal performance:

npm run build

This command generates a dist folder containing the production build of your project, ready for deployment.

Incorporating Awesome ChatGPT Prompts

The Awesome ChatGPT Prompts repository is a treasure trove of prompt examples designed for use with the ChatGPT model. This collection can inspire new conversations or expand existing ones with the model. Get involved by adding your prompts or utilizing the repository to inspire your contributions:

To update and integrate the latest prompts from the repository into your project, run:

git subtree pull --prefix src/awesome-chatgpt-prompts https://github.com/f/awesome-chatgpt-prompts.git main --squash

This command synchronizes the latest set of prompts into your project's src/awesome-chatgpt-prompts/ directory, fostering an environment of continuous innovation and expansion.

Using Docker Compose for Local Deployment

Deploying the application and its mocked API locally is streamlined using Docker Compose. By executing the following command, you initialize both services effortlessly:

docker compose up -d

Accessing the Local Web Service

Upon successfully running the Docker Compose command, the local version of the web service becomes accessible. You can interact with it by visiting: http://localhost:5173/

Mocked API Usage

For instances where immediate API responses are preferred, consider utilizing the mocked API. Follow the steps below to configure and customize your mocked API responses:

  • Configuration:

    • Open the .env file located at the project's root.
    • Assign the key VITE_API_BASE=http://localhost:5174 to redirect requests to the mocked API.
    • Execute docker compose up -d mocked_api to start the mocked API service.
  • Customizing Responses:

    • To introduce a delay in the API response, use d followed by the desired number of seconds (e.g., d2 for a 2-second delay).
    • To specify the length of the response, use l followed by the desired number of sentences (e.g., l10 for a response of 10 sentences).
    • For instance, sending d2 l10 configures the mocked API to delay the response by 2 seconds and to include 10 sentences.

Desktop app

To use ChatGPT-web as a desktop application:

  • Installation: First, ensure Rust is installed on your computer.

  • Development Version:

    • Run npm run tauri dev to start the desktop app in development mode.
  • Production Version:

    • Use npm run tauri build to compile the production version of the app.
  • Location of the Built Application:

    • The built application will be available in the src-tauri/target folder.

Contributors

Michael Tanzer
Michael Tanzer

🤔 💻
Peter
Peter

🤔
Dan Brown
Dan Brown

🤔 💻
littlemoonstones
littlemoonstones

💻 🤔
maxrye1996
maxrye1996

🐛
Mikemansour
Mikemansour

🤔
abc91199
abc91199

🤔
fuegovic
fuegovic

🤔
Sixzeroo
Sixzeroo

💻
terryoy
terryoy

🤔 💻
Yang Lyu
Yang Lyu

🐛
ryanhex53
ryanhex53

💻 🎨
Emil Elgaard
Emil Elgaard

🤔 🎨 💻
felixschwamm
felixschwamm

💻 🤔
Webifi
Webifi

💻 🤔
Daniel Dengler
Daniel Dengler

💻
Ashkan
Ashkan

💻
antopoid
antopoid

📖
MitchBoss
MitchBoss

💻
Ikko Eltociear Ashimine
Ikko Eltociear Ashimine

📖
Jackson Stewart
Jackson Stewart

🐛
Niel Thiart
Niel Thiart

💻
Maksim Misin
Maksim Misin

💻
romain.wg
romain.wg

📖
Morgan
Morgan

💻
Udon
Udon

🎨