AI diagnoses symptoms and mints a private medical summary NFT stored securely on the Aptos blockchain.
🔗 https://medguardai.vercel.app/
Artificial Intelligence / Machine Learning + Blockchain Technology
Patients today face:
- Fragmented and inaccessible medical records
- No control over sharing or data ownership
- Vulnerability to security breaches in centralized systems
💡 There’s a need for a decentralized, AI-driven platform that empowers patients to securely manage and own their health records.
MedGuardAI is an innovative platform that combines the intelligence of AI with the security of blockchain. It allows users to:
- Input symptoms via text, image, audio, or video
- Receive structured health assessments via Google Gemini
- Generate a PDF health report
- Mint that report as a private NFT on Aptos
- Securely store it on IPFS, ensuring ownership, privacy, and portability
🔐 Users stay in complete control of their medical data, share it only with consent, and enjoy seamless access—even during emergencies or across borders.
🎯 Key Benefits:
- AI-powered, multimodal health analysis
- Decentralized IPFS storage
- Blockchain-secured NFTs for medical records
- Real-time health monitoring with IoT device support
- Patient-first design with full data sovereignty
| Layer | Tools & Technologies |
|---|---|
| Frontend | Next.js 14 (App Router), React, TypeScript |
| Styling | Tailwind CSS, shadcn/ui, Framer Motion, Lucide Icons |
| AI Integration | Google Gemini API (Multimodal Analysis) |
| Blockchain | Aptos (NFT minting for medical records) |
| Storage | IPFS via Pinata (Decentralized PDF Storage) |
| Backend | Supabase (PostgreSQL) |
| Auth | Supabase Auth |
| PDF Generation | jsPDF |
- Accepts inputs via text, image, audio, or video.
- Analyzes symptoms via Fine-tuned Gemini 2.5 Latest AI Models.
- Generates structured reports including:
- Probable diagnosis
- Severity level
- Likely causes
- Suggested treatments
- Exports a PDF health report for permanent recordkeeping.
- AI reports are saved as PDFs.
- Uploaded to IPFS via Pinata.
- Unique IPFS hash is stored in the database and mapped to the NFT.
- Medical reports are minted as private NFTs on Aptos.
- NFTs contain encrypted links to IPFS reports.
- Ensures data integrity, transparency, and access control.
- Connects with wearables like fitness bands or smartwatches.
- Tracks vitals and aggregates real-time health metrics.
- Computes personalized Wellness Scores from continuous inputs.
🔐 Built with Supabase Auth and Role-based Access Control
- Secure Sign-up/Login using email/password or OAuth.
- Every user has a dedicated profile with:
- Personal info (age, blood group, conditions)
- Linked IoT devices
- NFT medical history
- Profiles are stored securely in PostgreSQL and encrypted at rest.
- Only verified users can:
- Mint/view NFTs
- Access or share medical reports
- Modify profile data or device settings
- Shows wellness history, AI insights, and NFT collections.
- Visual trends from AI reports and IoT vitals.
- Share/download reports with consent-based access.
- Grant third-party (doctor/hospital) permission to view specific NFTs.
- Server Components handle AI calls, IPFS uploads, and NFT minting.
- Client Components power real-time dashboard UI.
- Supabase manages:
- Auth, sessions & JWTs
- Data encryption & user-specific storage
- Fine-grained access control
Redefining healthcare with AI-powered diagnostics and decentralized medical ownership—because your health data should belong to you._






