Mediroute: An open-source AI platform exposing global drug price disparities MediRoute launched as an open-source platform that compares drug prices across five markets (US, Canada, India, Singapore, UK), checks import legality with cited regulations, and runs a Claude-powered AI Medicine Agent for sourcing guidance. The project cites Imatinib at $9,800/month in the United States versus $208/month from India for the same WHO-GMP-manufactured molecule, and ships a 100-drug catalog, 20 bilateral import rules covering 5Γ—4 country pairs, and supplier GMP/GDP/FDA/EMA certification tracking. The backend is a domain-driven modular monolith with JWT/RBAC across 5 roles, deployable via docker compose with an ANTHROPIC_API_KEY. Compare global drug prices Β· Check import legality Β· AI Medicine Agent Making life-saving medication accessible and affordable for everyone, everywhere. MediRoute is an open-source HealthTech + RegTech + AI Agent platform that helps patients: - πŸ’Š Compare real drug prices across 5 core markets US, Canada, India, Singapore, UK - βš–οΈ Check import legality β€” green/yellow/red compliance light for every country pair, with legal source citations - πŸ€– Get AI guidance β€” AI Medicine Agent recommends drugs and sourcing options based on your country, condition, and budget - πŸ” Monitor shortages β€” Drug Shortage Radar with therapeutic alternative suggestions - βœ… Verify suppliers β€” GMP/GDP/FDA/EMA certification tracking with Trust Score This is not a pharmacy or a marketplace. MediRoute is a medicine intelligence platform β€” think of it as Bloomberg for global drug pricing, with a regulatory compliance layer built in. A cancer patient in the United States pays $9,800/month for Imatinib. The exact same drug, same molecule, manufactured to WHO-GMP standards, costs $208/month from India. Most patients don't know this. Those who do, don't know if it's legal to import it. Those who find out it might be legal, don't know which suppliers are trustworthy. MediRoute solves all three problems. cp .env.example .env fill in ANTHROPIC API KEY at minimum docker compose up --build Frontend: http://localhost:5173 Backend: http://localhost:8000/docs This spins up Postgres, Redis, the backend hot-reload , and the frontend Vite dev server together. See docs/ENVIRONMENT.md https://github.com/54jo3vmp/mediroute/blob/main/docs/ENVIRONMENT.md for what every variable does. For a production-like stack built assets, nginx reverse proxy, no hot-reload β€” useful for testing self-hosted deployments outside Render : cp .env.example .env set real SECRET KEY / POSTGRES PASSWORD / etc. docker compose -f docker-compose.prod.yml up --build -d Everything served through nginx: http://localhost/ cd frontend npm install npm run dev Visit http://localhost:5173 Backend cd backend python -m venv venv && source venv/bin/activate pip install -r requirements.txt cp .env.example .env Fill in your ANTHROPIC API KEY uvicorn app v3.entrypoint.app:app --reload API docs at http://localhost:8000/docs Frontend separate terminal cd frontend cp .env.example .env npm install && npm run dev MediRoute uses Domain-Driven Design DDD with a Modular Monolith pattern, ready to split into microservices when scale demands it. β”œβ”€β”€ modules/ β”‚ β”œβ”€β”€ identity/ Auth, JWT, RBAC 5 roles β”‚ β”œβ”€β”€ drug intelligence/ 100-drug catalog, interactions, shortages β”‚ β”œβ”€β”€ compliance/ 20 bilateral import rules 5Γ—4 country pairs β”‚ β”œβ”€β”€ market intelligence/ Price comparison, supplier trust scores β”‚ β”œβ”€β”€ order workflow/ Order FSM + Escrow logic β”‚ └── ai agent/ Claude-powered consultation + OCR └── shared/ β”œβ”€β”€ security/ JWT, RBAC, immutable Audit Log └── infrastructure/ Event bus, cache Redis-ready , Unit of Work Full architecture blueprint: docs/10 production architecture blueprint.md mediroute/ β”œβ”€β”€ backend/ β”‚ β”œβ”€β”€ app v3/ ← the live backend DDD modular monolith β”‚ β”œβ”€β”€ alembic/ DB migrations β”‚ β”œβ”€β”€ Dockerfile β”‚ └── .env.example β”œβ”€β”€ frontend/ β”‚ β”œβ”€β”€ Dockerfile production build served via nginx β”‚ β”œβ”€β”€ nginx.conf nginx config baked into the frontend image β”‚ └── .env.example β”œβ”€β”€ docker/ β”‚ └── nginx/nginx.conf reverse proxy for self-hosted docker-compose.prod.yml β”œβ”€β”€ docs/ architecture, API design, environment reference β”œβ”€β”€ docker-compose.yml local dev stack hot reload β”œβ”€β”€ docker-compose.prod.yml self-hosted production stack nginx + built assets β”œβ”€β”€ render.yaml Render Blueprint used for the hosted deployment └── .env.example | Dimension | Current | Roadmap | |---|---|---| | Countries | 5 US, CA, IN, SG, GB | 100 countries | | Drug catalog | 8 flagship drugs | 100,000 drugs | | Compliance rules | 20 bilateral lanes | 2,000+ lanes | | Languages | English, δΈ­ζ–‡, ζ—₯本θͺž | 20+ languages | | Cache | In-memory free | Redis paid | | Search | PostgreSQL full-text | Qdrant vector search | We especially need help with: 1. Drug data β€” accurate pricing, ATC codes, brand names for more drugs 2. Compliance research β€” import rules for more country pairs legal citations required 3. Translations β€” the UI needs more languages 4. Country expansion β€” adding markets beyond the current 5 See CONTRIBUTING.md https://github.com/54jo3vmp/mediroute/blob/main/CONTRIBUTING.md for full guidelines. Medical/regulatory contributions require cited sources. Unsourced compliance rules are rejected β€” incorrect import rules could harm patients. Medical: This platform provides information only. It does not constitute medical advice. Always consult a licensed physician before making medication decisions. Regulatory: Import regulations change. Always verify current rules with official authorities and a licensed customs broker before importing medication. Pricing: Prices are indicative. Always confirm current pricing directly with suppliers before ordering. | Layer | Technology | |---|---| | Frontend | React 19, Vite, Tabler Icons | | Backend | Python 3.12, FastAPI, SQLAlchemy 2.0 | | Database | PostgreSQL 16 multi-schema DDD | | AI | Anthropic Claude Sonnet , Tool-Calling Architecture | | Auth | JWT HS256 β†’ RS256 ready, RBAC + Audit Log | | Cache | In-memory Redis-ready interface | | Deployment | Render free tier β†’ Kubernetes ready, Docker Compose for local/self-hosted | Full environment variable reference: docs/ENVIRONMENT.md https://github.com/54jo3vmp/mediroute/blob/main/docs/ENVIRONMENT.md CI/CD pipeline GitHub Actions β†’ Render and how to set it up: docs/CI CD.md https://github.com/54jo3vmp/mediroute/blob/main/docs/CI CD.md Security features JWT refresh, rate limiting, secrets β€” Sprint 3 summary: docs/SPRINT3 SECURITY.md https://github.com/54jo3vmp/mediroute/blob/main/docs/SPRINT3 SECURITY.md Monitoring logging, Prometheus/Grafana, Sentry, uptime alerts β€” Sprint 4 summary: docs/MONITORING.md https://github.com/54jo3vmp/mediroute/blob/main/docs/MONITORING.md Testing unit/integration/E2E, coverage, and two real bugs the tests caught β€” Sprint 5 summary: docs/SPRINT5 TESTING.md https://github.com/54jo3vmp/mediroute/blob/main/docs/SPRINT5 TESTING.md Internationalization 12 locales, date/currency/unit formatting, hreflang β€” Sprint 6 summary: docs/SPRINT6 I18N.md https://github.com/54jo3vmp/mediroute/blob/main/docs/SPRINT6 I18N.md API reference every endpoint, curl examples, error codes β€” Sprint 7: docs/API.md https://github.com/54jo3vmp/mediroute/blob/main/docs/API.md Β· Interactive docs at /docs Β· SDKs: Python https://github.com/54jo3vmp/mediroute/blob/main/sdk/python/README.md , JavaScript https://github.com/54jo3vmp/mediroute/blob/main/sdk/js/README.md Β· docs/SPRINT7 API DOCS.md https://github.com/54jo3vmp/mediroute/blob/main/docs/SPRINT7 API DOCS.md Production review a real data-loss bug found & fixed, security hardening, honest known-gaps list β€” Sprint 8: docs/SPRINT8 PRODUCTION REVIEW.md https://github.com/54jo3vmp/mediroute/blob/main/docs/SPRINT8 PRODUCTION REVIEW.md Internationalization 12 locales, currency/date formatting, hreflang β€” Sprint 6 summary: docs/SPRINT6 I18N.md MIT License β€” see LICENSE https://github.com/54jo3vmp/mediroute/blob/main/LICENSE for details. This project is open source and welcomes contributions. The mission is bigger than any single company: making life-saving medicine accessible to everyone, everywhere. Built with ❀️ for patients who deserve better