# jeet-ganguly/birdy-edwards-lite architecture

> Architecture diagram of the GitHub repository jeet-ganguly/birdy-edwards-lite, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jeet-ganguly/birdy-edwards-lite
- Repository: https://github.com/jeet-ganguly/birdy-edwards-lite

## Overview

Birdy-Edwards Lite is a local Flask-based Facebook SOCMINT application. An operator imports an authenticated session, launches a scan for a profile, and the application gathers profile/about data and post, photo, and reel interactions; it stores the results, computes interaction summaries, and optionally performs face detection and clustering before presenting an analysis dashboard. The graph reflects the sampled Flask, scraper, database, scoring, and face-processing code plus README-documented dashboard capabilities. Unsampled implementation details are represented only where the README supports them.

Main entry points: [`app/app.py`](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/app.py) (Flask application), [`app/socmint_lite_db.py`](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/socmint_lite_db.py) (Investigation database), [`app/templates/analysis.html`](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/templates/analysis.html) (Analysis dashboard), [`app/fb_about_sb.py`](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/fb_about_sb.py) (About scraper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Investigation interface"]
  node_flask["Flask application<br/>[app.py]"]
  node_homeview["Investigation home<br/>[index.html]"]
  node_dashboard["Analysis dashboard<br/>[analysis.html]"]
end

subgraph group_gather["Profile collection"]
  node_about["About scraper<br/>[fb_about_sb.py]"]
  node_photos["Photo scraper<br/>[fb_photos_sb.py]"]
  node_reels["Reel scraper<br/>[fb_reels_sb.py]"]
  node_posts["Post scraper<br/>[fb_posts_sb.py]"]
end

subgraph group_analysis["Intelligence analysis"]
  node_scoring["Interaction analytics"]
  node_faces["Face intelligence"]
  node_charts["Network and charts<br/>[analysis.html]"]
  node_aboutcards["Profile detail cards<br/>[analysis.html]"]
end

subgraph group_storage["Local persistence"]
  node_db[("Investigation database<br/>[socmint_lite_db.py]")]
end

node_operator(("Investigator"))
node_fb{{"Facebook"}}

node_operator -->|"starts investigation"| node_flask
node_flask -->|"renders home"| node_homeview
node_operator -->|"provides session"| node_fb
node_flask -->|"scrapes profiles"| node_about
node_flask -->|"scrapes photos"| node_photos
node_flask -->|"scrapes reels"| node_reels
node_flask -->|"scrapes posts"| node_posts
node_about -->|"collects about data"| node_fb
node_photos -->|"collects photos"| node_fb
node_reels -->|"collects reels"| node_fb
node_posts -->|"collects posts"| node_fb
node_flask -->|"initializes and reads"| node_db
node_flask -->|"requests summaries"| node_scoring
node_flask -->|"runs face analysis"| node_faces
node_scoring -->|"queries interactions"| node_db
node_faces -->|"reads and writes faces"| node_db
node_flask -->|"renders analysis"| node_dashboard
node_dashboard -->|"presents metrics"| node_charts
node_dashboard -->|"presents profile details"| node_aboutcards
node_db -.->|"supplies stored results"| node_charts
node_db -.->|"supplies profile fields"| node_aboutcards

click node_flask "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/app.py"
click node_homeview "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/templates/index.html"
click node_dashboard "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/templates/analysis.html"
click node_about "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/fb_about_sb.py"
click node_photos "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/fb_photos_sb.py"
click node_reels "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/fb_reels_sb.py"
click node_posts "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/fb_posts_sb.py"
click node_db "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/socmint_lite_db.py"
click node_scoring "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/commentor_scoring_lite.py"
click node_faces "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/face_intelligence_lite.py"
click node_charts "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/templates/analysis.html"
click node_aboutcards "https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/templates/analysis.html"

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_flask,node_homeview,node_dashboard toneBlue
class node_about,node_photos,node_reels,node_posts toneAmber
class node_scoring,node_faces,node_charts,node_aboutcards toneMint
class node_db toneRose
class node_operator,node_fb toneIndigo
```

## Components

### Investigation interface

- [Flask application](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/app.py): `app/app.py`
- [Investigation home](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/templates/index.html): `app/templates/index.html`
- [Analysis dashboard](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/templates/analysis.html): `app/templates/analysis.html`

### Profile collection

- [About scraper](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/fb_about_sb.py): `app/fb_about_sb.py`
- [Photo scraper](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/fb_photos_sb.py): `app/fb_photos_sb.py`
- [Reel scraper](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/fb_reels_sb.py): `app/fb_reels_sb.py`
- [Post scraper](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/fb_posts_sb.py): `app/fb_posts_sb.py`

### Intelligence analysis

- [Interaction analytics](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/commentor_scoring_lite.py): `app/commentor_scoring_lite.py`
- [Face intelligence](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/face_intelligence_lite.py): `app/face_intelligence_lite.py`
- [Network and charts](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/templates/analysis.html): `app/templates/analysis.html`
- [Profile detail cards](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/templates/analysis.html): `app/templates/analysis.html`

### Local persistence

- [Investigation database](https://github.com/jeet-ganguly/birdy-edwards-lite/blob/main/app/socmint_lite_db.py): `app/socmint_lite_db.py`

### Other components

- **Investigator**
- **Facebook**

## Connections

- Investigator → Flask application: starts investigation (evidence: `readme.md`)
- Flask application → Investigation home: renders home (evidence: `app/app.py`)
- Investigator → Facebook: provides session (evidence: `readme.md`)
- Flask application → About scraper: scrapes profiles (evidence: `readme.md`)
- Flask application → Photo scraper: scrapes photos (evidence: `readme.md`)
- Flask application → Reel scraper: scrapes reels (evidence: `readme.md`)
- Flask application → Post scraper: scrapes posts (evidence: `readme.md`)
- About scraper → Facebook: collects about data (evidence: `app/fb_about_sb.py`)
- Photo scraper → Facebook: collects photos (evidence: `app/fb_photos_sb.py`)
- Reel scraper → Facebook: collects reels (evidence: `app/fb_reels_sb.py`)
- Post scraper → Facebook: collects posts (evidence: `app/fb_posts_sb.py`)
- Flask application → Investigation database: initializes and reads (evidence: `app/app.py`)
- Flask application → Interaction analytics: requests summaries (evidence: `app/app.py`)
- Flask application → Face intelligence: runs face analysis (evidence: `app/app.py`)
- Interaction analytics → Investigation database: queries interactions (evidence: `app/commentor_scoring_lite.py`)
- Face intelligence → Investigation database: reads and writes faces (evidence: `app/face_intelligence_lite.py`)
- Flask application → Analysis dashboard: renders analysis (evidence: `app/app.py`)
- Analysis dashboard → Network and charts: presents metrics (evidence: `readme.md`)
- Analysis dashboard → Profile detail cards: presents profile details (evidence: `readme.md`)
- Investigation database → Network and charts: supplies stored results
- Investigation database → Profile detail cards: supplies profile fields
