67% of people draft a post but delete it before publishing due to fear of judgement, trolling, or low engagement. We lack a "safe space" to test our digital presence against reality.
SocialMirror is a "Flight Simulator" for social media. It allows you to test-drive your content against AI agents simulating 8 different realistic personas (from Trolls to Super Fans) before you post it to the real world.
Built with Google Gemini 2.5 Flash advanced Multimodality (Vision + Text) & Reasoning.
Check out the live application here:
- 📸 Multimodal Analysis: Upload an image + caption. The AI "sees" visual details (e.g., messy background, lighting, outfits) and "reads" the tone to generate context-aware comments.
- 🎭 8 Unique AI Personas:
- The Troll (Roasts flaws in the image)
- The Super Fan (Uses ❤️ emojis)
- The Intellectual (Critiques grammar/logic)
- The Gen-Z (Slang heavy: "no cap", "fr")
- The Concerned Relative (Asks personal questions)
- 🌍 Platform Context Switcher: Switch modes between Instagram (Lifestyle), Twitter/X (Chaos), LinkedIn (Professional), and Snapchat (Casual).
- 🗣️ Native Language Support: If you type in Hindi/Hinglish, the AI agents reply in the same language.
- 🧠 AI Coach Dashboard: Get a "Controversy Risk Score" (0-100) and actionable advice to improve engagement.
- 🌗 Responsive UI: Glassmorphism design with Dark/Light mode toggling.
- Frontend: React.js (Vite)
- Language: JavaScript (ES6+)
- Styling: Tailwind CSS + Framer Motion
- AI Model: Google Gemini 2.5 Flash (via Google GenAI SDK)
- Deployment: Netlify
This project contains everything you need to run your app locally.
View your app in AI Studio: Click Here
- Node.js installed on your machine.
- A Google Gemini API Key.
-
Clone the repository:
git clone https://github.com/ramkachhwaha/SocialMirror.git cd SocialMirror -
Install dependencies:
npm install
-
Set up Environment Variables: Create a file named
.envin the root directory and add your key: (Note: TheVITE_prefix is mandatory for Vite apps)VITE_GEMINI_API_KEY = your_actual_api_key_here
-
Run the app:
npm run dev
Open your browser and navigate to http://localhost:5173 to start coding!
SocialMirror/
├── public/ # Static assets (Favicons)
├── src/
│ ├── components/ # React Components (Input, Results, Footer)
│ ├── App.jsx # Main Application Logic
│ ├── index.css # Tailwind & Custom Styles
│ └── main.jsx # Entry Point
├── .env # API Keys (Not pushed to GitHub)
└── README.md # Documentation
This project is a proudly created submission for the Google DeepMind Coding Hackathon. We welcome contributions! Feel free to fork the repository, create issues, or drop a star ⭐ if you liked the vibe.
This project is a submission for the Google DeepMind Gemini 3 Pro Hackathon.
© 2025 SocialMirror. All rights reserved.