Skip to main content

Grok Export Viewer

PyPI License Python

Convert, browse, and search your Grok Chat export (prod-grok-backend.json) offline into Markdown, HTML (with live search), CSV, SQLite, or JSON.

Installation

pip install grok-export-viewer

Usage

# Place your JSON file in data/
grok-export-viewer -s data/prod-grok-backend.json -f html
open data/html/index.html  # macOS (use xdg-open on Linux, start on Windows)

# Other formats: md, csv, json, sqlite
grok-export-viewer -s data/prod-grok-backend.json -f csv

Sample Input JSON

Below is an example structure for prod-grok-backend.json:

{
  "conversations": [
    {
      "conversation": { "title": "Sample Chat" },
      "responses": [
        { "response": { "sender": "user", "message": "Hello" } },
        { "response": { "sender": "grok", "message": "Hi!" } }
      ]
    }
  ]
}

Features

  • Convert Grok JSON exports to multiple formats.
  • HTML output includes a searchable index.
  • Lightweight and offline processing.
  • Supports Python 3.8+.

Development

git clone https://github.com/your-username/grok-export-viewer.git
cd grok-export-viewer
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -e ".[test]"
python -m pytest

Contributing

See CONTRIBUTING.md for guidelines.

Changelog

See CHANGELOG.md for release history.

License

MIT License. See LICENSE for details.

Release files for grok-export-viewer 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grok-export-viewer 0.1.3
File Size Uploaded
grok_export_viewer-0.1.3.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grok-export-viewer 0.1.3
File Interpreter ABI Platform
grok_export_viewer-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / grok_export_viewer-0.1.3.tar.gz

Download URL grok_export_viewer-0.1.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6f8eae9f2957a1864d03fe4ec689682b58bb69dbbb8dd16ef43b8f75a9b17e22
BLAKE2b-256 checksum
How to use checksums
4ec2a6af26fb84371a0cfb616b20958abf493f069df258d3d676c51487d0fc79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release files / grok_export_viewer-0.1.3-py3-none-any.whl

Download URL grok_export_viewer-0.1.3-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c12bdae9995a4cd7bedb252dc4b432de40509dd9aaca85b3d7958837411c60c9
BLAKE2b-256 checksum
How to use checksums
a33b7c337e185e323d96864b7aea7a5b8b63bc7f5795492b28c922d4e66e6432
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page