# nischaya007/fakenews_majorproject architecture

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

- Interactive diagram: https://gitdiagram.com/nischaya007/fakenews_majorproject
- Repository: https://github.com/nischaya007/fakenews_majorproject

## Overview

This is a React single-page demo for multimodal fake-news verification, not a connected AI service: its API layer defaults to mock analysis data, with an optional backend path. A visitor can explore the overview, submit article text and an optional image, view a simulated processing state and result, and browse saved history. Research and About provide supporting information. The graph follows documented routes and indexed imports; detailed runtime behavior in unsampled modules is not assumed.

Main entry points: [`src/App.jsx`](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/App.jsx) (Router and shell), [`src/pages/Result.jsx`](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/Result.jsx) (Result details), [`src/services/api.js`](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/services/api.js) (Analysis service), [`src/pages/History.jsx`](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/History.jsx) (Analysis history)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App and navigation"]
  node_app["Router and shell<br/>[App.jsx]"]
  node_home["Home overview<br/>[Home.jsx]"]
  node_about["About<br/>[About.jsx]"]
end

subgraph group_verification["Verification workflow"]
  node_analyze["Analysis form<br/>[Analyze.jsx]"]
  node_loading["Progress display"]
  node_api["Analysis service<br/>[api.js]"]
  node_result["Result details<br/>[Result.jsx]"]
  node_history["Analysis history<br/>[History.jsx]"]
end

subgraph group_presentation["Shared presentation"]
  node_navbar["Navbar<br/>[Navbar.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_pipelinevisual["Pipeline visual<br/>[PipelineVisual.jsx]"]
  node_confidence["Confidence ring<br/>[ConfidenceRing.jsx]"]
  node_status["Status badge<br/>[StatusBadge.jsx]"]
  node_evidence["Evidence modal<br/>[EvidenceModal.jsx]"]
  node_metric["Metric bar<br/>[MetricBar.jsx]"]
end

subgraph group_support["Research and data"]
  node_research["Research<br/>[Research.jsx]"]
  node_mockdata[("Mock presets and records<br/>[mockData.js]")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_analyze
node_app -->|"routes to"| node_result
node_app -->|"routes to"| node_history
node_app -->|"routes to"| node_research
node_app -->|"routes to"| node_about
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_footer
node_home -->|"renders"| node_pipelinevisual
node_home -->|"uses presets"| node_mockdata
node_analyze -->|"submits input"| node_api
node_analyze -->|"renders"| node_loading
node_api -->|"reads and saves"| node_mockdata
node_api -.->|"returns analysis"| node_result
node_api -.->|"persists records"| node_history
node_api -.->|"may call backend"| node_visitor
node_history -->|"loads records"| node_api
node_result -->|"renders"| node_confidence
node_result -->|"renders"| node_status
node_result -->|"renders"| node_pipelinevisual
node_result -->|"renders"| node_evidence
node_result -->|"uses records"| node_mockdata
node_history -->|"renders"| node_status
node_research -->|"renders"| node_metric
node_research -->|"uses data"| node_mockdata

click node_app "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/App.jsx"
click node_home "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/Home.jsx"
click node_about "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/About.jsx"
click node_research "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/Research.jsx"
click node_analyze "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/Analyze.jsx"
click node_loading "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/LoadingPipeline.jsx"
click node_api "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/services/api.js"
click node_result "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/Result.jsx"
click node_history "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/History.jsx"
click node_mockdata "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/data/mockData.js"
click node_navbar "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/Navbar.jsx"
click node_footer "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/Footer.jsx"
click node_pipelinevisual "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/PipelineVisual.jsx"
click node_confidence "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/ConfidenceRing.jsx"
click node_status "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/StatusBadge.jsx"
click node_evidence "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/EvidenceModal.jsx"
click node_metric "https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/MetricBar.jsx"

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_app,node_home,node_about toneBlue
class node_analyze,node_loading,node_api,node_result,node_history toneAmber
class node_navbar,node_footer,node_pipelinevisual,node_confidence,node_status,node_evidence,node_metric toneMint
class node_research,node_mockdata toneRose
class node_visitor toneIndigo
```

## Components

### App and navigation

- [Router and shell](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/App.jsx): `src/App.jsx`
- [Home overview](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [About](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/About.jsx): `src/pages/About.jsx`

### Verification workflow

- [Analysis form](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/Analyze.jsx): `src/pages/Analyze.jsx`
- [Progress display](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/LoadingPipeline.jsx): `src/components/LoadingPipeline.jsx`
- [Analysis service](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/services/api.js): `src/services/api.js`
- [Result details](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/Result.jsx): `src/pages/Result.jsx`
- [Analysis history](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/History.jsx): `src/pages/History.jsx`

### Shared presentation

- [Navbar](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Footer](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Pipeline visual](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/PipelineVisual.jsx): `src/components/PipelineVisual.jsx`
- [Confidence ring](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/ConfidenceRing.jsx): `src/components/ConfidenceRing.jsx`
- [Status badge](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/StatusBadge.jsx): `src/components/StatusBadge.jsx`
- [Evidence modal](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/EvidenceModal.jsx): `src/components/EvidenceModal.jsx`
- [Metric bar](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/components/MetricBar.jsx): `src/components/MetricBar.jsx`

### Research and data

- [Research](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/pages/Research.jsx): `src/pages/Research.jsx`
- [Mock presets and records](https://github.com/nischaya007/fakenews_majorproject/blob/main/src/data/mockData.js): `src/data/mockData.js`

### Other components

- **Visitor**

## Connections

- Visitor → Router and shell: opens
- Router and shell → Home overview: routes to (evidence: `src/App.jsx`)
- Router and shell → Analysis form: routes to (evidence: `src/App.jsx`)
- Router and shell → Result details: routes to (evidence: `src/App.jsx`)
- Router and shell → Analysis history: routes to (evidence: `src/App.jsx`)
- Router and shell → Research: routes to (evidence: `src/App.jsx`)
- Router and shell → About: routes to (evidence: `src/App.jsx`)
- Router and shell → Navbar: renders (evidence: `src/App.jsx`)
- Router and shell → Footer: renders (evidence: `src/App.jsx`)
- Home overview → Pipeline visual: renders (evidence: `src/pages/Home.jsx`)
- Home overview → Mock presets and records: uses presets (evidence: `src/pages/Home.jsx`)
- Analysis form → Analysis service: submits input (evidence: `src/pages/Analyze.jsx`)
- Analysis form → Progress display: renders (evidence: `src/pages/Analyze.jsx`)
- Analysis service → Mock presets and records: reads and saves (evidence: `src/services/api.js`)
- Analysis service → Result details: returns analysis
- Analysis service → Analysis history: persists records (evidence: `src/pages/History.jsx`)
- Analysis service → Visitor: may call backend
- Analysis history → Analysis service: loads records (evidence: `src/pages/History.jsx`)
- Result details → Confidence ring: renders (evidence: `src/pages/Result.jsx`)
- Result details → Status badge: renders (evidence: `src/pages/Result.jsx`)
- Result details → Pipeline visual: renders (evidence: `src/pages/Result.jsx`)
- Result details → Evidence modal: renders (evidence: `src/pages/Result.jsx`)
- Result details → Mock presets and records: uses records (evidence: `src/pages/Result.jsx`)
- Analysis history → Status badge: renders (evidence: `src/pages/History.jsx`)
- Research → Metric bar: renders (evidence: `src/pages/Research.jsx`)
- Research → Mock presets and records: uses data (evidence: `src/pages/Research.jsx`)
