terryoy / chatgpt-web

ChatGPT web interface using the OpenAI API

Home Page:https://niek.github.io/chatgpt-web/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT-web

GitHub Workflow Status JavaScript Style Guide GitHub All Contributors

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 GTP-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.

Development

To run the development server, run

npm ci
npm run dev # or: npm run build

To update the awesome-chatgpt-prompts subtree, run :

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

Use with Docker compose

docker compose up -d

Desktop app

You can also use ChatGPT-web as a desktop app. To do so, install Rust first. Then, simply run npm run tauri dev for the development version or npm run tauri build for the production version of the desktop app. The desktop app will be built 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

🤔 🎨

Modifier Notes(by @terryoy)


  • CSS framework: Bulma CSS
  • Added Tauri for Desktop App support?
    • To install tauri dependencies, you also need to instsall Rust, Tauri-cli(Reference: stackoverflow):
# install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# install tauri-cli
cargo install tauri-cli
  • To run
# start dev app
npm run tauri dev

# build
npm run tauri build
  • Branches:
    • main, my main branch
    • upstream/stage, keep up with upstream's main
    • merge/stream, do the merging job with my main and upstream's main

About

ChatGPT web interface using the OpenAI API

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

License:GNU General Public License v3.0


Languages

Language:Svelte 85.7%Language:HTML 5.2%Language:SCSS 4.8%Language:JavaScript 2.3%Language:TypeScript 1.4%Language:Rust 0.4%Language:Dockerfile 0.2%