Skip to content

About

πŸŒ™ AI Live Viewer – A powerful Chrome Extension to live-stream, edit, and export AI responses from DeepSeek, ChatGPT, Claude, and Gemini. Features real-time rendering, IndexedDB history, and professional PDF/DOC exports with full Sinhala Unicode support.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒ™ AI Live Viewer

Built late at night by Damindu πŸŒ™

A powerful Chrome Extension that live-streams AI responses (DeepSeek, ChatGPT, Claude, Gemini) into a standalone, feature-rich viewer window with full editing, exporting, and history management.


✨ Features

Feature Description
πŸ”΄ Live Streaming Watch AI responses render in real-time in a separate window
πŸŒ“ Light/Dark Mode Toggle between light and dark themes
πŸ” Zoom Controls Zoom in/out for comfortable reading
πŸ“ Editable Output Edit the AI response directly in the viewer
πŸ“„ PDF Export Export responses as clean PDF (white bg, black text)
πŸ“‹ DOC Export Export responses as Word documents
πŸ—‚οΈ Chat History All chats auto-saved with IndexedDB (Dexie.js)
πŸ“ Organized Sidebar Chats grouped by AI model β†’ topic β†’ responses
πŸ”½ Expand/Collapse Collapsible folder tree for easy navigation
πŸ—‘οΈ Delete Chats Delete individual responses or entire chat sessions
πŸ‡±πŸ‡° Sinhala Support Full Unicode & Sinhala font rendering in exports
πŸ–ΌοΈ Image Handling Responsive image sizing, no overflow

πŸ€– Supported AI Platforms

  • DeepSeek β€” chat.deepseek.com
  • ChatGPT β€” chatgpt.com
  • Claude β€” claude.ai
  • Gemini β€” gemini.google.com

πŸ“¦ Installation

From Source (Developer Mode)

  1. Clone the repository

    git clone https://github.com/DaminduRat/ai-live-viewer.git
  2. Open Chrome Extensions

    • Navigate to chrome://extensions/
    • Enable Developer mode (top-right toggle)
  3. Load the extension

    • Click "Load unpacked"
    • Select the ai-live-viewer-extension folder
  4. Start using

    • Go to any supported AI platform (DeepSeek, ChatGPT, etc.)
    • Click the extension icon in the toolbar
    • Start chatting β€” responses stream live to the viewer!

πŸ—οΈ Project Structure

ai-live-viewer-extension/
β”œβ”€β”€ manifest.json          # Chrome Extension manifest (MV3)
β”œβ”€β”€ background.js          # Service worker - manages viewer window
β”œβ”€β”€ content.js             # Content script - observes AI responses
β”œβ”€β”€ icons/                 # Extension icons
β”‚   β”œβ”€β”€ icon16.png
β”‚   β”œβ”€β”€ icon48.png
β”‚   └── icon128.png
└── viewer/                # Standalone viewer window
    β”œβ”€β”€ index.html         # Viewer UI
    β”œβ”€β”€ styles.css         # Themes & styling
    β”œβ”€β”€ app.js             # Viewer logic, zoom, export
    β”œβ”€β”€ db.js              # IndexedDB via Dexie.js
    β”œβ”€β”€ dexie.min.js       # Dexie.js library
    └── html2pdf.bundle.min.js  # PDF generation library

πŸ”§ How It Works

graph LR
    A[AI Website] -->|MutationObserver| B[content.js]
    B -->|chrome.runtime.sendMessage| C[background.js]
    C -->|Forward to viewer| D[viewer/app.js]
    D -->|Save to IndexedDB| E[viewer/db.js]
    D -->|Render live| F[Viewer Window]
Loading
  1. content.js injects into supported AI sites and observes DOM changes using MutationObserver
  2. When AI starts generating a response, the HTML content is captured and sent to the background service worker
  3. The service worker forwards the data to the viewer window
  4. The viewer renders the content live and saves it to IndexedDB for history

πŸ“Έ Usage

  1. Open an AI chat (e.g., DeepSeek)
  2. Click the extension icon β€” the viewer window opens
  3. Type a prompt β€” watch the response stream live in the viewer
  4. Browse history β€” expand/collapse chats in the sidebar
  5. Export β€” click PDF or DOC to download
  6. Delete β€” click βœ• to remove unwanted chats

πŸ› οΈ Tech Stack

  • Chrome Extension Manifest V3
  • Vanilla JavaScript β€” no frameworks
  • Dexie.js β€” IndexedDB wrapper for chat storage
  • MutationObserver API β€” real-time DOM observation
  • CSS Variables β€” seamless theme switching

πŸ“„ License

MIT License β€” feel free to use, modify, and distribute.


Built late at night by Damindu πŸŒ™
Because AI responses deserve a better view.

About

πŸŒ™ AI Live Viewer – A powerful Chrome Extension to live-stream, edit, and export AI responses from DeepSeek, ChatGPT, Claude, and Gemini. Features real-time rendering, IndexedDB history, and professional PDF/DOC exports with full Sinhala Unicode support.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages