I Built a "Mean Girl" AI to Judge Your Terrible Passwords π
This is a submission for the DEV April Fools Challenge
What I Built
I built The Sarcastic Strength Meter, a delightfully judgmental web app that doesn't just check your password strengthβit roasts your entire existence. Instead of helpful tips like "add a special character," you get a high-pitched, high-attitude "Mean Girl" voice telling you that your security choices are "literally cringe, bestie."
Itβs useless for security, but great for your ego (if you enjoy being bullied by a laptop).
Demo
Check out the Gnarly Roast Video here!
Code
Github
The project is built using a FastAPI backend and a vanilla HTML/JS frontend. It uses the Gemini 2.0 Flash API to generate unique, multi-sentence roasts on the fly.
The Backend (FastAPI + Gemini)
Python
@app.post("/roast-password")
async def roast_password(data: PasswordCheck):
salt = random.randint(1, 1000000)
prompt = f"Request ID: {salt}. User Password: '{data.password}'. Task: Write a 3-sentence sassy 'Mean Girl' roast paragraph. Use slang like 'bruh' and 'cringe'. Be gnarly."
response = model.generate_content(prompt, generation_config={"temperature": 1.0})
return {"roast": response.text.strip()}
The Frontend (Web Speech API)
JavaScript
function speakRoast(text) {
const utterance = new SpeechSynthesisUtterance(text);
utterance.pitch = 1.6; // The "Attitude" setting
utterance.rate = 1.0;
window.speechSynthesis.speak(utterance);
}
How I Built It
Python & FastAPI: For a lightning-fast backend.
Google Gemini API (2.0 Flash): To generate creative, non-repetitive insults. I used a high temperature setting to keep the AI unpredictable.
Web Speech API: To give the AI a physical "voice." By manipulating the pitch, I transformed a standard system voice into a gnarly, sassy personality.
CSS Animations:
For that "shaking in fear" effect whenever you submit a password.
Prize Category
I am submitting for the Best Google AI Usage and Community Favorite.
Why? Because using cutting-edge Generative AI to recreate the experience of being judged by a high school clique is the peak of 2026 technology. It demonstrates that AI can do more than summarize documentsβit can also be "literally so mean, bruh."
- Hala Kabir
Top comments (0)