{"id":30952365,"url":"https://github.com/mugisha-pascal/flutter-perplexity","last_synced_at":"2025-09-11T07:42:05.754Z","repository":{"id":307863856,"uuid":"1024530384","full_name":"MUGISHA-Pascal/Flutter-Perplexity","owner":"MUGISHA-Pascal","description":"A cross-platform Flutter application that replicates Perplexity AI's interface with real-time chat, AI-powered search, and source citations.","archived":false,"fork":false,"pushed_at":"2025-08-02T16:31:39.000Z","size":291,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-02T18:36:48.800Z","etag":null,"topics":["ai-powered","cross-platform","gemini-api"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MUGISHA-Pascal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-22T21:07:40.000Z","updated_at":"2025-08-02T16:31:42.000Z","dependencies_parsed_at":"2025-08-02T18:48:59.165Z","dependency_job_id":null,"html_url":"https://github.com/MUGISHA-Pascal/Flutter-Perplexity","commit_stats":null,"previous_names":["mugisha-pascal/flutter-perplexity"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MUGISHA-Pascal/Flutter-Perplexity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUGISHA-Pascal%2FFlutter-Perplexity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUGISHA-Pascal%2FFlutter-Perplexity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUGISHA-Pascal%2FFlutter-Perplexity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUGISHA-Pascal%2FFlutter-Perplexity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MUGISHA-Pascal","download_url":"https://codeload.github.com/MUGISHA-Pascal/Flutter-Perplexity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MUGISHA-Pascal%2FFlutter-Perplexity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274596165,"owners_count":25314023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-powered","cross-platform","gemini-api"],"created_at":"2025-09-11T07:42:04.699Z","updated_at":"2025-09-11T07:42:05.743Z","avatar_url":"https://github.com/MUGISHA-Pascal.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Perplexity Clone\n\nA 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.\n\n## Features\n\n- **AI-Powered Chat**: Real-time conversation with AI assistant\n- **Smart Search**: WebSocket-based search functionality\n- **Cross-Platform**: Works on mobile, web, and desktop platforms\n- **Modern UI**: Clean, responsive design with dark theme\n- **Source Citations**: View sources for AI responses\n- **Real-time Communication**: WebSocket integration for live chat\n- **Responsive Design**: Adaptive layout for different screen sizes\n\n## Screenshots\n\n*Screenshots will be added here*\n\n## Getting Started\n\n### Prerequisites\n\n- Flutter SDK (^3.8.1)\n- Dart SDK\n- WebSocket server running on `localhost:8000`\n\n### Installation\n\n1. **Clone the repository**\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd flutter_perplexity\n   ```\n\n2. **Install dependencies**\n   ```bash\n   flutter pub get\n   ```\n\n3. **Start the WebSocket server**\n   ```bash\n   # Make sure your WebSocket server is running on localhost:8000\n   # The app expects a WebSocket endpoint at ws://localhost:8000/ws/chat\n   ```\n\n4. **Run the application**\n   ```bash\n   flutter run\n   ```\n\n## Project Structure\n\n```\nlib/\n├── main.dart              # App entry point\n├── pages/                 # Screen components\n│   ├── home_page.dart     # Main home screen\n│   └── chat_page.dart     # Chat interface\n├── widgets/               # Reusable UI components\n│   ├── search_section.dart\n│   ├── answer_section.dart\n│   ├── sources_section.dart\n│   ├── side_bar.dart\n│   ├── side_bar_button.dart\n│   └── search_bar_button.dart\n├── services/              # Business logic and API calls\n│   └── chat_web_service.dart\n└── theme/                 # App styling and colors\n    └── colors.dart\n```\n\n## Dependencies\n\n- **flutter**: Core Flutter framework\n- **google_fonts**: Custom typography (Inter font)\n- **web_socket_client**: Real-time communication\n- **flutter_markdown**: Markdown rendering for responses\n- **skeletonizer**: Loading animations\n- **cupertino_icons**: iOS-style icons\n\n## WebSocket API\n\nThe app communicates with a WebSocket server at `ws://localhost:8000/ws/chat`:\n\n### Message Format\n- **Send**: `{\"query\": \"user question\"}`\n- **Receive**: \n  - Search results: `{\"type\": \"search_result\", ...}`\n  - Content: `{\"type\": \"content\", ...}`\n\n## Development\n\n### Running Tests\n```bash\nflutter test\n```\n\n### Building for Production\n```bash\n# Android\nflutter build apk\n\n# iOS\nflutter build ios\n\n# Web\nflutter build web\n\n# Desktop\nflutter build windows\nflutter build macos\nflutter build linux\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Inspired by [Perplexity AI](https://www.perplexity.ai/)\n- Built with Flutter and Dart\n- Uses WebSocket for real-time communication\n\n## Support\n\nIf you encounter any issues or have questions, please open an issue on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmugisha-pascal%2Fflutter-perplexity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmugisha-pascal%2Fflutter-perplexity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmugisha-pascal%2Fflutter-perplexity/lists"}