Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X-Commentator AI πŸ€–βœ¨

AI-powered Chrome extension that automatically reads X (Twitter) posts and generates contextual, human-like comments using Groq's LLaMA AI.

Features

  • 🎯 Smart Comment Generation β€” Reads tweet content and generates relevant, contextual comments
  • ⚑ Powered by Groq β€” Ultra-fast inference using LLaMA 3.3 70B and other models
  • 🎭 6 Tone Options β€” Friendly, Professional, Funny, Supportive, Savage, Intellectual
  • 🌍 Multi-Language β€” English, Urdu (Roman), Hindi (Roman), Arabic
  • πŸ“‹ Preview & Edit β€” See the generated comment before posting, with Copy/Regenerate/Reply options
  • 🎨 Premium Dark UI β€” Beautiful glassmorphism popup with smooth animations
  • βš™οΈ Customizable β€” Custom prompts, creativity slider, max length control

Installation

From Source (Developer Mode)

  1. Clone or download this repository
  2. Open Chrome and go to chrome://extensions/
  3. Enable "Developer mode" (toggle in top-right corner)
  4. Click "Load unpacked"
  5. Select the X-Commentator folder
  6. The extension icon will appear in your toolbar!

Setup API Key

  1. Go to console.groq.com/keys
  2. Create a free account and generate an API key
  3. Click the extension icon β†’ Paste your API key β†’ Save

Usage

  1. Go to x.com (Twitter)
  2. You'll see a ✨ sparkle button on every tweet (next to like/retweet buttons)
  3. Click it β†’ AI reads the tweet β†’ Generates a comment
  4. Choose from the preview card:
    • Copy β€” Copy comment to clipboard
    • Regenerate β€” Get a new comment
    • Reply β€” Auto-opens reply box and inserts the comment
    • βœ• β€” Dismiss

Settings

Setting Description
API Key Your Groq API key (required)
Model LLaMA 3.3 70B (best), LLaMA 3.1 8B (fastest), Mixtral, Gemma
Tone Comment personality style
Language Response language
Custom Instructions Additional prompt guidance
Creativity Temperature (0.1 = precise, 1.5 = creative)
Max Length Maximum comment length in tokens

Tech Stack

  • Platform: Chrome Extension (Manifest V3)
  • Language: JavaScript (Vanilla)
  • AI: Groq API (LLaMA 3.3 70B)
  • Styling: Pure CSS with glassmorphism

Project Structure

X-Commentator/
β”œβ”€β”€ manifest.json              # Extension manifest (V3)
β”œβ”€β”€ background/
β”‚   └── service-worker.js      # Groq API calls & prompt building
β”œβ”€β”€ content/
β”‚   β”œβ”€β”€ content.js             # Tweet detection & UI injection
β”‚   └── content.css            # Injected styles
β”œβ”€β”€ popup/
β”‚   β”œβ”€β”€ popup.html             # Settings page
β”‚   β”œβ”€β”€ popup.css              # Premium dark theme
β”‚   └── popup.js               # Settings management
└── icons/
    β”œβ”€β”€ icon16.png
    β”œβ”€β”€ icon48.png
    └── icon128.png

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages