This is a submission for the DEV April Fools Challenge
What I Built
An app which take your thoughts as input and generate Cat image based on the sentiment present in text provided along with appropriate reply embed in photo itself.
Demo
Code
mayank905
/
UselessCat1
A cat which react to text sentiment
UselessCat1
A judgmental cat that reacts to your text using Google's Gemini AI.
Quick Start
Run the App
python3 -m http.server 8000
Then open http://localhost:8000 in your browser.
Setup Your API Key
- Visit Google AI Studio to get a free API key
- Open the app in your browser
- Paste your API key in the input field at the top
- Click "Save API Key"
- Start typing to see the cat's reactions!
How It Works
Type something in the textarea, and the judgmental cat will respond with a single emoji reaction based on your text sentiment.
⚠️ Security Note
- Your API key is stored only in your browser's localStorage — never sent to GitHub or any server
- Each user must add their own API key
- The key persists in your browser until you clear localStorage
- Do NOT hardcode your key in the HTML — always use the input field
How I Built It
- Html, JavaScript for front end display, receiving input.
- Call to Api of cataas.com for cat image generation and embedding reply in image.
- Gemini Api call to gemini-2.5-flash model for sentiment analysis.
Prize Category
Best Google AI Usage
Thanks for using the app :)
Top comments (0)