๐ง Inspiration
My niece was born on 3rd January 2025, and our family found ourselves confused about which vaccines she needed and when. While we had access to medical professionals, we felt the need for an independent, trustworthy, and easily accessible resource โ something that could provide reliable vaccine guidance without needing repeated in-person visits.
Asking AI seemed like the next best thing.
Initially, I looked for a vaccine generator website but found only long articles, not tailored schedules. Thatโs when it hit me โ what if there was a tool that not only listed vaccine recommendations but also explained how it's given, what side effects it might have, and what conditions to avoid?
That's how VacciPro was born. And the Perplexity Sonar API became a lifesaver.
๐ What it does
VacciPro is a vaccine scheduler that:
- Takes your gender, date of birth, and health background as input.
- Calculates your age and shows a visual.
- Uses the Perplexity Sonar API to fetch vaccines from trusted health sites (CDC, WHO, Mayo Clinic, etc.).
Displays a clean vaccine table with columns like:
- Vaccine Name
- Month
- Why itโs Important
- How itโs Given
- Common Side Effects
Allows PDF download of your schedule.
Shows advertisements (e.g., for medical sponsors).
Fully responsive for desktop, tablet, and mobile.
๐ How we built it
I built the entire project solo, with guidance and validation from my friend Anjali Mathur, who is a doctor.
Tech used:
- Svelte + Vite for the frontend
- TypeScript for type safety and logic
- TailwindCSS for UI
- Node.js v18.20.8 for runtime
- Perplexity Sonar API for intelligent vaccine fetching
- jsPDF and jsPDF-AutoTable for generating downloadable PDFs
It took me about a month to build.
โ ๏ธ Challenges we ran into
- Crafting a perfect prompt for the Sonar API was hard. I got frequent JSON parsing errors.
Solved it by:
- Setting the
response_formatto structured JSON schema - Increasing
max_tokensto support long responses
- Setting the
Needed conditional prompts based on:
- Age
- Medical conditions
- Occupation
Had to build a retry mechanism:
- If the API failed on 12-month vaccine data (due to length), I split it into 6-month chunks and retried up to 3 times.
๐ Accomplishments that we're proud of
- The API returns truly helpful, beginner-friendly data.
- It explains how vaccines are given (injection/drops) and what side effects to expect.
- Developed a solid UI/UX that works well on all screen sizes.
- Added a sponsorship-ready ad system that can work on mobile, tablet, and desktop.
๐ What we learned
- Realized APIs like Perplexity are not as expensive as I thought โ thanks to the \$50 hackathon credit.
- Deepened my understanding of Svelte and TypeScript.
- Learned the importance of prompt engineering when integrating AI in healthcare tools.
๐ฎ What's next for Vaccine Pro
- Iโll be pitching to sponsors, such as clinics and vaccine centers, to place ads and attract traffic.
Planning a user login system so people can:
- Manage vaccine schedules for their entire family
- Receive SMS/email reminders for upcoming vaccines
Potential to expand into a vaccine passport system with user profiles and full history.
Built With
- node.js
- svelte
- typescript
- vite
Log in or sign up for Devpost to join the conversation.