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.
| 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 |
- DeepSeek β
chat.deepseek.com - ChatGPT β
chatgpt.com - Claude β
claude.ai - Gemini β
gemini.google.com
-
Clone the repository
git clone https://github.com/DaminduRat/ai-live-viewer.git
-
Open Chrome Extensions
- Navigate to
chrome://extensions/ - Enable Developer mode (top-right toggle)
- Navigate to
-
Load the extension
- Click "Load unpacked"
- Select the
ai-live-viewer-extensionfolder
-
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!
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
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]
- content.js injects into supported AI sites and observes DOM changes using
MutationObserver - When AI starts generating a response, the HTML content is captured and sent to the background service worker
- The service worker forwards the data to the viewer window
- The viewer renders the content live and saves it to IndexedDB for history
- Open an AI chat (e.g., DeepSeek)
- Click the extension icon β the viewer window opens
- Type a prompt β watch the response stream live in the viewer
- Browse history β expand/collapse chats in the sidebar
- Export β click PDF or DOC to download
- Delete β click β to remove unwanted chats
- 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
MIT License β feel free to use, modify, and distribute.
Built late at night by Damindu π
Because AI responses deserve a better view.