Inspiration

Many people struggle to read a prescription or understand how and when to take their medicines. Mistakes are easy to make, and not everyone has someone to ask. We wanted a calm, simple tool that explains what is written and says plainly when it can't read something.

What it does

MedClear reads a photo of a prescription or medicine strip and explains each medicine in simple words: what it is for, how to take it, common side effects and cautions.

  • Plain-language cards for every medicine, with before or after food and time of day
  • "Could not read clearly" section, so the app flags unclear text instead of guessing
  • Daily plan grouped by morning, afternoon, evening and night, with tick-off doses and browser reminders
  • Safety check for duplicate ingredients and points to ask a pharmacist
  • English, Spanish and French explanations, with medicine names kept in English
  • Print or save as PDF schedule
  • Guided demo and sample mode that run with no AI call

MedClear never diagnoses and always tells users to confirm with a doctor or pharmacist.

How we built it

Next.js, TypeScript and Tailwind CSS. A vision-capable Gemini model reads the photo through server-side API routes, so the API key never reaches the browser. Every response is validated with zod, and the app falls back across several models and caches results when one is slow or busy. A built-in narrated demo drives the real interface using local sample data.

Challenges

  • Making AI output reliable: strict JSON validation, lenient parsing, timeouts, retries and model fallbacks
  • Gemini's free tier can be slow or rate-limited, so we added caching, cooldowns and a no-AI sample mode
  • Keeping the safety wording careful: no diagnosis, no dose changes, "ask your pharmacist"

Accomplishments we're proud of

A complete flow from photo to schedule and safety check, a self-running narrated demo, and clear safety wording throughout.

What we learned

Designing around real AI limits, and showing uncertainty honestly instead of hiding it.

What's next

More languages, better handling of handwritten prescriptions, saved schedules, and review by healthcare professionals.

Notes for judges

  • The first load can take up to a minute on free hosting.
  • Live scans use Google's free Gemini API and can occasionally be slow or rate-limited. Use Watch demo or Open sample results to see the full flow without the AI.
  • All prescriptions shown are made up.
  • MedClear is for information only, not medical advice.

Built With

Share this project:

Updates

Submission history