# 8pathcreative/keyword-finder architecture

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

- Interactive diagram: https://gitdiagram.com/8pathcreative/keyword-finder
- Repository: https://github.com/8pathcreative/keyword-finder

## Overview

keyword-finder is a small Google keyword research tool with two distinct workflows: a Streamlit dashboard for interactive Google Trends exploration and a command-line analyzer for batch Trends data. A separate CSV workflow scores Google Keyword Planner exports, filters opportunities, summarizes them, and writes results. The sampled source shows these workflows as independent entry points; no links between them are evidenced.

Main entry points: [`old-way.py`](https://github.com/8pathcreative/keyword-finder/blob/main/old-way.py) (Opportunity analysis), [`dashboard.py`](https://github.com/8pathcreative/keyword-finder/blob/main/dashboard.py) (Trends dashboard), [`keyword_analyzer.py`](https://github.com/8pathcreative/keyword-finder/blob/main/keyword_analyzer.py) (Batch Trends analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Interactive Trends"]
  node_dashboard_app["Trends dashboard<br/>[dashboard.py]"]
  node_trends_api["Google Trends"]
  node_plots["Charts and exports<br/>[dashboard.py]"]
end

subgraph group_batch["Batch Trends"]
  node_batch_analysis["Batch Trends analysis"]
  node_batch_trends["Google Trends"]
  node_batch_results["Trend results CSV"]
end

subgraph group_opportunities["Keyword Opportunities"]
  node_planner_csv["Planner export CSV"]
  node_opportunity_analysis["Opportunity analysis<br/>[old-way.py]"]
  node_opportunity_summary["Summary statistics<br/>[old-way.py]"]
  node_opportunity_csv["Opportunity results CSV<br/>[old-way.py]"]
end

node_dashboard_user(("Dashboard user"))
node_batch_user(("CLI user"))
node_planner_user(("Analyst"))

node_dashboard_user -->|"uses"| node_dashboard_app
node_dashboard_app -->|"requests trends"| node_trends_api
node_dashboard_app -->|"renders results"| node_plots
node_batch_user -->|"runs"| node_batch_analysis
node_batch_analysis -->|"requests trends"| node_batch_trends
node_batch_analysis -->|"writes"| node_batch_results
node_planner_user -->|"runs"| node_opportunity_analysis
node_planner_csv -->|"loads"| node_opportunity_analysis
node_opportunity_analysis -->|"summarizes"| node_opportunity_summary
node_opportunity_analysis -->|"exports"| node_opportunity_csv

click node_dashboard_app "https://github.com/8pathcreative/keyword-finder/blob/main/dashboard.py"
click node_plots "https://github.com/8pathcreative/keyword-finder/blob/main/dashboard.py"
click node_batch_analysis "https://github.com/8pathcreative/keyword-finder/blob/main/keyword_analyzer.py"
click node_batch_results "https://github.com/8pathcreative/keyword-finder/blob/main/keyword_analyzer.py"
click node_opportunity_analysis "https://github.com/8pathcreative/keyword-finder/blob/main/old-way.py"
click node_opportunity_summary "https://github.com/8pathcreative/keyword-finder/blob/main/old-way.py"
click node_opportunity_csv "https://github.com/8pathcreative/keyword-finder/blob/main/old-way.py"

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_dashboard_app,node_trends_api,node_plots,node_dashboard_user,node_batch_user toneBlue
class node_batch_analysis,node_batch_trends,node_batch_results toneAmber
class node_planner_csv,node_opportunity_analysis,node_opportunity_summary,node_opportunity_csv toneMint
class node_planner_user toneIndigo
```

## Components

### Interactive Trends

- [Trends dashboard](https://github.com/8pathcreative/keyword-finder/blob/main/dashboard.py): `dashboard.py`
- **Google Trends**
- [Charts and exports](https://github.com/8pathcreative/keyword-finder/blob/main/dashboard.py): `dashboard.py`

### Batch Trends

- [Batch Trends analysis](https://github.com/8pathcreative/keyword-finder/blob/main/keyword_analyzer.py): `keyword_analyzer.py`
- **Google Trends**
- [Trend results CSV](https://github.com/8pathcreative/keyword-finder/blob/main/keyword_analyzer.py): `keyword_analyzer.py`

### Keyword Opportunities

- **Planner export CSV**
- [Opportunity analysis](https://github.com/8pathcreative/keyword-finder/blob/main/old-way.py): `old-way.py`
- [Summary statistics](https://github.com/8pathcreative/keyword-finder/blob/main/old-way.py): `old-way.py`
- [Opportunity results CSV](https://github.com/8pathcreative/keyword-finder/blob/main/old-way.py): `old-way.py`

### Other components

- **Dashboard user**
- **CLI user**
- **Analyst**

## Connections

- Dashboard user → Trends dashboard: uses (evidence: `dashboard.py`)
- Trends dashboard → Google Trends: requests trends (evidence: `dashboard.py`)
- Trends dashboard → Charts and exports: renders results (evidence: `dashboard.py`)
- CLI user → Batch Trends analysis: runs (evidence: `keyword_analyzer.py`)
- Batch Trends analysis → Google Trends: requests trends (evidence: `keyword_analyzer.py`)
- Batch Trends analysis → Trend results CSV: writes (evidence: `keyword_analyzer.py`)
- Analyst → Opportunity analysis: runs (evidence: `old-way.py`)
- Planner export CSV → Opportunity analysis: loads (evidence: `old-way.py`)
- Opportunity analysis → Summary statistics: summarizes (evidence: `old-way.py`)
- Opportunity analysis → Opportunity results CSV: exports (evidence: `old-way.py`)
