All contributions would be greatly appreciated, whether that's in the form of opening or closing issues. You have my thanks!
Inspector is a UX-focused, open-source visualization tool designed for developers working with Google AI Studio. It transforms raw, difficult-to-read JSON exports into a clean, readable, and interactive conversation timeline.
| Before Inspector | After Inspector |
|---|---|
![]() |
![]() |
Google AI Studio is an excellent prototyping environment, but managing long context windows and analyzing history exports presents significant challenges:
- Search & Retrieval: It is notoriously difficult to search through long conversations within the native interface. Finding specific past prompts or responses in a 250k+ token history is often just pure pain.
- Unreadable Exports: AI Studio exports data to Google Drive as raw, structured JSON. This format is illegible for humans trying to read the conversation flow or analyze the logic.
- Hidden Metadata: Critical information like "Chain of Thought" reasoning blocks, safety ratings, and exact token counts per message are often obscured or completely invisible in the native UI.
Inspector solves this by parsing that raw JSON locally into a rich, searchable interface.
Not enough reason? To find an exhaustive list of benefits that you get from using Inspector, go to: https://ai.timchinye.com/chat/1d0lpBd-c_v7ZqjK1C1zRN4JKNhGW6Qfd.
Core Connectivity
- Universal Import: Copy & paste or Drag and drop JSON files or Google Drive / AI Studio links directly to get started immediately, or just import from your device.
- Smart Paste: Automatically detects if your clipboard contains raw JSON content or a Google Drive URL and processes it immediately.
- Offline Capable: You can download the source code and run Inspector locally to view your sensitive prompt logs completely offline. (Full PWA support coming soon).
- Local Persistence: Uses IndexedDB to cache your recent history. Supports Pinning, Renaming, Deleting, and Bulk Actions (mass pin/delete) for historical logs.
- Dynamic Renaming: Manually rename conversations or use the Automated Name Scraping feature to fetch prompt titles directly from Google AI Studio links. Includes Windows-style conflict resolution for duplicate filenames.
Advanced Export System
- Multi-Level Granularity: Export the entire conversation, specific prompt turns, or even individual message blocks.
- Rich Format Support:
- HTML: Standalone files with embedded styles and theme consistency.
- Markdown & Plain Text: Clean, semantic exports for documentation or re-prompting.
- Smart Snapshots (PNG): Generate high-quality, "Carbon-style" images of conversation turns with gradient backgrounds and window controls—perfect for sharing.
- Clipboard Integration: Copy any part of the conversation as HTML, Markdown, or Text with a single click.
Media & Visualization
- Media Gallery: A centralized gallery to view all images, videos, and audio files from the conversation. Supports Bulk ZIP Downloads for both inline and Google Drive-hosted media.
- Rich Markdown Support: Renders the conversation with full Markdown support, including tables, lists, and links.
- Syntax Highlighting: Automatically detects coding languages and provides over 15 selectable color themes with Live Theme Previews.
- Drive Attachment Integration: Detects Google Drive Documents and Images. Provides options to open them externally or view them directly within the app.
Navigation & Analysis
- Dual View Modes:
- Scroll Mode: View the entire conversation as a continuous timeline.
- Focus Mode: Step through the conversation one turn at a time to isolate specific prompt/response pairs.
- Deep Search: Search through the entire conversation content (not just prompt titles) to find specific code snippets or concepts instantly.
- Prompt Grouping: Supports deep linking to specific turns and custom naming for individual prompt groups within a conversation.
- Gemini-Specific Metadata: Natively handles "Thinking" blocks (Chain of Thought) with collapsible states. It also visualizes safety ratings, token counts per message, system instructions, and citations.
Developer Workflow Utilities
- Sanitized JSON Export: IMO: One of the most powerful features for heavy users. If your conversation hits the token limit in AI Studio, you can "Strip" the JSON. This converts the complex structure into a clean array of
role: user/role: modeltext objects. You can then paste this "clean" history into a new AI Studio prompt to continue your session with full context but without the overhead. - Code Block Management: Toggle text wrapping, collapse code blocks, and copy code with a single click.
- Customizable Layout: Includes a content width slider to adjust the reading area, I'm hoping the ultrawide monitor users would love that one.
- Theme Engine: Fully responsive, Light and Dark modes.
Inspector supports a flexible routing system. You can share deep links to specific logs (provided the Google Drive file permissions are set to "Anyone with the link"). The app will automatically parse the ID from almost any reasonable URL structure.
Query Parameters (Universal Support):
?view=FILE_ID(For Google Drive conversations)?id=FILE_ID?chat=FILE_ID?remote=FILE_ID?remoteId=FILE_ID?local=RECORD_ID(For IndexedDB stored records)?localId=RECORD_ID?turn=INDEX(Deep link to specific prompt turn)?scrollTo=INDEX(Deep link to scroll position)
Clean Paths (For SPA Hosts like Vercel/Netlify):
/view/FILE_ID/chat/FILE_ID/id/FILE_ID/FILE_ID(Direct path)
Hash Routing (For Static Hosts like GitHub Pages):
/#/FILE_ID/#FILE_ID
Examples:
https://ai-inspector.vercel.app/1jpc4123XaVz3...https://ai-inspector.vercel.app/chat/1jpc4123XaVz3...https://ai-inspector.vercel.app/?view=1jpc4123XaVz3...
You can easily host your own version of Inspector to use a custom domain (e.g., ai.yourname.com). Since the application is stateless and serverless, hosting is free on platforms like Vercel, Netlify, or Render.
- Fork this repository to your GitHub account.
- Import your forked repository into Vercel (or your preferred host).
- Deploy. No build command is required; it is a static HTML/JS site.
- Add Domain: Configure your custom domain in the Vercel dashboard settings.
You can now share professional links like: ai.timchinye.com/chat/1jpc4123XaV...
How to Update: To get the latest features, go to your forked repository on GitHub and click the "Sync Fork" button. Vercel will automatically detect the change and redeploy the new version for you.
Development on these features depends on community activity (Issues, Stars, and Pull Requests).
Goal: Enhance AI Studio directly and eliminate the need for manual file exports.
- Native Enhancements: Inject features listed below directly into the Google AI Studio page, such as Regex Search, Smart Snapshots, and Custom Keyboard Shortcuts to improve the native experience.
- One-Click Inspect: A toolbar button that extracts the current conversation state and opens it in Inspector instantly, bypassing the "Export to Drive" step entirely.
Goal: Make this an indispensable tool for debugging and sharing.
- Diff View: Add a "Compare" drop zone to highlight added/removed lines between two different model runs.
- PII Redaction Mode: Regex-based filter to visually blur emails and API keys (toggleable).
- Prompt "Fork & Edit": Allow in-place text editing and a "Copy Context" button to assemble a new prompt string.
Goal: Turn static logs into a dynamic, watchable experience.
- Typewriter Engine: Implement a character-by-character (or token-by-token) rendering system that respects HTML tags.
- Auto-Scroll Physics: Create a smooth scrolling behavior that keeps the typing cursor centered.
- Media Controls Overlay: Build a floating player bar with Play/Pause, Speed Toggle, and a Progress Scrubber.
- Focus Mode: Fade out the sidebar and dim the header when playback is active.
Goal: Make the app feel like a native, premium product.
- Smooth Scrolling: Integrate inertial scrolling logic.
- Magnetic Buttons: Add micro-interactions where buttons subtly attract towards the cursor.
- Skeleton Loading: Replace spinners with shimmering CSS skeletons.
- Token Heatmap: Color-coded borders on message bubbles (Green -> Red) based on token intensity.
Goal: Efficiency for heavy users.
- Regex Search: Interpret search input as Regular Expressions.
- Keyboard Shortcuts: Global hotkeys for navigation (
j/k), modal closing (Esc), and file switching.
Goal: Future-proofing for massive logs.
- Web Workers: Offload parsing operations to background threads to prevent UI freezing on >10MB files.
- DOM Virtualization: Implement a virtual scroller to only render nodes currently in the viewport.
- PWA: Add Service Worker support for 100% offline usage (Install to Homescreen).

