# ramakrishna61505/blockchain-mis-info architecture

> Architecture diagram of the GitHub repository ramakrishna61505/blockchain-mis-info, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ramakrishna61505/blockchain-mis-info
- Repository: https://github.com/ramakrishna61505/blockchain-mis-info

## Overview

This is a decentralized misinformation-verification application combining a React/Web3 portal, an Ethereum contract, and a Python NLP service. Admins ingest and publish articles; evaluators register, receive verification, and vote per article; the application combines on-chain tallies with NLP confidence to produce authenticity outcomes, which can feed continuous learning. The README documents the broader extraction and learning capabilities; sampled excerpts confirm key frontend routing, Web3 access, and outcome synthesis, but do not expose every service interaction.

Main entry points: [`app/src/App.js`](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/App.js) (Application routes), [`app/src/getWeb3.js`](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/getWeb3.js) (Web3 provider access), [`contracts/newsDetection.sol`](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/contracts/newsDetection.sol) (Governance and vote ledger), [`app/src/component/Admin/AddNews/AddNews.js`](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Admin/AddNews/AddNews.js) (Article publishing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web3 application"]
  node_router["Application routes<br/>[App.js]"]
  node_web3["Web3 provider access<br/>[getWeb3.js]"]
  node_registration["Evaluator registration<br/>[Registration.js]"]
  node_login["Portal login<br/>[PortalLogin.js]"]
  node_admin_publish["Article publishing<br/>[AddNews.js]"]
  node_admin_verify["Evaluator verification<br/>[Verification.js]"]
  node_rounds["Round controls<br/>[StartEnd.js]"]
  node_voting["Article voting<br/>[Voting.js]"]
  node_reader["Article reader<br/>[NewsDetailModal.js]"]
end

subgraph group_ledger["Blockchain governance"]
  node_contract[("Governance and vote ledger<br/>[newsDetection.sol]")]
end

subgraph group_nlp["NLP intelligence"]
  node_service["NLP microservice<br/>[nlp_server.py]"]
  node_extraction["Content extraction<br/>[nlp_server.py]"]
  node_classifier["Credibility classification<br/>[nlp_server.py]"]
  node_learning["Consensus learning<br/>[nlp_server.py]"]
end

subgraph group_synthesis["Verification results"]
  node_outcomes["Vote outcomes<br/>[Outcomes.js]"]
  node_synthesis["Final synthesis<br/>[Final_Outcomes.js]"]
end

node_admin(("Administrator"))
node_evaluators(("Evaluators"))
node_content["Article sources"]
node_wallet["MetaMask wallet"]

node_admin -->|"uses portal"| node_router
node_evaluators -->|"uses portal"| node_router
node_content -->|"provides articles"| node_admin_publish
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_registration
node_router -->|"routes to"| node_admin_publish
node_router -->|"routes to"| node_admin_verify
node_router -->|"routes to"| node_voting
node_router -->|"routes to"| node_outcomes
node_router -->|"routes to"| node_synthesis
node_login -->|"gets provider"| node_web3
node_registration -->|"gets provider"| node_web3
node_admin_publish -->|"gets provider"| node_web3
node_admin_verify -->|"gets provider"| node_web3
node_rounds -->|"gets provider"| node_web3
node_voting -->|"gets provider"| node_web3
node_synthesis -->|"gets provider"| node_web3
node_web3 -->|"connects wallet"| node_wallet
node_registration -->|"registers evaluator"| node_contract
node_admin_verify -->|"verifies credentials"| node_contract
node_admin_publish -->|"publishes article"| node_contract
node_rounds -->|"controls rounds"| node_contract
node_voting -->|"records votes"| node_contract
node_contract -->|"provides tallies"| node_outcomes
node_admin_publish -->|"requests extraction"| node_service
node_service -->|"handles extraction"| node_extraction
node_service -->|"runs classification"| node_classifier
node_classifier -->|"supplies confidence"| node_synthesis
node_synthesis -->|"reads tallies"| node_contract
node_synthesis -->|"feeds consensus"| node_learning
node_learning -->|"updates model"| node_classifier
node_voting -->|"opens article"| node_reader
node_admin_publish -->|"previews article"| node_reader

click node_router "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/App.js"
click node_web3 "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/getWeb3.js"
click node_registration "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Registration/Registration.js"
click node_login "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Auth/PortalLogin.js"
click node_admin_publish "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Admin/AddNews/AddNews.js"
click node_admin_verify "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Admin/Verification/Verification.js"
click node_rounds "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Admin/StartEnd/StartEnd.js"
click node_voting "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Voting/Voting.js"
click node_reader "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/NewsDetailModal.js"
click node_contract "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/contracts/newsDetection.sol"
click node_service "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/nlp_server.py"
click node_extraction "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/nlp_server.py"
click node_classifier "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/nlp_server.py"
click node_learning "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/nlp_server.py"
click node_outcomes "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Outcomes/Outcomes.js"
click node_synthesis "https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Final_Outcomes/Final_Outcomes.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_router,node_web3,node_registration,node_login,node_admin_publish,node_admin_verify,node_rounds,node_voting,node_reader toneBlue
class node_contract toneAmber
class node_service,node_extraction,node_classifier,node_learning toneMint
class node_outcomes,node_synthesis toneRose
class node_admin,node_evaluators,node_content,node_wallet toneIndigo
```

## Components

### Web3 application

- [Application routes](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/App.js): `app/src/App.js`
- [Web3 provider access](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/getWeb3.js): `app/src/getWeb3.js`
- [Evaluator registration](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Registration/Registration.js): `app/src/component/Registration/Registration.js`
- [Portal login](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Auth/PortalLogin.js): `app/src/component/Auth/PortalLogin.js`
- [Article publishing](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Admin/AddNews/AddNews.js): `app/src/component/Admin/AddNews/AddNews.js`
- [Evaluator verification](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Admin/Verification/Verification.js): `app/src/component/Admin/Verification/Verification.js`
- [Round controls](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Admin/StartEnd/StartEnd.js): `app/src/component/Admin/StartEnd/StartEnd.js`
- [Article voting](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Voting/Voting.js): `app/src/component/Voting/Voting.js`
- [Article reader](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/NewsDetailModal.js): `app/src/component/NewsDetailModal.js`

### Blockchain governance

- [Governance and vote ledger](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/contracts/newsDetection.sol): `contracts/newsDetection.sol`

### NLP intelligence

- [NLP microservice](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/nlp_server.py): `nlp_server.py`
- [Content extraction](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/nlp_server.py): `nlp_server.py`
- [Credibility classification](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/nlp_server.py): `nlp_server.py`
- [Consensus learning](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/nlp_server.py): `nlp_server.py`

### Verification results

- [Vote outcomes](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Outcomes/Outcomes.js): `app/src/component/Outcomes/Outcomes.js`
- [Final synthesis](https://github.com/ramakrishna61505/blockchain-mis-info/blob/main/app/src/component/Final_Outcomes/Final_Outcomes.js): `app/src/component/Final_Outcomes/Final_Outcomes.js`

### Other components

- **Administrator**
- **Evaluators**
- **Article sources**
- **MetaMask wallet**

## Connections

- Administrator → Application routes: uses portal (evidence: `README.md`)
- Evaluators → Application routes: uses portal (evidence: `README.md`)
- Article sources → Article publishing: provides articles (evidence: `README.md`)
- Application routes → Portal login: routes to (evidence: `app/src/App.js`)
- Application routes → Evaluator registration: routes to (evidence: `app/src/App.js`)
- Application routes → Article publishing: routes to (evidence: `app/src/App.js`)
- Application routes → Evaluator verification: routes to (evidence: `app/src/App.js`)
- Application routes → Article voting: routes to (evidence: `app/src/App.js`)
- Application routes → Vote outcomes: routes to (evidence: `app/src/App.js`)
- Application routes → Final synthesis: routes to (evidence: `app/src/App.js`)
- Portal login → Web3 provider access: gets provider (evidence: `app/src/component/Auth/PortalLogin.js`)
- Evaluator registration → Web3 provider access: gets provider (evidence: `app/src/component/Registration/Registration.js`)
- Article publishing → Web3 provider access: gets provider (evidence: `app/src/component/Admin/AddNews/AddNews.js`)
- Evaluator verification → Web3 provider access: gets provider (evidence: `app/src/component/Admin/Verification/Verification.js`)
- Round controls → Web3 provider access: gets provider (evidence: `app/src/component/Admin/StartEnd/StartEnd.js`)
- Article voting → Web3 provider access: gets provider (evidence: `app/src/component/Voting/Voting.js`)
- Final synthesis → Web3 provider access: gets provider (evidence: `app/src/component/Final_Outcomes/Final_Outcomes.js`)
- Web3 provider access → MetaMask wallet: connects wallet (evidence: `app/src/getWeb3.js`)
- Evaluator registration → Governance and vote ledger: registers evaluator (evidence: `README.md`)
- Evaluator verification → Governance and vote ledger: verifies credentials (evidence: `README.md`)
- Article publishing → Governance and vote ledger: publishes article (evidence: `README.md`)
- Round controls → Governance and vote ledger: controls rounds (evidence: `README.md`)
- Article voting → Governance and vote ledger: records votes (evidence: `README.md`)
- Governance and vote ledger → Vote outcomes: provides tallies (evidence: `README.md`)
- Article publishing → NLP microservice: requests extraction (evidence: `app/src/component/Admin/AddNews/AddNews.js`)
- NLP microservice → Content extraction: handles extraction (evidence: `README.md`)
- NLP microservice → Credibility classification: runs classification (evidence: `README.md`)
- Credibility classification → Final synthesis: supplies confidence (evidence: `README.md`)
- Final synthesis → Governance and vote ledger: reads tallies (evidence: `app/src/component/Final_Outcomes/Final_Outcomes.js`)
- Final synthesis → Consensus learning: feeds consensus (evidence: `README.md`)
- Consensus learning → Credibility classification: updates model (evidence: `README.md`)
- Article voting → Article reader: opens article (evidence: `app/src/component/Voting/Voting.js`)
- Article publishing → Article reader: previews article (evidence: `app/src/component/Admin/AddNews/AddNews.js`)
