# durkesh224/instagram-influencer-crm architecture

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

- Interactive diagram: https://gitdiagram.com/durkesh224/instagram-influencer-crm
- Repository: https://github.com/durkesh224/instagram-influencer-crm

## Overview

Influencer CRM captures public Instagram profile data through a Chrome extension, persists and manages creator records through a Spring Boot API, and presents them in a React dashboard. The dashboard supports campaign-stage and category views, creator search/editing, favorites, and statistics. Edges reflect sampled imports/calls or README-documented integration; extension internals and some dashboard request details were not sampled, so those links rely on the README.

Main entry points: [`dashboard/src/App.jsx`](https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/App.jsx) (Dashboard application), [`server/src/main/java/com/crm/influencer/repository/InfluencerRepository.java`](https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/repository/InfluencerRepository.java) (Influencer repository), [`server/src/main/java/com/crm/influencer/controller/InfluencerController.java`](https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/controller/InfluencerController.java) (Influencer REST API), [`dashboard/src/utils/helpers.js`](https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/utils/helpers.js) (Dashboard data helpers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Profile capture"]
  node_content["Profile capture widget<br/>[content.js]"]
  node_popup["Extension popup<br/>[popup.js]"]
end

subgraph group_backend["CRM backend"]
  node_api["Influencer REST API"]
  node_repository["Influencer repository"]
  node_entity["Influencer record<br/>[Influencer.java]"]
  node_conversion["Follower count conversion"]
end

subgraph group_dashboard["CRM dashboard"]
  node_app["Dashboard application<br/>[App.jsx]"]
  node_pipeline["Campaign pipeline"]
  node_categories["Category insights"]
  node_creator_views["Creator records and editor"]
  node_dashboard_insights["Dashboard summaries"]
  node_dashboard_helpers["Dashboard data helpers<br/>[helpers.js]"]
end

subgraph group_storage["Persistence"]
  node_database[("H2 database")]
end

node_instagram(("Instagram profile"))
node_user(("CRM operator"))

node_instagram -->|"provides profile DOM"| node_content
node_content -->|"submits profile"| node_api
node_user -->|"opens preview"| node_popup
node_user -->|"manages creators"| node_app
node_app -->|"requests REST data"| node_api
node_api -->|"calls repository"| node_repository
node_repository -->|"queries records"| node_entity
node_repository -->|"persists records"| node_database
node_app -->|"renders pipeline"| node_pipeline
node_app -->|"renders category view"| node_categories
node_app -->|"renders creator tools"| node_creator_views
node_app -->|"renders summaries"| node_dashboard_insights
node_pipeline -->|"normalizes stages"| node_dashboard_helpers
node_categories -->|"infers categories"| node_dashboard_helpers
node_creator_views -->|"formats creator data"| node_dashboard_helpers

click node_content "https://github.com/durkesh224/instagram-influencer-crm/blob/main/extension/content.js"
click node_popup "https://github.com/durkesh224/instagram-influencer-crm/blob/main/extension/popup.js"
click node_api "https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/controller/InfluencerController.java"
click node_repository "https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/repository/InfluencerRepository.java"
click node_entity "https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/model/Influencer.java"
click node_conversion "https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/model/FollowerCountConverter.java"
click node_database "https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/resources/application.properties"
click node_app "https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/App.jsx"
click node_pipeline "https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/components/CampaignPipeline.jsx"
click node_categories "https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/components/CategoryDistribution.jsx"
click node_creator_views "https://github.com/durkesh224/instagram-influencer-crm/tree/main/dashboard/src/components"
click node_dashboard_insights "https://github.com/durkesh224/instagram-influencer-crm/tree/main/dashboard/src/components"
click node_dashboard_helpers "https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/utils/helpers.js"

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_content,node_popup toneBlue
class node_api,node_repository,node_entity,node_conversion toneAmber
class node_app,node_pipeline,node_categories,node_creator_views,node_dashboard_insights,node_dashboard_helpers toneMint
class node_database toneRose
class node_instagram,node_user toneIndigo
```

## Components

### Profile capture

- [Profile capture widget](https://github.com/durkesh224/instagram-influencer-crm/blob/main/extension/content.js): `extension/content.js`
- [Extension popup](https://github.com/durkesh224/instagram-influencer-crm/blob/main/extension/popup.js): `extension/popup.js`

### CRM backend

- [Influencer REST API](https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/controller/InfluencerController.java): `server/src/main/java/com/crm/influencer/controller/InfluencerController.java`
- [Influencer repository](https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/repository/InfluencerRepository.java): `server/src/main/java/com/crm/influencer/repository/InfluencerRepository.java`
- [Influencer record](https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/model/Influencer.java): `server/src/main/java/com/crm/influencer/model/Influencer.java`
- [Follower count conversion](https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/java/com/crm/influencer/model/FollowerCountConverter.java): `server/src/main/java/com/crm/influencer/model/FollowerCountConverter.java`

### CRM dashboard

- [Dashboard application](https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/App.jsx): `dashboard/src/App.jsx`
- [Campaign pipeline](https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/components/CampaignPipeline.jsx): `dashboard/src/components/CampaignPipeline.jsx`
- [Category insights](https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/components/CategoryDistribution.jsx): `dashboard/src/components/CategoryDistribution.jsx`
- [Creator records and editor](https://github.com/durkesh224/instagram-influencer-crm/tree/main/dashboard/src/components): `dashboard/src/components`
- [Dashboard summaries](https://github.com/durkesh224/instagram-influencer-crm/tree/main/dashboard/src/components): `dashboard/src/components`
- [Dashboard data helpers](https://github.com/durkesh224/instagram-influencer-crm/blob/main/dashboard/src/utils/helpers.js): `dashboard/src/utils/helpers.js`

### Persistence

- [H2 database](https://github.com/durkesh224/instagram-influencer-crm/blob/main/server/src/main/resources/application.properties): `server/src/main/resources/application.properties`

### Other components

- **Instagram profile**
- **CRM operator**

## Connections

- Instagram profile → Profile capture widget: provides profile DOM (evidence: `README.md`)
- Profile capture widget → Influencer REST API: submits profile (evidence: `README.md`)
- CRM operator → Extension popup: opens preview (evidence: `README.md`)
- CRM operator → Dashboard application: manages creators (evidence: `README.md`)
- Dashboard application → Influencer REST API: requests REST data (evidence: `README.md`)
- Influencer REST API → Influencer repository: calls repository (evidence: `server/src/main/java/com/crm/influencer/controller/InfluencerController.java`)
- Influencer repository → Influencer record: queries records (evidence: `server/src/main/java/com/crm/influencer/repository/InfluencerRepository.java`)
- Influencer repository → H2 database: persists records (evidence: `README.md`)
- Dashboard application → Campaign pipeline: renders pipeline (evidence: `dashboard/src/App.jsx`)
- Dashboard application → Category insights: renders category view (evidence: `dashboard/src/App.jsx`)
- Dashboard application → Creator records and editor: renders creator tools (evidence: `dashboard/src/App.jsx`)
- Dashboard application → Dashboard summaries: renders summaries (evidence: `dashboard/src/App.jsx`)
- Campaign pipeline → Dashboard data helpers: normalizes stages (evidence: `dashboard/src/components/CampaignPipeline.jsx`)
- Category insights → Dashboard data helpers: infers categories (evidence: `dashboard/src/components/CategoryDistribution.jsx`)
- Creator records and editor → Dashboard data helpers: formats creator data (evidence: `dashboard/src/components/CreatorTable.jsx`)
