Skip to content
/ x-post Public

A Firefox extension that helps automate post creation and replies on X using Openai or XAI API

License

Notifications You must be signed in to change notification settings

bigsk1/x-post

Repository files navigation

X AI Post Assistant - Firefox Extension

A Firefox extension that helps automate post creation and replies on X using ChatGPT-4o or XAI api.

x-post

Features

  • Dual AI Provider Support:
    • OpenAI GPT-4o/GPT-4o-mini integration
    • X.AI Grok models with vision capabilities
  • Smart Content Generation:
    • Create engaging new posts
    • Generate contextual replies
    • Image understanding for posts with media
  • Modern Dark Mode Interface:
    • Clean, responsive design
    • Character counter
    • Real-time content preview
  • Advanced Features:
    • Debug logging
    • Secure API key storage
    • State preservation
    • Auto-posting option

Installation

  1. Open Firefox and go to about:debugging
  2. Click on "This Firefox" in the left sidebar
  3. Click "Load Temporary Add-on"
  4. Navigate to the extension folder and select manifest.json

Setup

  1. Get your API key:
  2. Click the extension icon in Firefox
  3. Choose your AI provider (OpenAI or X.AI)
  4. Select your preferred model:
    • OpenAI: GPT-4o or GPT-4o-mini
    • XAI: Grok-2 Vision (supports image analysis)
  5. Enter your API key and save settings

Usage

Creating a New Post

  1. Click the extension icon
  2. Select "New Post" mode
  3. Enter your post topic or idea
  4. Click "Generate Content"
  5. Review the generated content
  6. Click "Post to X" to publish

Replying to Posts

  1. Navigate to a post on X
  2. Click the extension icon
  3. Select "Reply" mode
  4. The extension will automatically:
    • Capture the original post text
    • Analyze any images (when using Grok Vision)
    • Generate a contextual reply
  5. Review and edit the generated reply
  6. Click "Post to X" to publish

Image Understanding

When using X.AI's Grok Vision model:

  • The extension automatically detects images in posts
  • Generates responses that reference both text and visual content
  • Provides more contextually aware replies

Debug Mode

The extension includes a comprehensive debug panel that shows:

  • API responses
  • Content generation process
  • Image detection status
  • Error messages
  • State changes

Troubleshooting

  1. API Issues:

    • Verify your API key format
    • Check debug logs for response errors
    • Ensure you're using the correct provider settings
  2. Post Generation Issues:

    • Make sure you're logged into X
    • Check your internet connection
    • Review debug logs for specific errors
  3. Image Analysis Issues:

    • Ensure you're using the Grok Vision model
    • Check if the image is loading properly
    • Verify image URL accessibility

Privacy & Security

  • API keys are stored securely in local browser storage
  • No data is sent to third-party servers
  • Only communicates with OpenAI/X.AI APIs and X
  • All API communications are encrypted
  • No tracking or analytics

License

MIT License - Feel free to modify and distribute as needed.

About

A Firefox extension that helps automate post creation and replies on X using Openai or XAI API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published