MaskerPRC/everything-ai-chat
About
A modern Everything search client that combines AI with ultra-fast local search.
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +2
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README-en.md
OriginalEverything AI Chat - Intelligent File Search Client
English | 中文
A modern Everything search client that perfectly combines AI intelligence with ultra-fast local search. Supports natural language queries, automatically converts to Everything precise search syntax, making file searching simpler and more efficient than ever before.
🌟 Star History
Development is not easy, please give us a little star✨
👣Examples
👀Welcome to join WeChat group
✨ Core Features
🔧 Intelligent Automated Connection (Technical Highlight)
- One-click Everything Connection: Automatically searches for Everything installation location, no manual configuration required
- Multi-strategy Search Algorithm: Locates installation location through multiple strategies including registry, common paths, desktop shortcuts, etc.
- Intelligent Process Management: Uses three-level process management strategy: graceful shutdown → force termination → advanced termination
- Automatic Port Discovery: Intelligently finds available ports to avoid port conflicts
- Configuration File Automation: Automatically modifies Everything configuration, supports configuration backup and recovery
- Secure Credential Generation: Automatically generates random username and password to ensure connection security
🧠 AI Intelligent Search
- Natural Language Understanding: Input natural language like "today's PDF files", "videos larger than 10MB", AI automatically converts to precise search syntax
- OpenAI Integration: Supports GPT-3.5/GPT-4 models, intelligently understands complex search intentions
- Local Optimization: Even without AI configuration, search queries can be optimized through local rules
⚡ Ultra-fast Search Experience
- Everything Engine: Based on the world's fastest file search engine Everything
- Real-time Results: Millisecond-level search response, supports large capacity hard drives
- Smart Suggestions: Provides search suggestions and quick access to search history
🎯 Precise Result Display
- Multi-dimensional Sorting: Sort by file name, path, size, modification time, creation time, and other dimensions
- File Type Recognition: Automatically recognizes file types and displays corresponding icons (documents📄, images🖼️, videos🎬, etc.)
- Detailed Information: Displays complete information including file size, modification time, creation time, access time, attributes, etc.
🎨 Modern Interface
- Custom Title Bar: Borderless design with integrated window control buttons
- Real-time Status Display: Real-time monitoring of Everything connection status
- Search History: Automatically saves and intelligently manages search history (up to 50 entries)
- Responsive Layout: Adapts to window size, supports minimum size of 800x600
- Glassmorphism Effects: Modern glassmorphism effects and gradient design
- System Tray: System tray integration for convenient window management
- Debug Window: Independent debug window with streaming AI response debugging
- File Context Menu: Rich file operation menu with file type-specific actions
- Column Resizing: Resizable file list columns with localStorage persistence
Tech Stack
- Frontend: Vue 3 + Vite
- Backend: Electron + Node.js
- Database: SQLite (search history storage)
- AI Service: OpenAI GPT API
- Search Engine: Everything HTTP API
- State Management: Vue 3 Composition API
- Internationalization: Vue I18n (supports 10 languages)
- Styling: CSS3 + Modern UI Design
- Build Tools: Vite + electron-builder
System Requirements
- Windows 7/8/10/11
- Everything software (1.4.1+)
- Node.js 16+
- Network connection (for AI features and auto-updates)
Installation Steps
1. Install Everything
- Download and install Everything
- Launch Everything software
- Go to
Tools→Options→General - Check
Enable HTTP Server - Confirm port is 80 (default)
Or use the one-click connection feature:
- After launching the app, click "One-click Connect Everything" in settings
- The system will automatically detect Everything installation location and configure HTTP service
- Supports automatic port discovery and secure credential generation
2. Clone Project
git clone https://github.com/your-repo/everything-ai-chat.git
cd everything-ai-chat
3. Install Dependencies
npm install
4. Configure OpenAI
If you want to use AI natural language conversion function, you need to configure OpenAI API:
- After launching the app, click the settings button in the bottom right corner
- Enter your OpenAI API Key
- Select an appropriate model (GPT-3.5 Turbo recommended)
- Customize system prompts to optimize AI conversion effects
- Support for locally deployed AI services (no API Key required)
Running the Application
Development Mode
# Install dependencies
npm install
# Start development environment
npm run dev
Production Build
npm run build
npm run build:electron
🚀 User Guide
Quick Start
- After launching the app, it will automatically detect Everything connection status
- Enter query content in the search box
- Supports three search methods:
💬 Natural Language Search (Recommended)
After configuring OpenAI API, you can use natural language search:
PDF files modified today
Videos larger than 10MB
Images created this week
Word documents on desktop
Compressed files downloaded yesterday
Excel files containing "report"
🔧 Everything Syntax Search
Directly use Everything's powerful search syntax:
*.pdf dm:today # PDFs modified today
size:>10mb *.mp4;*.avi # Video files larger than 10MB
dc:thisweek *.jpg;*.png # Images created this week
path:desktop *.docx # Word documents on desktop
*.zip;*.rar dm:yesterday # Compressed files modified yesterday
*report* *.xlsx # Excel files containing "report"
🔍 Simple Keyword Search
Directly enter file name or keywords:
report.docx # Find Word documents containing "report"
*.pdf # Find all PDF files
photoshop # Find files containing "photoshop"
🎯 Advanced Search Features
File Size Filtering
size:>100mb- Files larger than 100MBsize:<1kb- Files smaller than 1KBsize:1mb..100mb- Files between 1MB and 100MB
Time Filtering
dm:today- Files modified todaydc:yesterday- Files created yesterdayda:thisweek- Files accessed this week
Path Filtering
path:desktop- Files in desktop path!path:temp- Exclude files in temp folder
File Type Combinations
*.jpg;*.png;*.gif- Common image formats*.mp4;*.avi;*.mkv- Common video formats*.doc;*.docx;*.pdf- Common document formats
⌨️ Shortcuts and Operations
Search Operations
Enter- Execute search↑/↓- Browse search historyEsc- Clear search box- Click search suggestions - Quickly use preset searches
File Operations
Double-click file- Open file with default programRight-click file- Show file context menu- Click file path - Show file in File Explorer
Interface Operations
- Click column header - Sort by that column (click again to toggle ascending/descending)
⚙️Settings button - Configure OpenAI API and display options- Title bar
−□×- Minimize, maximize, close window
Result Management
📤 Export Results- Export search results to file🗑️ Clear Results- Clear current search results- Search history dropdown - Quickly repeat previous searches
Search Syntax Examples
| Natural Language | Everything Syntax | Description |
|---|---|---|
| Today's PDFs | *.pdf dm:today |
PDF files modified today |
| Videos larger than 10MB | *.mp4;*.avi size:>10mb |
Video files larger than 10MB |
| Images on desktop | *.jpg;*.png path:desktop |
Images in desktop directory |
| This week's documents | *.doc;*.docx dm:thisweek |
Documents modified this week |
🔧 Troubleshooting
Application Launch Issues
Application Fails to Start
Symptoms: Application cannot start after running npm run dev
Solution Steps:
Ensure port 5173 is not occupied
Terminate possible existing processes:
taskkill /f /im node.exeReinstall dependencies:
rm -rf node_modules npm install npm run dev
Electron Window Blank
Symptoms: Application starts but shows blank window Solutions:
- Wait for Vue development server to fully start (usually takes 10-30 seconds)
- Check console for error messages
- Try refreshing window or restarting application
Everything Connection Issues
Status Shows "Disconnected"
Solution Steps:
- Check if Everything is running: Ensure Everything software is running in background
- Enable HTTP Server:
- Open Everything → Tools → Options → HTTP
- Check "Enable HTTP Server"
- Confirm port is 80 (default)
- Click "OK" and restart Everything
- Check port occupation: Confirm port 80 is not occupied by other programs
- Use one-click connection: Click "One-click Connect Everything" in application settings
Everything HTTP Service Cannot Start
Solutions:
- Run Everything as administrator
- Change HTTP port (e.g., to 8080)
- Check Windows firewall settings
- Ensure Everything version is 1.4.1 or higher
OpenAI API Issues
API Request Failed
Common Errors and Solutions:
- 401 Unauthorized: Incorrect API Key, please check and re-enter
- 429 Too Many Requests: Request frequency too high, please try again later
- 403 Forbidden: Insufficient account balance or invalid API Key
- Network Error: Check network connection, or try changing API endpoint
Poor Natural Language Conversion
Optimization Suggestions:
- Use more specific descriptive words
- Try different expressions
- Check if appropriate AI model is selected (GPT-3.5-turbo recommended)
Search Function Issues
Empty Search Results
Troubleshooting Steps:
- Check Everything Index: Ensure Everything has completed file indexing
- Verify Search Syntax: Try using simpler keywords (e.g.,
*.txt) - Check File Permissions: Ensure you have permission to access target folders
- Rebuild Index: Select "Tools → Rebuild Database" in Everything
Slow Search Speed
Optimization Methods:
- Reduce search result quantity limit
- Use more precise search conditions
- Ensure sufficient hard disk space
- Close unnecessary background programs
Interface Display Issues
File Icons Display Abnormally
Solution: Restart application, icon mapping will automatically fix
Window Size Abnormal
Solutions:
- Double-click title bar to restore window
- Right-click title bar to select window control options
- Restart application to restore default size
👨💻 Development Notes
Project Architecture
This project uses modern Electron + Vue 3 architecture with clear frontend-backend separation:
client/
├── src/
│ ├── main/ # Electron main process
│ │ ├── main.js # Main process entry, handles window management and IPC
│ │ ├── preload.js # Preload script, safely exposes APIs
│ │ ├── everything-search.js # Everything HTTP API wrapper
│ │ └── everything-manager.js # Everything auto-connection management
│ ├── renderer/ # Vue 3 renderer process
│ │ ├── components/ # Vue components
│ │ │ └── ConfigDialog.vue # Configuration dialog component
│ │ ├── App.vue # Main application component
│ │ ├── main.js # Vue application entry
│ │ ├── index.html # HTML template
│ │ └── style.css # Global styles
│ ├── i18n/ # Internationalization configuration
│ │ ├── locales/ # Language files
│ │ └── index.js # i18n configuration
│ └── database/ # Data storage (electron-store)
├── package.json # Project configuration and dependencies
├── vite.config.js # Vite build configuration
├── UI_DESIGN_SPEC_2.0.md # UI design specification document
└── README.md # Project documentation
leading_web/
├── backend/ # Web backend
│ ├── server.js # Node.js server
│ └── database/ # SQLite database
├── frontend/ # Web frontend
│ ├── src/
│ │ ├── views/ # Vue page components
│ │ ├── components/ # Vue components
│ │ └── main.js # Vue application entry
│ └── package.json # Frontend configuration
└── README.md # Web version documentation
Core Technical Components
🎨 Frontend Tech Stack
- Vue 3 Composition API: Modern reactive development
- Vite: Ultra-fast development server and build tool
- Vue I18n: Multi-language internationalization support (10 languages)
- Custom CSS: Carefully designed modern interface with glassmorphism effects and gradient design
⚙️ Backend Tech Stack
- Electron 37.x: Cross-platform desktop application framework
- Node.js: Backend logic processing
- electron-store: Configuration and data persistence
- OpenAI API: AI intelligent search conversion
- System Tray: System tray integration and window management
- Auto-update: GitHub Releases auto-update functionality
🔍 Search Engine Integration
- Everything HTTP API: High-performance local file search
- Intelligent Query Optimization: Local and AI dual query optimization
- Auto-connection Management: Intelligent detection and configuration of Everything HTTP service
- Multi-strategy Process Management: Three-level process management strategy: graceful shutdown → force termination → advanced termination
- Port Configuration: Supports automatic and fixed port modes
- Secure Authentication: Automatically generates username and password to protect HTTP service
Development Environment Setup
Required Tools
- Node.js 16+
- npm or yarn
- Everything 1.4.1+
- VS Code (recommended)
Recommended VS Code Extensions
{
"recommendations": [
"vue.volar",
"ms-vscode.vscode-typescript-next",
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode"
]
}
Adding New Features
1. Adding New Search Features
// Add new search method in src/main/everything-search.js
async customSearch(query, options) {
// Implement new search logic
}
2. Adding New UI Components
<!-- Create new component in src/renderer/components/ -->
<template>
<!-- Component template -->
</template>
<script>
export default {
name: 'NewComponent'
}
</script>
3. Adding New IPC Communication
// Add IPC handler in src/main/main.js
ipcMain.handle('new-feature', async (event, data) => {
// Handle new feature
});
// Expose API in src/main/preload.js
contextBridge.exposeInMainWorld('electronAPI', {
newFeature: (data) => ipcRenderer.invoke('new-feature', data)
});
Build and Release
Development Build
npm run dev # Start development environment
npm run build # Build Vue frontend
Production Build
npm run build:all # Complete build (frontend + Electron)
npm run dist # Package as installer
Build Artifacts
dist-vue/- Vue frontend build filesrelease/- Electron application installer
Project Features
🔐 Security Design
- Disable Node.js integration
- Enable context isolation
- Use preload scripts for secure communication
- Automatically generate random username and password to protect HTTP service
- Secure credential management and storage
📊 Performance Optimization
- Vue 3 Composition API improves performance
- Vite fast development and build
- Virtual scrolling for search results (planned)
- Intelligent caching mechanism
- Optimized file search algorithm
🎨 Interface Design
- Custom title bar
- Modern UI design
- Responsive layout
- Glassmorphism effects and gradient design
- Micro-interaction animations
- Dark/light theme support (planned)
- System tray integration
- Independent debug window
🌐 Multi-platform Support
- Windows desktop application
- Web online version
- Multi-language interface (10 languages)
- Internationalized date and time formats
📄 License
MIT License - see LICENSE file for details
🤝 Contributing Guide
We welcome all forms of contributions!
Ways to Contribute
- 🐛 Report Issues: Submit Issues when you find bugs
- 💡 Feature Suggestions: Discuss good ideas in Discussions
- 🔧 Code Contributions: Fork the project and submit Pull Requests
- 📚 Documentation Improvements: Help improve documentation and examples
Submitting Pull Requests
- Fork this repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push branch (
git push origin feature/amazing-feature) - Create Pull Request
Development Standards
- Follow existing code style
- Add necessary comments
- Update related documentation
- Ensure tests pass
🆘 Support and Feedback
Getting Help
- 📖 Read Documentation: First check this README and related documents
- 🔍 Search Issues: Search for similar issues in Issues
- 💬 Submit Issues: Describe the problem in detail and provide necessary information
Contact Methods
- GitHub Issues: Report bugs and feature requests
- GitHub Discussions: Technical discussions and Q&A
- Email: Contact developers for urgent issues
Issue Report Template
When submitting issues, please include:
- Operating system version
- Everything version
- Application version
- Detailed problem description
- Steps to reproduce
- Error screenshots (if any)
⭐ If this project helps you, please consider giving it a Star!
💝 Thanks to all contributors for their efforts!
Explore related projects
Loading…