Local document RAG query and organization system powered by Electron.
- 📄 Import Documents - PDF, DOCX, TXT files
- � Folder Import - Recursive scan and import
- 💾 Database Export - Backup your data as JSON
- 🗂� Local Storage - All data stored in SQLite (AppData)
- � Document Search - Coming soon: RAG-powered queries
- 📊 Organization - Coming soon: Auto-classification
- � Network Drive Support - Watch and import from shared folders
- 👥 Team Collaboration - Shared database across machines
- �� Cloud Sync - Auto-backup to NAS/cloud storage
- âš¡ Auto-Watch - Automatic import when files added
- Node.js 18+
- npm or yarn
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build portable executable
npm run build:portablearchi-query-electron/
├── electron/
│ ├── main.ts # Main process
│ ├── preload.ts # IPC bridge
│ └── services/
│ ├── localStorage.ts # SQLite storage
│ └── fileImport.ts # File import logic
├── src/
│ ├── App.tsx # React app
│ ├── components/
│ │ ├── DocumentManagement.tsx
│ │ └── DocumentList.tsx
│ └── types/
│ └── electron.d.ts # TypeScript definitions
├── public/
│ └── index.html
├── package.json
├── vite.config.ts # Vite + Electron config
└── README.md
All data is stored locally in:
Windows:
C:\Users\<username>\AppData\Local\archi-query-electron\
├── data\
│ └── archi-query.db # SQLite database
└── documents\
├── imported\ # Copied files
└── organized\ # Organized files
macOS (Future):
~/Library/Application Support/archi-query-electron/
Linux (Future):
~/.local/share/archi-query-electron/
- Run app:
npm run dev - Click "📄 Import Files"
- Select 5-10 PDF files
- Verify:
- ✅ Files imported successfully
- ✅ Document list populated
- ✅ File count correct
- Click "💾 Export Database"
- Verify JSON file created
Check SQLite database:
# Windows
cd %LOCALAPPDATA%\archi-query-electron\data
dir archi-query.db
# Open with SQLite browser (optional)npm run build:portableOutput: release/ArchiQuery-Free-Portable-1.0.0.exe
npm run buildnpm install
npm rebuild better-sqlite3Check console for errors:
- Open DevTools: Ctrl+Shift+I
- Check main process logs in terminal
- Check file permissions
- Try smaller files first
- Check console for specific error
- Close all app instances
- Delete
%LOCALAPPDATA%\archi-query-electron\data\to reset
MIT
Khogao
- Electron boilerplate
- Local storage (SQLite)
- File import (manual)
- Document list UI
- Export/backup
- Integrate LM Studio
- Embedding generation
- Vector storage
- Query interface
- Search results UI
- Auto-classification
- Batch operations
- Folder structure
- Undo/redo
- Network drive support
- Auto-watch folders
- Multi-PC sync
- Team collaboration
Status: ✅ Prototype Ready!
Next: Test import → Integrate RAG → Ship it! 🚀
This repository is part of the Khogao Coding Workspace synchronized across 3 machines (Windows, macOS, Linux Mint).
cd D:\Work\Coding
git clone https://github.com/Khogao/archi-query-electron.git
code archi-query-electroncd ~/Work/Coding
git clone https://github.com/Khogao/archi-query-electron.git
code archi-query-electron- Morning: Pull latest changes
- Work: Edit, commit, push
- Evening: Verify all pushed
See CLOUD_WORKSPACE_SETUP.md and SUPREME_YOLO_GUIDELINES.md for details.