You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

grok-export-viewer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grok-export-viewer

Convert and browse Grok Chat export JSON as Markdown, HTML, CSV, SQLite, and JSON.

0.1.3
pipPyPI
Maintainers
1

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.

Keywords

chat

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts