<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ayushi Bhadani</title>
    <description>The latest articles on DEV Community by Ayushi Bhadani (@ayushi_bhadani_).</description>
    <link>https://dev.to/ayushi_bhadani_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3875824%2Fca2f573c-017a-4cfa-8924-cf3d949dc494.jpg</url>
      <title>DEV Community: Ayushi Bhadani</title>
      <link>https://dev.to/ayushi_bhadani_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ayushi_bhadani_"/>
    <language>en</language>
    <item>
      <title>How I Built VoteWise AI: Gamifying Democracy with Next.js &amp; Gemini 2.5 Flash 🗳️</title>
      <dc:creator>Ayushi Bhadani</dc:creator>
      <pubDate>Sat, 02 May 2026 10:36:48 +0000</pubDate>
      <link>https://dev.to/ayushi_bhadani_/how-i-built-votewise-ai-gamifying-democracy-with-nextjs-gemini-25-flash-467b</link>
      <guid>https://dev.to/ayushi_bhadani_/how-i-built-votewise-ai-gamifying-democracy-with-nextjs-gemini-25-flash-467b</guid>
      <description>&lt;p&gt;Democracy is beautiful, but let's be honest: understanding elections can be overwhelmingly complex.&lt;/p&gt;

&lt;p&gt;Between confusing voting systems, endless jargon, and language barriers, millions of eligible voters sit out every year simply because the process feels too intimidating. I wanted to change that.&lt;/p&gt;

&lt;p&gt;So, I built VoteWise AI — a modern, mobile-first SaaS platform designed to gamify and simplify the democratic process using Google's cutting-edge Gemini 2.5 Flash.&lt;/p&gt;

&lt;p&gt;Here is a look at what I built, the tech stack I used, and the challenges I overcame! 🚀&lt;/p&gt;

&lt;p&gt;🌟 What is VoteWise AI?&lt;br&gt;
VoteWise AI is a fully responsive, multilingual election guide covering 13 countries and 16 languages. Instead of reading boring government PDFs, users can have a natural, voice-enabled conversation with an AI that knows the ins and outs of their local electoral system.&lt;/p&gt;

&lt;p&gt;Key Features:&lt;br&gt;
🤖 Lightning-Fast AI Chat: Powered by Gemini 2.5 Flash, it answers any election question instantly.&lt;br&gt;
📖 Story Mode: This is my favorite feature! It dynamically generates child-friendly analogies and AI illustrations (via Pollinations.ai) to explain complex political concepts like the Electoral College or Parliamentary Democracy.&lt;br&gt;
🌍 Hyper-Localized: Real-time support for 16 languages with native Text-to-Speech (TTS) and Voice Recognition.&lt;br&gt;
📅 Live Election Calendar: 150+ real-world election events with audio reminders.&lt;br&gt;
📱 Mobile-First UI: A sleek, glassmorphic design that mimics the UX of premium AI apps like ChatGPT.&lt;br&gt;
🏗️ The Tech Stack&lt;br&gt;
I wanted this application to be blazing fast, highly secure, and visually stunning. Here is the stack I chose:&lt;/p&gt;

&lt;p&gt;-Frontend: Next.js 15 (App Router) + React&lt;br&gt;
-Styling: Tailwind CSS + Framer Motion (for buttery smooth micro-animations)&lt;br&gt;
-State Management: Zustand (with localStorage persistence)&lt;br&gt;
-Backend &amp;amp; Auth: Firebase Anonymous Auth + Firestore (protected by strict Security Rules)&lt;br&gt;
-AI: Google Gemini API&lt;br&gt;
-Deployment: Containerized and hosted on Google Cloud Run&lt;/p&gt;

&lt;h2&gt;
  
  
  🗳️ The Simulation Feature — Every Country Votes Differently Most civic apps show a generic "pick one" dropdown. VoteWise AI goes deeper:
&lt;/h2&gt;

&lt;p&gt;India's EVM machine plays the authentic electronic BEEP&lt;br&gt;
Australia forces you to RANK candidates (1, 2, 3) — you can't just pick one&lt;br&gt;
USA includes a write-in candidate text box&lt;br&gt;
France is a 2-step envelope system — pick your slip, then insert&lt;br&gt;
All sounds are generated with the Web Audio API — zero audio files, instant load.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc1vfmeoatvkrrivm6xyp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc1vfmeoatvkrrivm6xyp.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnk0nm11ywro9c7yi5dqe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnk0nm11ywro9c7yi5dqe.png" alt=" " width="800" height="398"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fes3ksck88rtxt6shsv12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fes3ksck88rtxt6shsv12.png" alt=" " width="800" height="394"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz9om5sxmntl5rixmzo6y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz9om5sxmntl5rixmzo6y.png" alt=" " width="800" height="396"&gt;&lt;/a&gt;&lt;br&gt;
🛠️ How It Was Built (And The Challenges)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Hydration &amp;amp; The "Emoji" Problem
One of the most interesting bugs I hit was a Next.js Server-Client Hydration Mismatch. It turned out that using String.split('') to parse multi-byte Unicode emojis on the server was causing the DOM to mismatch when it hit the client browser.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Fix: I learned to use Array.from() which safely handles Unicode surrogate pairs!&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Securing the AI Endpoint&lt;br&gt;
Because the Gemini API costs money and can be abused, I couldn't just expose it to the client. I built a secure Next.js API Route (/api/chat) that acts as a middleman. It strictly sanitizes user inputs (preventing prompt injections) and enforces an in-memory IP-based rate limit of 20 requests per minute.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Making it Production Ready for Google Cloud&lt;br&gt;
Getting a Next.js app to run smoothly on Google Cloud Run required optimizing the build. I updated the next.config.ts to include output: 'standalone', which drastically reduced the container size and enabled lightning-fast cold starts. I also had to securely inject the Firebase public keys via Cloud Build while keeping the Gemini secret safely isolated in Cloud Run's Secret Manager.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;🎨 The UX Philosophy&lt;br&gt;
I didn't want this to feel like a "government website." I wanted it to feel like a premium SaaS product.&lt;/p&gt;

&lt;p&gt;I implemented a dark-mode glassmorphism aesthetic using Tailwind. On mobile devices, I completely overhauled the layout to hide bulky navigation bars behind a slick hamburger menu, ensuring the AI Chat takes 100% of the screen focus. It’s fully responsive and accessible via semantic HTML.&lt;/p&gt;

&lt;p&gt;🔗 Try It Out!&lt;br&gt;
I'd love for you to test it out and let me know what you think. Ask it to explain the US Election using a story about pizza toppings! 🍕&lt;/p&gt;

&lt;p&gt;🌐 Live Demo: &lt;a href="https://votewiseai-543702534688.asia-south1.run.app/" rel="noopener noreferrer"&gt;https://votewiseai-543702534688.asia-south1.run.app/&lt;/a&gt;&lt;br&gt;
💻 GitHub Repo: AyushiBhadani/votewiseai&lt;/p&gt;

&lt;p&gt;If you like the project, I’d be honored if you dropped a ⭐ on the GitHub repo!&lt;/p&gt;

&lt;p&gt;Happy Voting! 🗳️✨&lt;/p&gt;

</description>
      <category>nestjs</category>
      <category>api</category>
      <category>gemini</category>
      <category>ai</category>
    </item>
    <item>
      <title>🏟️ Building SmartStadia: Revolutionizing the Fan Experience with React &amp; Google Cloud</title>
      <dc:creator>Ayushi Bhadani</dc:creator>
      <pubDate>Mon, 13 Apr 2026 04:11:13 +0000</pubDate>
      <link>https://dev.to/ayushi_bhadani_/from-chaos-to-control-building-smartstadia-for-smarter-stadiums-3d26</link>
      <guid>https://dev.to/ayushi_bhadani_/from-chaos-to-control-building-smartstadia-for-smarter-stadiums-3d26</guid>
      <description>&lt;p&gt;🚀 The Vision&lt;br&gt;
Stadiums are massive, complex environments. Whether it's finding your seat, locating a lost child, or knowing which restroom has the shortest line, the "Match Day" experience can often be stressful.&lt;/p&gt;

&lt;p&gt;SmartStadia was born to solve this. It’s an intelligent stadium coordination platform that uses real-time data to make match days safer and more enjoyable.&lt;/p&gt;

&lt;p&gt;✨ Key Features&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Command Center (Admin Security) 🔐
We built a role-protected dashboard for stadium authorities. It features:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;-Live Incident Mapping: Track medical or safety alerts across the stadium in real-time.&lt;br&gt;
-System Broadcasts: Send instant push alerts to every attendee's device.&lt;br&gt;
-Dynamic Zone Blocking: Instantly "lock down" areas and trigger the routing engine to redirect fans to safety.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Interactive Heatmaps &amp;amp; Smart Routing 🗺️
Using custom SVG-based mapping, fans can:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;-See live crowd density (Heatmaps).&lt;br&gt;
-Find the nearest restroom with the shortest queue.&lt;br&gt;
-Locate Child: A unique feature that simulates RFID-wristband -tracking to help parents find their kids instantly.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;High-Performance Design 🎨
I prioritized a "Premium Digital Twin" aesthetic.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;-Interactive Backgrounds: Mouse-tracking particles and glowing orbs create a futuristic feel.&lt;br&gt;
-Glassmorphism: A sleek, high-contrast UI that looks great on mobile or command-center screens.&lt;/p&gt;

&lt;p&gt;🛠 The Tech Stack&lt;br&gt;
-Frontend: React 18, Vite, Tailwind CSS, Framer Motion&lt;br&gt;
-Backend: Node.js, Express&lt;br&gt;
-Deployment: Google Cloud Run (Dockerized), GitHub&lt;br&gt;
-Testing: Vitest &amp;amp; React Testing Library (100% pass rate!)&lt;/p&gt;

&lt;p&gt;♿ Accessibility Matters&lt;br&gt;
We believe safety tools must be accessible to everyone. SmartStadia includes full ARIA support for screen readers and high-contrast themes for readability in all lighting conditions.&lt;/p&gt;

&lt;p&gt;🏁 Conclusion&lt;br&gt;
Building SmartStadia for the H2S Skill Prompt Wazr competition has been an incredible journey. It pushed us to combine high-level UI design with critical safety logic and professional cloud deployment.&lt;/p&gt;

&lt;p&gt;Check out the code on GitHub: &lt;a href="https://github.com/AyushiBhadani/SmartStadia_" rel="noopener noreferrer"&gt;https://github.com/AyushiBhadani/SmartStadia_&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’d love to hear your thoughts in the comments! How do you think technology can make live events better? ⬇️&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fauaom6wdollkw686epaw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fauaom6wdollkw686epaw.png" alt=" " width="800" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv6y2axh7ophwynqawbnu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv6y2axh7ophwynqawbnu.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>antigravity</category>
      <category>googlecloud</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
