Every solo dev dreads opening their inbox to this:
"Your project was suspended because it engaged in abusive activity consistent with hijacking resources."
Within hours, an unauthorized bot scraped one of my Gemini API keys (Generative Language API Key3) and burned hundreds of dollars in automated, high-frequency requests. Google's automated security tripwires immediately froze my entire project.
The Post-Mortem ๐
- The Cause: The key was accidentally exposed during a rapid deployment cycle. Scraping bots snatched it within minutes.
- The Damage: An instant surge to nearly HK$300 in a single day, followed by a total project lockout that took down live user sessions.
- The Fix: Deleted the compromised key immediately, moved all AI interactions behind server-side Next.js route handlers with rate limiting, and configured aggressive billing budget alerts.
What I Was Building: RadioShadow ๐ป
The compromised key powered RadioShadow โ a web app designed to break the dreaded "Intermediate Plateau" in language learning.
Textbook apps make you feel confident, but real-world radioโpacked with slang, fast speech, and overlapping voicesโis an entirely different beast.
RadioShadow solves this through the Shadowing technique:
- Global Radio Streams: Tap into unedited live broadcasts worldwide.
- Real-Time Subtitles & AI Feedback: Low-latency transcription, live translations, and pronunciation scoring directly through the mic.
- "โจ Help Me Choose" Wizard: A conversational selector that matches you to the right station based on language and vibe, avoiding the paradox of choice.
Tech Stack & Lessons ๐ ๏ธ
- Stack: Next.js (App Router), Tailwind CSS, Framer Motion, Web Audio API, Gemini API, Firebase.
- Key Lesson: Never let API keys touch client-facing bundles, even for "quick local tests." Always proxy calls through authenticated, rate-limited backend routes.
The app is back up at radioshadow.ai.studio (free live streams available to test).
How does the audio stream latency feel on your end, and what safeguards do you use to protect your AI tokens? Drop your thoughts below! ๐


Top comments (0)