Skip to content

Latest commit

Β 

History

History
125 lines (81 loc) Β· 3.27 KB

File metadata and controls

125 lines (81 loc) Β· 3.27 KB

πŸ€– deep-chat – A ChatGPT Clone using DeepSeek API

Welcome to deep-chat, a modern and responsive AI chatbot interface built using HTML, CSS, and JavaScript, powered by the DeepSeek API via OpenRouter. This lightweight and clean interface replicates a ChatGPT-style experience with full support for markdown, code rendering, session history, dark/light theme, and more.

deep-chat
HTML CSS JavaScript Responsive


πŸš€ Features

  • πŸŒ— Dark / Light Theme Toggle
  • πŸ“œ Persistent Chat History (Stored in Local Storage)
  • ⌨️ Markdown & Code Block Support
  • πŸ” New Chat Session with Reset
  • πŸ” Searchable Sidebar for Previous Chats
  • πŸ—‘οΈ Delete Old Chat Sessions
  • πŸ“± Fully Responsive for Mobile and Desktop
  • πŸ”’ Environment-safe API Key Handling

🌐 Live Preview

πŸ”— Click here for Live Demo


πŸ“Έ Screenshots

πŸ’¬ Chat Interface (Dark Mode)

Chat UI Dark

β˜€οΈ Light Mode Enabled

Chat UI Light

🧠 Chat History Sidebar

Chat History


πŸ› οΈ Technologies Used

  • Frontend: HTML, CSS (custom + responsive), Vanilla JavaScript
  • API Integration: DeepSeek via OpenRouter
  • Markdown Parser: Custom JavaScript renderer with support for:
    • Code Blocks
    • Bold/Italic/Strikethrough
    • Lists & Headings
    • Blockquotes & Hyperlinks

πŸ§‘β€πŸ’» How to Run Locally

  1. Clone this repository

    git clone https://github.com/CodeWithVedang/deep-chat.git
    cd deep-chat
    
    
  2. Set up your OpenRouter API key

    Create a .env file (if using a backend or Vercel) and add:

    CHAT_API_KEY=your_openrouter_api_key_here
  3. Run with Live Server or deploy to Vercel

    For development:

    npm install -g live-server
    live-server

πŸ“ Project Structure

deep-chat/
β”œβ”€β”€ index.html         # Main HTML structure
β”œβ”€β”€ style.css          # All custom and responsive styles
β”œβ”€β”€ script.js          # Client-side logic, chat rendering, and theme
β”œβ”€β”€ api/chat.js        # Backend API call to DeepSeek via OpenRouter
└── assets/            # (Add your screenshots here)

⚠️ Note on API Usage

The chat interface uses the DeepSeek model from OpenRouter:

  • Model: deepseek/deepseek-r1-0528:free
  • All responses are structured in Markdown and English.

Ensure your API key is kept private and secure (not exposed in the frontend).


πŸ™‹β€β™‚οΈ Author

Vedang Shelatkar πŸ”— GitHub Profile 🧠 Passionate about building intelligent UIs & automation.


πŸ“ƒ License

This project is open-source and available under the MIT License.


✨ Feel free to fork, contribute, or drop a ⭐ if you like this project!