chatgpt-web  by Niek

Web interface for OpenAI's ChatGPT API

created 2 years ago
1,977 stars

Top 22.8% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a feature-rich, open-source web interface for interacting with OpenAI's ChatGPT API, targeting users who want a customizable, private, and cost-effective alternative to official ChatGPT subscriptions. It offers a fast, mobile-friendly experience with features like voice input, prompt customization, and chat export.

How It Works

ChatGPT-web is a single-page web application built with modern web technologies. It leverages the OpenAI API for natural language processing and generation, allowing users to select different models, including GPT-4. All conversation data is stored locally in the browser's local storage, ensuring user privacy and persistence across sessions. The interface supports streaming responses for a more interactive feel and includes DALL·E integration for image generation.

Quick Start & Requirements

  • Install dependencies and start the development server: npm ci followed by npm run dev.
  • For production build: npm run build.
  • To integrate latest prompts: git subtree pull --prefix src/awesome-chatgpt-prompts https://github.com/f/awesome-chatgpt-prompts.git main --squash.
  • Docker Compose for local deployment: docker compose up -d.
  • Access local service: http://localhost:5173/.
  • Mocked API configuration: Set VITE_API_BASE=http://localhost:5174 in .env and run docker compose up -d mocked_api.
  • Desktop app development: Requires Rust. Run npm run tauri dev. Production build: npm run tauri build.

Highlighted Details

  • Supports multiple OpenAI models, including GPT-4.
  • Features voice input and text-to-speech capabilities.
  • Integrates image generation via DALL·E.
  • Chats are exportable as Markdown files.
  • Can be packaged as a desktop application using Tauri.

Maintenance & Community

The project has a diverse list of contributors, indicated by emojis for their contributions (e.g., 🤔 for core development, 💻 for code, 🐛 for bug fixes, 🎨 for design, 📖 for documentation).

Licensing & Compatibility

Licensed under GPL-3.0. This is a strong copyleft license, meaning derivative works must also be open-sourced under the same license.

Limitations & Caveats

Requires an OpenAI API key, incurring costs based on usage. The GPL-3.0 license may impose restrictions on integrating this code into proprietary, closed-source applications.

Health Check
Last commit

2 months ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
16 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.