Skip to content

Browser extension that allows you to export chat conversations from the LLM sites ChatGPT and Claude to Markdown, XML, JSON, and HTML.

Notifications You must be signed in to change notification settings

Trifall/chat-export

Repository files navigation

Chat Export Extension (LLM)

Test

Get Chat Export for Firefox Get Chat Export for Chromium


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.

Export Video Example

Extension Settings:

Extension Settings

Claude Button:

Claude Export Button

ChatGPT Button:

ChatGPT Export Button

Getting started

🛠 Build locally

  1. Checkout the copied repository to your local machine eg. with git clone https://github.com/Trifall/chat-export
  2. Run npm install to install all required dependencies
  3. Run npm run build

The build step will create the dist folder, this folder will contain the generated extension.

🏃 Run the 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).

  1. Run npm run watch to watch for file changes and build continuously
  2. Run npm install --global web-ext (only only for the first time)
  3. In another terminal, run web-ext run -t chromium
  4. Check that the extension is loaded by opening the extension options (in Firefox or in Chrome).

Manually

You can also load the extension manually in Chrome or Firefox.

✏️ Make changes

Firefox will automatically reload content scripts when the extension is updated, Chrome requires you to reload the page to reload the content scripts.

📕 Read the documentation

Here are some websites you should refer to:

Credits

See template.

License

MIT

About

Browser extension that allows you to export chat conversations from the LLM sites ChatGPT and Claude to Markdown, XML, JSON, and HTML.

Topics

Resources

Stars

Watchers

Forks