Skip to content
BloodLink

BloodLink

Syncing Donors to Hospitals in Real-Time

Created on 24th January 2026

โ€ข

BloodLink

BloodLink

Syncing Donors to Hospitals in Real-Time

The problem BloodLink solves

๐Ÿ’  BloodLink fixes the slow, chaotic, and unreliable way blood donors are found during emergencies, replacing WhatsApp forwards, outdated contact lists, and random phone calls with a real-time, location-aware system that connects hospitals with nearby, eligible, and available donors in seconds.

๐Ÿ’  Using MongoDB geospatial indexing with Mongoose, the backend finds compatible donors within a 10 km radius, filtering by blood group, availability status, and precise location accuracy for fast and relevant matches.

๐Ÿ’  Hospitals can send a single SOS request that triggers instant alerts on donor dashboards using Socket.io, eliminating manual calls and message spam while enabling real-time status updates for each emergency.

๐Ÿ’  React with Zustand keeps the frontend fast, reactive, and state-synced in real time, while React Hot Toast ensures donors never miss an emergency alert with prominent, non-intrusive notifications.

๐Ÿ’  Leaflet and React-Leaflet power live maps so hospitals and donors see exact locations, routes, and distances instead of vague addresses, improving response time and navigation accuracy.

๐Ÿ’  Authentication and authorization are secured with JWT and bcrypt, along with role-based access control that separates hospital, donor, and admin privileges for a safe and trustworthy system.

๐Ÿ’  Nodemailer and Twilio provide fallback email and SMS alerts, ensuring SOS notifications are delivered even if users are offline or not actively using the app.

๐Ÿ’  Axios handles smooth, reliable API communication between frontend and backend, enabling consistent real-time data flow during high-pressure situations.

๐Ÿ’  Tailwind CSS with DaisyUI delivers a clean, intuitive, and mobile-friendly UI that remains usable under stress, with clear layouts, accessible controls, and responsive design.

๐Ÿ’  The platform supports donor profiles, availability toggling, SOS request history, request tracking, real-time donor acceptance status, and hospital-side monitoring dashboards.

๐Ÿ’  In short, BloodLink replaces panic-driven donor searches with a fast, automated, real-time network that saves time, reduces confusion, and helps get blood to patients when it matters most.

Challenges we ran into

โ€ข Real-time alerts werenโ€™t showing even though Socket.io was emitting events and frontend logs confirmed data arrival; the issue was simply forgetting to render the <Toaster /> component in App.jsx, so notifications had nowhere to display.

โ€ข The server kept crashing silently during user registration because isAvailable and lastDonationDate were accidentally defined twice in the Mongoose User schema; cleaning and consolidating the schema fixed it.

โ€ข Nearby-donor search initially failed because MongoDB requires a 2dsphere index for geospatial queries; adding userSchema.index({ location: "2dsphere" }) and enforcing proper GeoJSON coordinate storage resolved it.

โ€ข Fixed a bug where all the registered donor got a certificate even if they hadnt successfully donated the blood

Discussion

Builders also viewed

See more projects on Devfolio