{"id":28290313,"url":"https://github.com/khazp/reddit-to-ai","last_synced_at":"2026-04-25T08:36:06.577Z","repository":{"id":292940418,"uuid":"978891077","full_name":"KhazP/Reddit-to-AI","owner":"KhazP","description":"Scrapes Reddit threads and sends content to chosen AI chatbot for analysis.","archived":false,"fork":false,"pushed_at":"2026-02-20T12:48:10.000Z","size":1017,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-20T16:52:37.287Z","etag":null,"topics":["ai","anthropic","automation","browser-extension","chatgpt","chrome-extension","claude","gemini","generative-ai","javascript","llm","openai","productivity","reddit","reddit-scraper","summarization","web-scraping"],"latest_commit_sha":null,"homepage":"https://chromewebstore.google.com/detail/reddit-to-ai/bicbjlpilomgienlbifkjbmkenecelcn","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KhazP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"KhazP","patreon":"KhazP","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"alpyalayg","thanks_dev":null,"custom":null}},"created_at":"2025-05-06T17:02:56.000Z","updated_at":"2026-02-20T12:48:13.000Z","dependencies_parsed_at":"2025-05-12T23:31:27.996Z","dependency_job_id":"0c59e82a-43c2-4327-94cd-1214b6b8a114","html_url":"https://github.com/KhazP/Reddit-to-AI","commit_stats":null,"previous_names":["khazp/reddit-to-ai"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KhazP/Reddit-to-AI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhazP%2FReddit-to-AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhazP%2FReddit-to-AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhazP%2FReddit-to-AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhazP%2FReddit-to-AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KhazP","download_url":"https://codeload.github.com/KhazP/Reddit-to-AI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KhazP%2FReddit-to-AI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32255718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T04:23:17.126Z","status":"ssl_error","status_checked_at":"2026-04-25T04:21:53.360Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","anthropic","automation","browser-extension","chatgpt","chrome-extension","claude","gemini","generative-ai","javascript","llm","openai","productivity","reddit","reddit-scraper","summarization","web-scraping"],"created_at":"2025-05-22T02:12:58.980Z","updated_at":"2026-04-25T08:36:06.559Z","avatar_url":"https://github.com/KhazP.png","language":"JavaScript","funding_links":["https://github.com/sponsors/KhazP","https://patreon.com/KhazP","https://buymeacoffee.com/alpyalayg"],"categories":[],"sub_categories":[],"readme":"# 🚀 Reddit to AI - Chrome Extension\n\n[![Version](https://img.shields.io/badge/version-1.0.0-blue.svg?style=for-the-badge)](manifest.json)\n[![License](https://img.shields.io/badge/license-MPL--2.0-green.svg?style=for-the-badge)](LICENSE)\n[![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-orange.svg?style=for-the-badge)](#contributing)\n\n\u003e **Transform your Reddit browsing into an AI-powered insights engine!**\n\u003e Scrape Reddit threads, filter the noise, and instantly send context to your favorite AI assistant for summarization, debate analysis, or sentiment checks.\n\n---\n\n## 📖 Table of Contents\n\n* [Overview](#overview)\n* [✨ Key Features](#-key-features)\n* [Supported Platforms](#supported-platforms)\n* [🚀 Installation](#-installation)\n* [🧰 Software Requirements](#-software-requirements)\n* [🛠️ Usage](#️-usage)\n* [🔧 Configuration](#-configuration)\n* [🧪 Reproducibility \u0026 Scope](#-reproducibility--scope)\n* [🌍 Internationalization](#-internationalization)\n* [⚠️ Known Issues \u0026 Limitations](#️-known-issues--limitations)\n* [🤝 Contributing](#-contributing)\n* [📄 License](#-license)\n\n---\n\n## Overview\n\n**Reddit to AI** is a powerful Chrome extension that Bridges the gap between Reddit discussions and Large Language Models (LLMs). It allows you to scrape comprehensive data from any Reddit thread—including the main post, nested comments, and images—and seamlessly transfer it to an AI chat interface (like ChatGPT or Gemini) with a pre-configured prompt.\n\nWhether you're a researcher analyzing sentiment, a user looking for a \"TL;DR\", or just someone who wants to understand a complex debate, this tool automates the tedious copy-pasting and formatting process.\n\n---\n\n## ✨ Key Features\n\n*   **Smart Scraping**:\n    *   Extracts title, author, subreddit, post content, and metadata.\n    *   **Recursive Comment Scraping**: Configurable depth (Quick, Standard, Deep, Full) to capture nested replies.\n    *   **Image Support**: Automatically scrapes and attaches up to 10 images from the post to the AI prompt.\n*   **Content Filters**:\n    *   **Hide Bots**: Automatically filter out AutoModerator and other bot comments.\n    *   **Min Score**: Ignore low-quality or downvoted comments.\n    *   **Limit Count**: Cap the number of comments to fit within context windows.\n    *   **Author Filtering**: Focus on the OP (Original Poster) or flaired users.\n*   **Prompt Engineering**:\n    *   **Built-in Presets**: One-click templates for Summarization, Debate Analysis, Sentiment Analysis, ELI5 (Explain Like I'm 5), and Key Takeaways.\n    *   **Custom Templates**: Design your own prompts using the `{content}` placeholder.\n*   **History \u0026 Management**:\n    *   **Local History**: Keep track of recently scraped threads and re-send them to different AI platforms instantly.\n    *   **JSON Export**: Export scraped thread data for offline analysis.\n*   **Privacy First**:\n    *   **No Remote Server**: All processing happens locally in your browser.\n    *   **Secure Storage**: API keys (optional legacy feature) and settings are stored in `chrome.storage.sync`.\n\n---\n\n## Supported Platforms\n\nThe extension currently supports automatic pasting and prompt injection for:\n\n*   **Google Gemini** (gemini.google.com)\n*   **OpenAI ChatGPT** (chatgpt.com)\n*   **Anthropic Claude** (claude.ai)\n*   **Google AI Studio** (aistudio.google.com)\n\n---\n\n## 🚀 Installation\n\n1.  **Clone the Repository**:\n    ```bash\n    git clone https://github.com/KhazP/Reddit-to-AI.git\n    ```\n2.  **Open Chrome Extensions**:\n    *   Navigate to `chrome://extensions/` in your browser.\n    *   Enable **Developer mode** (top right toggle).\n3.  **Load Unpacked**:\n    *   Click **Load unpacked**.\n    *   Select the folder where you cloned the repository.\n4.  **Pin it**: Pin the \"Reddit to AI\" icon to your toolbar for easy access!\n\n---\n\n## 🧰 Software Requirements\n\n*   **Browser**: Google Chrome (or Chromium-compatible browser) with Manifest V3 support.\n*   **Runtime**: No backend server required; all extension logic runs locally.\n*   **Development checks**: See [SOFTWARE_REQUIREMENTS.md](SOFTWARE_REQUIREMENTS.md) for a full environment and tooling checklist.\n\n---\n\n## 🛠️ Usage\n\n1.  **Navigate to Reddit**: Open any Reddit thread you want to analyze.\n2.  **Open Extension**: Click the **Reddit to AI** icon.\n3.  **Configure (Optional)**:\n    *   Use **Quick Filters** in the popup to hide bots or set a minimum score.\n    *   Choose your destination platform (e.g., Gemini, ChatGPT).\n4.  **Scrape \u0026 Send**:\n    *   Click **Scrape \u0026 Send**.\n    *   The extension will scroll the page to load comments, extract the data, and open a new tab with your chosen AI.\n    *   The prompt and data will be automatically pasted into the chat box.\n\n---\n\n## 🔧 Configuration\n\nRight-click the extension icon and select **Options** to access advanced settings:\n\n*   **Scraping Settings**:\n    *   **Comment Depth**: Control how deep the scraper goes (Level 0 to Full recursion).\n    *   **Content Filters**: Set strict rules for what comments to include (Score, Author, etc.).\n*   **Prompt Presets**:\n    *   Customize the default templates for each analysis type.\n*   **Appearance**:\n    *   **Language**: Switch the interface language.\n    *   **Notifications**: Toggle browser notifications for status updates.\n\n---\n\n## 🧪 Reproducibility \u0026 Scope\n\n*   **No training pipeline**: This repository does not train or evaluate machine-learning models.\n*   **No dataset artifacts**: This project scrapes public Reddit thread data at runtime and does not ship training/testing datasets.\n*   **Model links**: External AI platforms (Gemini, ChatGPT, Claude, AI Studio) are destinations for pasted prompts, not bundled models.\n\n---\n\n## 🌍 Internationalization\n\nReddit to AI is ready for the world! The interface is fully localized for:\n*   🇺🇸 English\n*   🇩🇪 German (Deutsch)\n*   🇪🇸 Spanish (Español)\n*   🇫🇷 French (Français)\n*   🇵🇹 Portuguese (Português)\n*   🇯🇵 Japanese (日本語)\n*   🇨🇳 Chinese (Simplified) (简体中文)\n*   🇹🇷 Turkish (Türkçe)\n\n---\n\n## ⚠️ Known Issues \u0026 Limitations\n\n*   **Context Window Limits**: Extremely large threads (500+ comments) may exceed the input limit of some AI models. Use the \"Limit Comments\" or \"Min Score\" filters to reduce data size.\n*   **DOM Changes**: Reddit frequently updates its UI. If scraping stops working, please open an issue – selectors may need updating.\n*   **Browser Security**: Some browsers may block the automatic paste action. You may need to grant clipboard permissions or use `Ctrl+V` manually if the auto-paste fails.\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! If you'd like to add a new language, support a new AI platform, or fix a bug:\n\n1.  **Fork** the repository.\n2.  Create a **feature branch** (`git checkout -b feature/amazing-feature`).\n3.  **Commit** your changes (`git commit -m 'Add amazing feature'`).\n4.  **Push** to the branch (`git push origin feature/amazing-feature`).\n5.  Open a **Pull Request**.\n\n---\n\n## 📄 License\n\nThis project is licensed under the **Mozilla Public License 2.0 (MPL-2.0)**. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhazp%2Freddit-to-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhazp%2Freddit-to-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhazp%2Freddit-to-ai/lists"}