MedTrust
Unified Medical Donation Platform with AI Fraud Detection
Full-stack medical fundraising platform with real-time donor transparency, expense tracking, and AI-powered fraud detection microservice.
Full-Stack Web, AI & Machine Learning, Backend Systems
2024 Development
Next.js 14 • React 18
Cross-Platform
Problem, Solution & Engineering Scope
Operational Challenges & Cloud Fragility
Small and medium enterprises often face erratic network outages, recurring SaaS subscription costs, and vendor lock-in. Existing cloud accounting tools stop functioning when internet connectivity fails, stalling physical store checkout counters.
Offline-First Zero Latency Local Engine
MedTrust solves the donor trust crisis in medical crowdfunding through an end-to-end transparency ledger. Patients submit hospital bills, NGOs audit and verify campaign legitimacy, and donors track fund utilization in real time. The platform integrates a FastAPI machine learning microservice that analyzes campaign narratives, detects anomalous requested sums against standard medical costs, and flags suspicious activity prior to fund disbursal.
- 1Multi-tier containerized architecture (Next.js frontend, Express API, FastAPI ML microservice)
- 2AI fraud detection analyzing text patterns and hospital bill amount z-scores
- 3Razorpay payment verification with cryptographic HMAC-SHA256 signature validation
- 4AWS S3 private file storage with time-limited pre-signed URL generation
- Automotive Service Centers & Independent Garages
- Spare Parts Retailers & Inventory Managers
- Offline POS Operators needing Zero-Cloud Dependability
Key System Capabilities
Engineered features and deep architectural implementations.
Role-Based Access Control
Granular JWT authorization separating Donor, Patient, NGO Verifier, and Super Admin privileges.
Cryptographic Payment Verification
Razorpay integration with server-side HMAC-SHA256 signature validation.
AI Fraud Scoring Pipeline
Scikit-learn pipeline evaluating requested amounts against clinical treatment brackets.
System Architecture & Engineering Design
High-throughput, decoupled system topology balancing offline persistence, low latency, and modular integrations.
Presentation Layer
User interface, client-side state handling, input sanitization, and responsive views.
Application Core
Core domain logic, transaction coordinator, validation pipeline, and IPC/API endpoints.
Persistence Layer
Normalized persistence layer with indexing, foreign key constraints, and transactional ACID safety.
External Services
Third-party APIs, asynchronous cloud synchronization, document generators, and external webhooks.
User interface, client-side state handling, input sanitization, and responsive views.
Core domain logic, transaction coordinator, validation pipeline, and IPC/API endpoints.
Normalized persistence layer with indexing, foreign key constraints, and transactional ACID safety.
Third-party APIs, asynchronous cloud synchronization, document generators, and external webhooks.
Technology Stack & Core Tooling
Selected languages, frameworks, runtime environments, and engines.
Next.js 14
Full-stack React framework featuring App Router architecture, Server Components, and optimized SEO rendering.
React 18
React 18 concurrent rendering engine with state batching, transitions, and suspense boundaries.
Tailwind CSS
Utility-first CSS framework enabling design token consistency, responsive layouts, and dark mode theming.
Node.js
Asynchronous event-driven JavaScript runtime executing server-side workflows, file streams, and IPC handlers.
Express.js
Minimalist, unopinionated web framework for Node.js delivering REST endpoints and middleware security pipelines.
FastAPI (Python)
Dynamic programming language utilized for data modeling, statistical ARIMA forecasting, and machine learning pipelines.
scikit-learn
Machine learning library providing predictive regressions, classification ensembles, and feature scaling.
MySQL
High-performance transactional relational database with InnoDB foreign key cascades and B-tree indexes.
AWS S3
Highly durable object storage storing binary assets, documents, and backups with pre-signed URL access.
Razorpay API
Payment gateway integration with cryptographic HMAC-SHA256 signature verification and automated webhook reconciliation.
Docker Compose
Multi-container orchestration coordinating API services, databases, and reverse proxies through unified manifests.
Engineering Challenges & Technical Solutions
Complex bottlenecks, concurrency hurdles, and architectural decisions resolved during development.
Configured AWS S3 with private ACLs and temporary pre-signed URL generation with 15-minute expiration windows.
Individual Contributions & Architectural Ownership
Core development, system architecture, database schema, and delivery milestones.
Architected the Docker Compose environment orchestrating Next.js, Express, MySQL, and FastAPI
Designed the normalized relational database schema with connection pooling
Implemented secure JWT middleware and HMAC payment verification handlers
Project Outcomes & Benchmarks
Created a defensible, auditable crowdfunding workflow demonstrating how AI classification and cryptographic validation restore donor trust.
Explore Other Architectures
AutoBillDrive
Offline-first desktop billing application for Windows with SQLite persistence, automated PDF generation, Google Drive sync, and WhatsApp delivery.
EventApp
Production-ready event registration platform with Spring Boot 3.2, React 18, JWT RBAC, QR-code ticket generation, and async email confirmations.
