Flutter-Perplexity
एक क्रॉस-प्लेटफॉर्म फ्लटर एप्लिकेशन जो रियल-टाइम चैट, एआई-संचालित सर्च और स्रोत संदर्भ के साथ परप्लेक्सिटी एआई के इंटरफेस की पुनरावृत्ति करता है।
- स्टार
- 5
- फ़ोर्क
- 0
- अंतिम पुश (UTC)
- 27 अग॰ 2026
- प्रोजेक्ट स्थिति
- सक्रिय
मूल README
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Flutter Perplexity Clone
A Flutter-based clone of Perplexity AI, featuring real-time chat with AI-powered search capabilities. This application provides an intuitive interface for asking questions and receiving AI-generated responses with source citations.
Features
- AI-Powered Chat: Real-time conversation with AI assistant
- Smart Search: WebSocket-based search functionality
- Cross-Platform: Works on mobile, web, and desktop platforms
- Modern UI: Clean, responsive design with dark theme
- Source Citations: View sources for AI responses
- Real-time Communication: WebSocket integration for live chat
- Responsive Design: Adaptive layout for different screen sizes
Screenshots
Screenshots will be added here
Getting Started
Prerequisites
- Flutter SDK (^3.8.1)
- Dart SDK
- WebSocket server running on
localhost:8000
Installation
-
Clone the repository
git clone <repository-url> cd flutter_perplexity -
Install dependencies
flutter pub get -
Start the WebSocket server
# Make sure your WebSocket server is running on localhost:8000 # The app expects a WebSocket endpoint at ws://localhost:8000/ws/chat -
Run the application
flutter run
Project Structure
lib/
├── main.dart # App entry point
├── pages/ # Screen components
│ ├── home_page.dart # Main home screen
│ └── chat_page.dart # Chat interface
├── widgets/ # Reusable UI components
│ ├── search_section.dart
│ ├── answer_section.dart
│ ├── sources_section.dart
│ ├── side_bar.dart
│ ├── side_bar_button.dart
│ └── search_bar_button.dart
├── services/ # Business logic and API calls
│ └── chat_web_service.dart
└── theme/ # App styling and colors
└── colors.dart
Dependencies
- flutter: Core Flutter framework
- google_fonts: Custom typography (Inter font)
- web_socket_client: Real-time communication
- flutter_markdown: Markdown rendering for responses
- skeletonizer: Loading animations
- cupertino_icons: iOS-style icons
WebSocket API
The app communicates with a WebSocket server at ws://localhost:8000/ws/chat:
Message Format
- Send:
{"query": "user question"} - Receive:
- Search results:
{"type": "search_result", ...} - Content:
{"type": "content", ...}
- Search results:
Development
Running Tests
flutter test
Building for Production
# Android
flutter build apk
# iOS
flutter build ios
# Web
flutter build web
# Desktop
flutter build windows
flutter build macos
flutter build linux
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Inspired by Perplexity AI
- Built with Flutter and Dart
- Uses WebSocket for real-time communication
Support
If you encounter any issues or have questions, please open an issue on GitHub.
श्रेणियाँ
उपयोग की गई निर्भरताएँ
निर्भरता सूची 8 आइटम
- flutter
{"sdk":"flutter"} - cupertino_icons
^1.0.8 - google_fonts
^6.2.1 - web_socket_client
^0.1.5 - flutter_markdown
^0.7.4+3 - skeletonizer
^2.1.0+1 - flutter_testडेवलपमेंट
{"sdk":"flutter"} - flutter_lintsडेवलपमेंट
^5.0.0
अपने प्रोजेक्ट के लिए रिपॉज़िटरी कैसे चुनें?
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
- नाम, लेखक या विवरण से खोजें और तकनीकी विषय से परिणाम सीमित करें।
- स्टार, फ़ोर्क और हाल के पुश की तुलना करें। स्टार रुचि दर्शाते हैं, गुणवत्ता की गारंटी नहीं।
- उपयोग से पहले GitHub पर README, लाइसेंस और Issues जाँचें।
स्रोत और रखरखाव
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗