💡 Inspiration

The idea for StudyShield came from a simple but powerful question:

“What if students could study with AI — even when the internet goes down?”

As a developer and lifelong learner, I’ve relied on AI for research, brainstorming, and problem-solving. But I also get distracted very easily — constant notifications, messages, and online temptations often break my focus. I wanted a way to study with AI while completely disconnecting from the internet, so I could truly concentrate.

That frustration — and the desire to create a focused, distraction-free environment — became the spark behind StudyShield, an AI study companion that works entirely offline.

My vision was to build a tool that helps students stay productive, learn securely, and study privately — without the noise of the online world.

🚀 What It Does

StudyShield is powered first and foremost by Gemini Nano, Google’s on-device AI model that ensures offline performance, zero latency, and maximum privacy. It’s also one of the first web apps in the world to seamlessly combine Gemini Nano (on-device) with Gemini 2.5 Flash (cloud) — delivering the best of both worlds: local intelligence and cloud reasoning.

💻 Offline Mode — Powered entirely by Gemini Nano, running locally on your device with real-time responses, no cloud dependency, and no internet required.

🌐 Online Mode — Uses Gemini 2.5 Flash for advanced reasoning, creativity, and deep file understanding (images, PDFs, documents, etc.).

🌍 8-Language Support — Breaking language barriers for global learners.

🧭 Integrated Help Center — Guides users on how to enable Gemini Nano locally.

🔐 Security-First Design — Built with strict API key isolation and best security practices.

📱 Fully PWA-Ready — Installable, lightweight, and optimized for both mobile and desktop.

StudyShield adapts to you — not the other way around. Whether you’re on a plane, in class, or offline, your study companion is always ready to help.

🛠️ How I Built It

I built StudyShield using a modern, high-performance stack:

⚙️ Frontend: React, TypeScript, Vite, HTML, JavaScript 🧩 Backend: Node.js + Supabase ☁️ Cloud Hosting: Google Cloud + Vercel 🤖 AI Models: Gemini 2.5 Flash Lite (API) + Gemini Nano (on-device) 📦 Data Format: JSON 🔒 Security: Environment variables, protected routes, and key isolation

The entire core of StudyShield was built in just 7 days, followed by weeks of debugging, UX polishing, and feature expansion — including full translation support, the Help Center, and full PWA integration.

I followed Google’s documentation and internal dev guidelines to make the transition between cloud AI and local AI invisible to the user — creating a hybrid AI experience that feels instantaneous and natural.

⚔️ Challenges I Ran Into

Gemini Nano Integration: Getting on-device AI to run inside Chrome using the experimental window.ai API required deep exploration and debugging.

Offline Reliability: Ensuring StudyShield’s UI, caching, and storage worked flawlessly offline took multiple iterations.

Security: Protecting API keys while maintaining seamless Gemini Flash Lite access was non-trivial.

Migration: When Google deprecated Gemini 1.5 Flash, I migrated everything to Gemini 2.5 Flash Lite in record time.

Performance: Balancing real-time speed, low latency, and lightweight design across devices.

Each problem pushed me to innovate, not just fix.

🏆 Accomplishments That I’m Proud Of

Built the entire StudyShield core in 7 days

Achieved full offline functionality with Gemini Nano

Implemented secure API key protection and a multi-language system

Designed a clean, modern, responsive UI that feels like a native app

Turned StudyShield into a fully installable PWA

Created a Help Center teaching users how to enable on-device AI

StudyShield is more than a project — it’s proof that cloud and local AI can work together seamlessly to empower learning anywhere.

📚 What I Learned

How to bridge online and offline AI using Google’s Gemini architecture

The importance of security-first engineering for sensitive APIs

Deep understanding of browser-based on-device AI execution

How to build and iterate fast without compromising quality

That great ideas can be built fast — with discipline and continuous learning

🔮 What’s Next for StudyShield

The next steps are all about expansion and impact:

🎙️Voice Interaction — Natural conversation through speech

🧠 Study Summaries & Notes — AI-generated recaps for every session

🧩 AI Tutor Mode — Adaptive teaching based on user behavior

StudyShield was built for students — but it’s also built for the future of AI learning: intelligent, private, and always available.

StudyShield — Study anywhere. With or without the internet.

Built With

Share this project:

Updates