# vedantkarandikar/verify architecture

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

- Interactive diagram: https://gitdiagram.com/vedantkarandikar/verify
- Repository: https://github.com/vedantkarandikar/verify

## Overview

Verify lets a user submit text or a URL, then presents extracted claims, evidence, source credibility, and an assessment. The README describes four server-side agent endpoints and Fluo API-key protection; the sampled client excerpt does not show its request code, so the graph follows only the documented client-to-route and route-to-Fluo relationships. UI primitives and the responsive-sidebar helper are grouped as supporting interface infrastructure.

Main entry points: [`src/components/factchecker.tsx`](https://github.com/vedantkarandikar/verify/blob/main/src/components/factchecker.tsx) (Fact checker), [`src/components/ui/sidebar.tsx`](https://github.com/vedantkarandikar/verify/blob/main/src/components/ui/sidebar.tsx) (Responsive sidebar), [`src/components/ui`](https://github.com/vedantkarandikar/verify/tree/main/src/components/ui) (UI primitives), [`src/app/page.tsx`](https://github.com/vedantkarandikar/verify/blob/main/src/app/page.tsx) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_home["Home page<br/>[page.tsx]"]
  node_factchecker["Fact checker<br/>[factchecker.tsx]"]
end

subgraph group_agents["Fact-check agents"]
  node_claims["Claims extraction<br/>[route.ts]"]
  node_verify["Claim verification<br/>[route.ts]"]
  node_credibility["Source credibility<br/>[route.ts]"]
  node_assessment["Claim assessment<br/>[route.ts]"]
end

subgraph group_support["UI support"]
  node_primitives["UI primitives"]
  node_mobile["Mobile breakpoint hook<br/>[use-mobile.ts]"]
  node_sidebar["Responsive sidebar<br/>[sidebar.tsx]"]
  node_utils["Class utilities<br/>[utils.ts]"]
end

node_user(("User"))
node_fluo{{"Fluo API"}}

node_user -->|"opens"| node_home
node_home -->|"renders"| node_factchecker
node_factchecker -->|"renders"| node_primitives
node_factchecker -->|"requests claims"| node_claims
node_factchecker -->|"requests evidence"| node_verify
node_factchecker -->|"requests credibility"| node_credibility
node_factchecker -->|"requests verdict"| node_assessment
node_claims -->|"calls agent"| node_fluo
node_verify -->|"calls agent"| node_fluo
node_credibility -->|"calls agent"| node_fluo
node_assessment -->|"calls agent"| node_fluo
node_sidebar -->|"checks breakpoint"| node_mobile
node_sidebar -->|"uses primitives"| node_primitives
node_sidebar -->|"merges classes"| node_utils
node_primitives -->|"merges classes"| node_utils

click node_home "https://github.com/vedantkarandikar/verify/blob/main/src/app/page.tsx"
click node_factchecker "https://github.com/vedantkarandikar/verify/blob/main/src/components/factchecker.tsx"
click node_claims "https://github.com/vedantkarandikar/verify/blob/main/src/app/api/claims/route.ts"
click node_verify "https://github.com/vedantkarandikar/verify/blob/main/src/app/api/claim-verify/route.ts"
click node_credibility "https://github.com/vedantkarandikar/verify/blob/main/src/app/api/source-cred/route.ts"
click node_assessment "https://github.com/vedantkarandikar/verify/blob/main/src/app/api/claim-assess/route.ts"
click node_primitives "https://github.com/vedantkarandikar/verify/tree/main/src/components/ui"
click node_mobile "https://github.com/vedantkarandikar/verify/blob/main/src/hooks/use-mobile.ts"
click node_sidebar "https://github.com/vedantkarandikar/verify/blob/main/src/components/ui/sidebar.tsx"
click node_utils "https://github.com/vedantkarandikar/verify/blob/main/src/lib/utils.ts"

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_home,node_factchecker,node_user toneBlue
class node_claims,node_verify,node_credibility,node_assessment toneAmber
class node_primitives,node_mobile,node_sidebar,node_utils,node_fluo toneMint
```

## Components

### User interface

- [Home page](https://github.com/vedantkarandikar/verify/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Fact checker](https://github.com/vedantkarandikar/verify/blob/main/src/components/factchecker.tsx): `src/components/factchecker.tsx`

### Fact-check agents

- [Claims extraction](https://github.com/vedantkarandikar/verify/blob/main/src/app/api/claims/route.ts): `src/app/api/claims/route.ts`
- [Claim verification](https://github.com/vedantkarandikar/verify/blob/main/src/app/api/claim-verify/route.ts): `src/app/api/claim-verify/route.ts`
- [Source credibility](https://github.com/vedantkarandikar/verify/blob/main/src/app/api/source-cred/route.ts): `src/app/api/source-cred/route.ts`
- [Claim assessment](https://github.com/vedantkarandikar/verify/blob/main/src/app/api/claim-assess/route.ts): `src/app/api/claim-assess/route.ts`

### UI support

- [UI primitives](https://github.com/vedantkarandikar/verify/tree/main/src/components/ui): `src/components/ui`
- [Mobile breakpoint hook](https://github.com/vedantkarandikar/verify/blob/main/src/hooks/use-mobile.ts): `src/hooks/use-mobile.ts`
- [Responsive sidebar](https://github.com/vedantkarandikar/verify/blob/main/src/components/ui/sidebar.tsx): `src/components/ui/sidebar.tsx`
- [Class utilities](https://github.com/vedantkarandikar/verify/blob/main/src/lib/utils.ts): `src/lib/utils.ts`

### Other components

- **User**
- **Fluo API**

## Connections

- User → Home page: opens (evidence: `src/app/page.tsx`)
- Home page → Fact checker: renders (evidence: `src/app/page.tsx`)
- Fact checker → UI primitives: renders (evidence: `src/components/factchecker.tsx`)
- Fact checker → Claims extraction: requests claims (evidence: `README.md`)
- Fact checker → Claim verification: requests evidence (evidence: `README.md`)
- Fact checker → Source credibility: requests credibility (evidence: `README.md`)
- Fact checker → Claim assessment: requests verdict (evidence: `README.md`)
- Claims extraction → Fluo API: calls agent (evidence: `README.md`)
- Claim verification → Fluo API: calls agent (evidence: `README.md`)
- Source credibility → Fluo API: calls agent (evidence: `README.md`)
- Claim assessment → Fluo API: calls agent (evidence: `README.md`)
- Responsive sidebar → Mobile breakpoint hook: checks breakpoint (evidence: `src/components/ui/sidebar.tsx`)
- Responsive sidebar → UI primitives: uses primitives (evidence: `src/components/ui/sidebar.tsx`)
- Responsive sidebar → Class utilities: merges classes (evidence: `src/components/ui/sidebar.tsx`)
- UI primitives → Class utilities: merges classes (evidence: `src/components/ui/context-menu.tsx`)
