← Back to projects

FindMyBlood

A modern blood donor discovery and management web application that connects patients in need with compatible blood donors, upcoming donation camps, and a live donor dashboard.

ReactTypeScriptViteTailwind CSSshadcn/uiRadix UIReact RouterTanStack Query
FindMyBlood cover

Introduction

FindMyBlood is a blood donor discovery and management platform built around a simple goal: make finding a compatible donor fast, clear, and accessible during urgent situations. Instead of relying on scattered messages or outdated spreadsheets, patients and families can search for donors by blood group, city, and distance radius in one place.

The application brings together donor search, donor registration, donation camp discovery, and a personal donor dashboard in a responsive interface. The focus is on clarity and speed—helping users move from landing on the site to locating a match or managing their availability in just a few clicks.

Why I built it

In emergencies, finding a compatible blood donor often depends on word-of-mouth or unorganized social media posts. I wanted to build a dedicated web interface that treats donor discovery and donor management as a clean, structured workflow.

Building FindMyBlood meant designing both sides of the experience: a fast search flow for recipients looking for urgent help, and a motivating, easy-to-use dashboard for donors to track their donations, eligibility dates, and availability status.

Core features

  • Donor search and filtering: filter compatible blood donors by blood group, city, and distance radius on the Need Blood page, with loading skeletons during search.
  • Donor registration: dedicated Donate page allowing new donors to submit their blood group, location, and contact details.
  • Donor dashboard: view profile information, toggle availability status in real time, and track total donations, lives saved, next eligible donation date, achievement badges, and recent donation history.
  • Donation camps directory: dedicated Donation Camps page to browse upcoming local blood drives and community camps.
  • Command palette navigation: press Ctrl+K (or Cmd+K) or use the floating command button to jump between Home, Need Blood, Donate Blood, Dashboard, and Donation Camps.
  • Responsive UI and feedback: toast notifications, accessible Radix UI primitives, and mobile-friendly layouts across all pages.

How it works

  1. Choose a workflow. From the landing page, a user selects Find Donors, Become a Donor, Donation Camps, or the Donor Dashboard—or opens the Command Palette with Ctrl+K.
  2. Filter compatible donors. On the Need Blood page, the user picks a blood group, enters a city, and adjusts the distance radius slider to narrow down matching donors.
  3. Review donor cards. Matching profiles from the donor dataset are rendered as structured cards after a brief loading state.
  4. Register as a donor. New donors fill out the registration form on the Donate page with their details and blood type.
  5. Manage donor status. On the Dashboard, donors can toggle their availability switch, review their next eligible donation date, and inspect past hospital/blood bank donations.
  6. Route cleanly on the client. React Router handles client-side navigation across /, /need-blood, /donate, /dashboard, and /camps without full-page reloads.

Use cases

Urgent donor lookup

Patients or family members can filter by exact blood group, city, and distance radius to quickly narrow down available donors nearby.

Donor onboarding

Prospective donors can register their blood group and contact details in a structured form so they can be matched when needed.

Tracking donation eligibility

Returning donors can check their last donation date, next eligible donation date, total donations, and estimated lives saved from the Donor Dashboard.

Community blood drives

Organizers and participants can use the Donation Camps page to view upcoming local drives alongside individual donor listings.

Tech stack

  • React 18 and TypeScript: component architecture and type-safe UI state.
  • Vite: fast local development server and production bundling.
  • React Router DOM: client-side routing across Home, Need Blood, Donate, Dashboard, and Donation Camps.
  • Tailwind CSS and shadcn/ui (Radix UI): utility-first styling and accessible UI primitives (cards, selects, sliders, switches, dialogs, and command palette).
  • TanStack Query: client-side query provider setup ready for API integration.
  • React Hook Form and Zod: form state management and schema validation.
  • Lucide React and Sonner: consistent iconography and toast notifications.

Engineering challenges

Designing for urgency without clutter

When someone needs blood urgently, too many form fields or nested menus slow them down. Keeping the Need Blood search focused on three clear inputs—blood group, city, and radius—makes filtering immediate while loading skeletons provide clear visual feedback.

Balancing recipient and donor workflows

The platform serves two distinct audiences: recipients searching for help and donors managing their availability. Separating these into dedicated routes (/need-blood, /donate, /dashboard, /camps) while linking them through a persistent header and Ctrl+K command palette keeps each page focused.

Maintaining UI consistency across components

Using shadcn/ui primitives built on Radix UI ensured that interactive controls like the availability switch, distance slider, blood group select dropdowns, and command dialog behave reliably across desktop and mobile viewports.

Performance and evaluation

FindMyBlood builds into a lightweight static bundle with Vite (npm run build), keeping page transitions instant via client-side routing and keeping dependencies lean.

Currently, donor profiles and dashboard stats run on local client-side mock data (src/data/mockDonors.ts) rather than a live database. I am not claiming live production matching or real-time SMS/notification delivery without a connected backend service.

Improvements I want to make

  • Backend and database integration: connect donor registration, search filtering, and dashboard availability toggles to a persistent database and REST/API layer.
  • User authentication: add secure donor sign-in so users can edit their own profiles and donation logs rather than viewing static profile data.
  • Real-time alerts and geolocation: notify nearby compatible donors when an urgent request is posted and support map-based distance calculation.
  • Verified camp listings: allow hospitals and blood banks to submit and update donation camp schedules dynamically.

What I learned

Building a healthcare-oriented web app is as much about information clarity and user trust as it is about components and styling. Structuring clean forms, accessible controls, and clear visual hierarchy makes critical workflows—like finding a donor or toggling availability—feel straightforward.

FindMyBlood gave me hands-on experience combining React, TypeScript, Tailwind CSS, and Radix UI primitives into a cohesive, multi-page application ready to be extended with a live backend.

Visit Live Demo · Source Code on GitHub