ChatGPT Exporter
A Chrome extension to export ChatGPT conversations directly to GitHub with clean Markdown formatting and selective export options.

Introduction
ChatGPT Exporter is an officially published Google Chrome extension designed for developers, researchers, and students who rely on ChatGPT for knowledge discovery, architecture brainstorming, and coding assistance. Instead of manually copying and pasting conversation snippets, ChatGPT Exporter allows users to save whole chats or selective message pairs directly to any GitHub repository in beautifully formatted Markdown with a single click.
Core features
- One-click GitHub synchronization: Direct export to any selected repository, branch, and directory path.
- Clean Markdown parsing: Converts ChatGPT answers, tables, code blocks, lists, and mathematical notation cleanly into standard GitHub Flavored Markdown.
- Selective message export: Choose specific turns in the conversation to include while omitting tangential queries.
- Automated commit generation: Creates meaningful commit messages with timestamps and model version metadata.
- Secure credential management: Uses Chrome secure storage for API keys and tokens with zero external server tracking.
Tech stack
- Chrome Extension Manifest V3: Modern extension standard with event-driven background service workers.
- JavaScript & React: Lightweight UI injected seamlessly into the ChatGPT web interface.
- GitHub REST API: Direct commit generation and repo branch management.
What I learned
Working on browser extensions taught me how to write resilient DOM observers that adapt gracefully when third-party web apps update their internal class names and component structures.
Key Challenges
- Interfacing with ChatGPT dynamic Single Page Application DOM across continuous UI updates
- Ensuring strict OAuth security for GitHub personal access tokens stored in extension storage
- Preserving code block language annotations and latex formulas into clean markdown
Key Learnings
- Chrome Manifest V3 architecture, service workers, and content scripts
- GitHub REST API octokit commits and tree blob creations
- Publishing and maintaining verified Chrome Web Store extensions