This extension allows you to export chat conversations from ChatGPT, and Claude to Markdown, XML, JSON, and HTML.
The export button is placed next to the share button.
I made this extension in my free time over a couple days because I wanted this feature and also this tweet. Might be scuffed on edge cases but I tried my best.
This extension does NOT store, upload, or share any data remotely. It does NOT store any personal or private/identifiable data. All content is stored on the local machine and the local users's clipboard. Only stores the configuration for the output format (string enum [markdown, html, xml, json] for ease-of-use.
Extension Settings:
Claude Button:
ChatGPT Button:
- Checkout the copied repository to your local machine eg. with
git clone https://github.com/Trifall/chat-export
- Run
npm install
to install all required dependencies - Run
npm run build
The build step will create the dist
folder, this folder will contain the generated extension.
Using web-ext is recommended for automatic reloading and running in a dedicated browser instance. Alternatively you can load the extension manually (see below).
- Run
npm run watch
to watch for file changes and build continuously - Run
npm install --global web-ext
(only only for the first time) - In another terminal, run
web-ext run -t chromium
- Check that the extension is loaded by opening the extension options (in Firefox or in Chrome).
You can also load the extension manually in Chrome or Firefox.
Firefox will automatically reload content scripts when the extension is updated, Chrome requires you to reload the page to reload the content scripts.
Here are some websites you should refer to:
- Parcel’s Web Extension transformer documentation
- Chrome extensions’ API list
- A lot more links in Fregante's Awesome WebExtensions list
MIT