# tordrc/richy-hunter-ai-dashboard architecture

> Architecture diagram of the GitHub repository tordrc/richy-hunter-ai-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tordrc/richy-hunter-ai-dashboard
- Repository: https://github.com/tordrc/richy-hunter-ai-dashboard

## Overview

Richy Hunter AI is a mobile-friendly Solana token scanner. Users can submit a token for analysis or request newly listed-token discoveries; the browser sends requests to a deployed Cloudflare Worker and displays the returned scores, signals, market data, and security details. The README documents the Worker’s analysis capabilities and external data providers, but their implementation is not in this repository. The map therefore focuses on the frontend and documented service boundary.

Main entry points: [`index.html`](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/index.html) (Web interface), [`app.js`](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/app.js) (Token scan), [`style.css`](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/style.css) (Responsive styles), [`manifest.json`](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/manifest.json) (Install manifest)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Scanner frontend"]
  node_token_scan["Token scan<br/>[app.js]"]
  node_new_scan["New-token scan<br/>[app.js]"]
  node_results["Results display<br/>[app.js]"]
end

subgraph group_pwa["PWA shell"]
  node_web_ui["Web interface<br/>[index.html]"]
  node_web_styles["Responsive styles<br/>[style.css]"]
  node_pwa_manifest["Install manifest<br/>[manifest.json]"]
end

subgraph group_analysis["Analysis service"]
  node_worker{{"Cloudflare Worker"}}
  node_token_analysis["Token analysis"]
  node_gem_discovery["Gem discovery"]
  node_risk_scoring["Risk and scoring"]
end

node_trader(("Trader"))
node_dexscreener{{"DexScreener"}}
node_rugcheck{{"RugCheck"}}
node_helius{{"Helius"}}

node_trader -->|"uses"| node_web_ui
node_web_ui -->|"submits token"| node_token_scan
node_web_ui -->|"starts scan"| node_new_scan
node_token_scan -->|"requests analysis"| node_worker
node_new_scan -->|"requests new tokens"| node_worker
node_worker -->|"returns data"| node_results
node_results -->|"updates display"| node_web_ui
node_web_ui -.->|"styled by"| node_web_styles
node_web_ui -.->|"install metadata"| node_pwa_manifest
node_worker -->|"analyzes tokens"| node_token_analysis
node_worker -->|"scans new tokens"| node_gem_discovery
node_worker -->|"scores risk"| node_risk_scoring
node_worker -.->|"uses data"| node_dexscreener
node_worker -.->|"checks risk"| node_rugcheck
node_worker -.->|"uses data"| node_helius

click node_token_scan "https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/app.js"
click node_new_scan "https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/app.js"
click node_results "https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/app.js"
click node_web_ui "https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/index.html"
click node_web_styles "https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/style.css"
click node_pwa_manifest "https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/manifest.json"

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_token_scan,node_new_scan,node_results,node_dexscreener toneBlue
class node_web_ui,node_web_styles,node_pwa_manifest toneAmber
class node_worker,node_token_analysis,node_gem_discovery,node_risk_scoring toneMint
class node_trader,node_rugcheck,node_helius toneIndigo
```

## Components

### Scanner frontend

- [Token scan](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/app.js): `app.js`
- [New-token scan](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/app.js): `app.js`
- [Results display](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/app.js): `app.js`

### PWA shell

- [Web interface](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/index.html): `index.html`
- [Responsive styles](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/style.css): `style.css`
- [Install manifest](https://github.com/tordrc/richy-hunter-ai-dashboard/blob/main/manifest.json): `manifest.json`

### Analysis service

- **Cloudflare Worker**
- **Token analysis**
- **Gem discovery**
- **Risk and scoring**

### Other components

- **Trader**
- **DexScreener**
- **RugCheck**
- **Helius**

## Connections

- Trader → Web interface: uses (evidence: `README.md`)
- Web interface → Token scan: submits token (evidence: `app.js`)
- Web interface → New-token scan: starts scan (evidence: `app.js`)
- Token scan → Cloudflare Worker: requests analysis (evidence: `app.js`)
- New-token scan → Cloudflare Worker: requests new tokens (evidence: `app.js`)
- Cloudflare Worker → Results display: returns data (evidence: `app.js`)
- Results display → Web interface: updates display (evidence: `app.js`)
- Web interface → Responsive styles: styled by
- Web interface → Install manifest: install metadata
- Cloudflare Worker → Token analysis: analyzes tokens (evidence: `README.md`)
- Cloudflare Worker → Gem discovery: scans new tokens (evidence: `README.md`)
- Cloudflare Worker → Risk and scoring: scores risk (evidence: `README.md`)
- Cloudflare Worker → DexScreener: uses data (evidence: `README.md`)
- Cloudflare Worker → RugCheck: checks risk (evidence: `README.md`)
- Cloudflare Worker → Helius: uses data (evidence: `README.md`)
