{"id":18014285,"url":"https://github.com/thisis-developer/medichain","last_synced_at":"2025-10-26T15:08:33.400Z","repository":{"id":259083417,"uuid":"876278745","full_name":"ThisIs-Developer/MediChain","owner":"ThisIs-Developer","description":"MediChain: Blockchain-Based Pharmaceutical Supply Chain Management","archived":false,"fork":false,"pushed_at":"2025-05-27T18:16:07.000Z","size":27248,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-27T19:32:14.002Z","etag":null,"topics":["blockchain","cloudflare","dapps-development","ethereum","html-css-javascript","jar","javaspringboot","railway","smart-contracts","solidity"],"latest_commit_sha":null,"homepage":"https://medichain.pages.dev","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThisIs-Developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-21T17:43:02.000Z","updated_at":"2025-05-27T18:16:11.000Z","dependencies_parsed_at":"2024-11-04T17:33:50.705Z","dependency_job_id":"23bb0802-79b2-4661-845d-49ab78a6499a","html_url":"https://github.com/ThisIs-Developer/MediChain","commit_stats":null,"previous_names":["thisis-developer/medichain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThisIs-Developer/MediChain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIs-Developer%2FMediChain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIs-Developer%2FMediChain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIs-Developer%2FMediChain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIs-Developer%2FMediChain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThisIs-Developer","download_url":"https://codeload.github.com/ThisIs-Developer/MediChain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIs-Developer%2FMediChain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281122434,"owners_count":26447336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","cloudflare","dapps-development","ethereum","html-css-javascript","jar","javaspringboot","railway","smart-contracts","solidity"],"created_at":"2024-10-30T04:07:34.517Z","updated_at":"2025-10-26T15:08:33.395Z","avatar_url":"https://github.com/ThisIs-Developer.png","language":"HTML","readme":"# MediChain: Blockchain-Based Pharmaceutical Supply Chain Management\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-red.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Build Status](https://img.shields.io/badge/build-passing-brightgreen)](https://github.com/yourusername/medchain)\n[![Version](https://img.shields.io/badge/version-1.0.0-blue)](https://github.com/yourusername/medchain/releases)\n[![Ethereum](https://img.shields.io/badge/Ethereum-Powered-3C3C3D?logo=ethereum)](https://ethereum.org/)\n[![Solidity](https://img.shields.io/badge/Solidity-%5E0.8.0-363636)](https://soliditylang.org/)\n\n---\n\n## ⚙️ Overview  \n\n**MediChain** is a secure, transparent, and efficient blockchain-based system that transforms pharmaceutical supply chain management. Built on Ethereum, this solution provides end-to-end traceability of medical products from manufacturers to patients, eliminating counterfeit drugs and ensuring patient safety.  \n\n---\n\n## ✨ Features  \n\n- 🔒 **Secure Drug Registration**: Immutable blockchain ledger for manufacturers  \n- 🔁 **Automated Ownership Transfer**: Smart contract-based secure handovers  \n- 🧭 **State Management**: Track medicine journey from production to sale  \n- 📱 **QR Code Verification**: Instant authentication with a simple scan  \n- 🏛️ **Decentralized Architecture**: No single point of failure  \n- ⏱️ **Real-Time Tracking**: Monitor the movement of medicines live  \n\n---\n\n## 🛠️ Tech Stack  \n\n- **Blockchain**: Ethereum (Private Network), Solidity  \n- **Frontend**: HTML, CSS, JavaScript  \n- **Web3 Integration**: MetaMask, Web3.js  \n- **Smart Contracts IDE**: Remix IDE  \n\n---\n\n## 🏗️ System Architecture  \n\nMediChain consists of three integrated layers:  \n\n### 1️⃣ Blockchain Network  \n- Private Ethereum blockchain as the foundational database  \n- Solidity smart contracts for business logic automation  \n- Immutable record-keeping with timestamped transactions  \n\n### 2️⃣ Client Communication Layer  \n- Web3.js for blockchain connectivity  \n- User interfaces for stakeholder interactions  \n- MetaMask integration for secure authentication and transaction signing  \n\n### 3️⃣ Application Layer  \n- HTML-CSS-JavaScript frontend interface  \n- QR code integration for product verification  \n- Real-time tracking dashboard  \n\n![Architecture Diagram](./assets/architecture_diagram.png)  \n\n---\n\n## 🧩 Key Modules  \n\n### 🔗 Smart Contract Operations  \n\nSmart contracts written in Solidity handle:  \n\n- `addMedicine()` – Register medicines with full traceability  \n- `purchaseMedicine()` – Buy securely with automatic ownership transfer  \n- `updateMedicineState()` – Update lifecycle state (e.g., Manufactured, In Stock, Sold, Expired)  \n- `getMedicine()`, `getMedicineState()` – Retrieve real-time product and status info  \n\n### 🖥️ Dashboard  \n\n- Clean, professional interface modeled after modern commerce platforms  \n- Track:  \n  - 🧾 Order history  \n  - 💊 Total drugs registered  \n  - 📦 Total stock across batches  \n  - 🏷️ Total units sold  \n- Manufacturer insights, quantity analytics, and QR-based lookup tools  \n\n### 🔍 Track Medicine  \n\n- Search by medicine ID to view:  \n  - 🧬 Batch metadata  \n  - 🏭 Manufacturer identity  \n  - ⏳ Lifecycle state and timestamps  \n  - 👤 Current owner in the supply chain  \n- One-click **Verification Report** generation for regulators or consumers  \n\n### 🛒 Buy Medicine  \n\n- 🔎 Live search and filter system  \n- 💳 Detailed product cards with dynamic pricing  \n- ✅ Integrated blockchain validation before purchase  \n- ⚡ Smooth transaction flow with MetaMask authentication  \n\n### 👥 User Management  \n\n- Register as:  \n  - 🏭 Manufacturer  \n  - 🚚 Distributor  \n  - 🏪 Pharmacy  \n- Role-based login with Ethereum identity  \n- All interactions are cryptographically signed  \n\n---\n\n## 🖼️ Screenshots  \n\n\u003e 🧾 Dashboard Overview  \n\u003e ![Dashboard](https://github.com/user-attachments/assets/f17bda53-9a86-46d3-bac4-358c5ffb6653)  \n\u003e ![Dashboard](https://github.com/user-attachments/assets/dd6f7ae8-4223-427e-941e-b524eec850e8)  \n\n\u003e 🔍 Track Medicine  \n\u003e ![Track Medicine](https://github.com/user-attachments/assets/084df5ed-6356-40f8-beaa-e985def44016)  \n\n\u003e 🛒 Buy Medicines  \n\u003e ![Buy Medicine](https://github.com/user-attachments/assets/03738613-ee51-46de-bd5e-664038ffd14c)  \n\u003e ![Buy Medicine](https://github.com/user-attachments/assets/8dc7550c-219b-4ecd-a9a7-32f0426af0c2)  \n\n---\n\n## ⚡ Performance  \n\nOptimized for speed and cost-efficiency:  \n\n- 🚀 **Transaction Speed**: Avg. 100ms response under 500 concurrent users  \n- ⛽ **Gas Optimization**: Lower costs via optimized smart contracts  \n- 📈 **Scalability**: Supports thousands of participants and millions of transactions  \n- 🔐 **Security**: Multi-layer protection against unauthorized access  \n\n---\n\n## 🚀 Future Enhancements  \n\n- [ ] 📊 **Advanced Analytics**: ML-powered risk prediction  \n- [ ] 🔗 **Cross-Chain Integration**: Interoperability with other networks  \n- [ ] 📡 **Expanded Verification Methods**: NFC and RFID support  \n\n---\n\n## 👨‍💻 Contributors  \n\n- **Baivab Sarkar** — [@ThisIs-Developer](https://github.com/ThisIs-Developer)  \n- **Ayan Chatterjee** — [@Ayan123C](https://github.com/Ayan123C)  \n- **Bhishmadev Ghosh** — [@bhishma620](https://github.com/bhishma620)  \n- **Arpan Bhattacharya** — [@Arpan550](https://github.com/Arpan550)  \n\n---\n\n## 📄 License  \n\nThis project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisis-developer%2Fmedichain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisis-developer%2Fmedichain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisis-developer%2Fmedichain/lists"}