╔═══════════════════════════════════════════════════════════════════════════════════╗
║ ║
║ ██████╗ ██╗███████╗ ██████╗ █████╗ ██████╗ ██████╗██╗ ██╗██╗██╗ ██╗███████╗ ║
║ ██╔══██╗██║██╔════╝██╔════╝██╔══██╗██╔══██╗██╔════╝██║ ██║██║██║ ██║██╔════╝ ║
║ ██║ ██║██║███████╗██║ ███████║██████╔╝██║ ███████║██║██║ ██║█████╗ ║
║ ██║ ██║██║╚════██║██║ ██╔══██║██╔══██╗██║ ██╔══██║██║╚██╗ ██╔╝██╔══╝ ║
║ ██████╔╝██║███████║╚██████╗██║ ██║██║ ██║╚██████╗██║ ██║██║ ╚████╔╝ ███████╗ ║
║ ╚═════╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚══════╝ ║
║ ║
║ Discord Group DM Search Engine ║
╚═══════════════════════════════════════════════════════════════════════════════════╝
Search 2M+ Discord messages, images, links, and files. All local. No servers.
- 🔍 Instant full-text search across all messages with typo tolerance
- 🖼️ Browse and search images with thumbnail previews & full-screen lightbox
- 🔁 Reverse image search — find visually similar images using CLIP
- 🔗 Link and embed previews with domain badges
- 📁 File attachment search with extension badges and file sizes
- 👤 Filter by author, date range, message type
- ⚡ Handles 2M+ messages via Meilisearch — sub-20ms queries
- 🔒 Fully local — your data never leaves your machine
- 🖱️ No CLI needed — paste your file path in the browser and import
- 💬 Reactions, replies, avatars — full message context preserved
Screenshots coming soon — import your data and see for yourself!
| Requirement | Version |
|---|---|
| Node.js | 18+ |
| Python | 3.10+ |
| Docker | 20+ |
| pnpm | 8+ |
Windows:
# 1. Clone the repo
git clone https://github.com/sting-raider/DiscArchive
cd DiscArchive
# 2. Run the start script
start.batNote: The script will prompt you for your Discord export JSON file path and open your browser automatically!
Linux/macOS:
# 1. Clone the repo
git clone https://github.com/sting-raider/DiscArchive
cd DiscArchive
# 2. Run the start script
./start.shNote: Ensure Docker is running before executing the start script.
- Download DiscordChatExporter (GUI or CLI version)
- Get your Discord user token:
- Open Discord in your browser
- Press
F12→ Network tab - Send any message and find a request
- Copy the
Authorizationheader value
- Open DiscordChatExporter, paste your token
- Select the group DM channel(s) you want to export
- Choose JSON as the export format
- Export and note the file path
⚠️ Important: Use your own user token, not a bot token. This exports only channels you have access to.
DiscArchive can find visually similar images using OpenAI's CLIP model via sentence-transformers:
pip install sentence-transformers Pillow torchOnce installed, restart the backend. The status API will report clip_available: true and the "Find similar images" button will be enabled in the image lightbox.
⚠️ First run downloads the CLIP model (~350MB). Requires ~2GB RAM for embedding computation.
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ React UI │────▶│ FastAPI │────▶│ Meilisearch │
│ (Vite dev) │◀────│ (Python) │◀────│ (Docker) │
│ port 5173 │ │ port 8000 │ │ port 7700 │
└──────────────┘ └──────┬───────┘ └──────────────┘
│
┌──────▼───────┐
│ SQLite DB │
│ (CLIP embeds)│
└──────────────┘
- Import: You paste the path to your export file. The backend reads it directly from disk using
ijson(streaming JSON parser) — so even 400MB+ files use ~50MB RAM. - Index: Messages are parsed, classified by type (message/image/video/link/file), and batch-upserted into Meilisearch.
- Search: The React UI sends search queries to FastAPI, which proxies to Meilisearch and returns highlighted results.
- Image Search (optional): CLIP embeddings are computed for images and stored in SQLite. Reverse search computes cosine similarity against all stored embeddings.
DiscArchive/
├── backend/
│ ├── main.py # FastAPI – all API routes
│ ├── ingestion.py # JSON parsing + Meilisearch indexing
│ ├── clip_search.py # CLIP embedding + reverse image search
│ ├── requirements.txt
│ └── .env
├── frontend/
│ ├── src/
│ │ ├── pages/ # SetupPage, ImportPage, SearchPage
│ │ ├── components/ # SearchBar, FilterBar, ResultCard, etc.
│ │ ├── hooks/ # useSearch, useImport, useDebounce
│ │ ├── types/ # TypeScript interfaces
│ │ └── lib/api.ts # API client
│ ├── tailwind.config.js
│ └── vite.config.ts
├── docker-compose.yml
├── start.sh / start.bat
└── README.md
Contributions are welcome! See CONTRIBUTING.md for guidelines.
This tool is intended for personal archival use only. Users are responsible for complying with Discord's Terms of Service. The developers are not liable for any misuse.
Built with ⚡ Meilisearch · React · FastAPI