Viral Tweet Generator

Next.js React.js NewsAPI OpenRouter (AI API) JavaScript

Viral Tweet Generator

Screenshot of Viral Tweet Generator

Overview

Viral Tweet Generator is a Next.js web app that leverages AI to craft engaging tweets on user-specified topics. Users input a topic, and the tool generates a curiosity-driven, authentic-sounding tweet. It also integrates with NewsAPI and Athina AI Hub for inspiration.

Features

  • Topic Input: Enter any topic to generate a tweet.
  • Customizable Tone: Options for tech tweets, casual tweets, etc.
  • Pro Tips: Suggestions on phrasing (e.g. adding “for beginners”).
  • Disclaimer: Reminds users to fact-check AI-generated content.
  • AI Integration: Falls back between Groq AI model and OpenRouter GPT.

Tech Stack

  • Frontend: Next.js, React, with a modern UI (buttons, text areas).
  • AI Engines: Groq NLP model (fast local inference) and OpenRouter for GPT access.
  • Data Sources: NewsAPI for tech news, Athina AI Hub content for context.
  • Styling: Tailwind CSS and Headless UI components.

Usage

  1. Deploy or run the app locally (npm run dev).
  2. Navigate to /tweet-generator.
  3. Choose a mode (Tech or Casual tweets).
  4. Enter your topic and click “Generate Tweet.”
  5. Review the generated tweet and customize if needed.