# harshul2827/bizlink architecture

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

- Interactive diagram: https://gitdiagram.com/harshul2827/bizlink
- Repository: https://github.com/harshul2827/bizlink

## Overview

BizLink is a B2B discovery and collaboration platform whose documented flow is discover, evaluate, connect, and collaborate. The README describes profiles, search and rule-based matching, trust signals, messaging, opportunities, administration, and growth showcases, plus an analytics path from curated reporting views to Power BI. The checked-in backend is currently a health-check server with a MySQL pool; route wiring and feature implementations are not shown. Dashed edges mark documented architecture whose implementation is not evidenced in the sampled source.

Main entry points: [`backend/src/server.js`](https://github.com/harshul2827/bizlink/blob/main/backend/src/server.js) (REST API), [`backend/src/db/index.js`](https://github.com/harshul2827/bizlink/blob/main/backend/src/db/index.js) (MySQL pool), [`database/schema/01_schema.sql`](https://github.com/harshul2827/bizlink/blob/main/database/schema/01_schema.sql) (Operational schema), [`database/views/01_reporting_views.sql`](https://github.com/harshul2827/bizlink/blob/main/database/views/01_reporting_views.sql) (Reporting views)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Business workflows"]
  node_profiles["Profiles and trust"]
  node_discovery["Search and matching"]
  node_connections["Connections and messaging"]
  node_collaboration["Opportunities"]
  node_administration["Administration"]
  node_growth["Growth showcase"]
end

subgraph group_backend["API and persistence"]
  node_api["REST API<br/>[server.js]"]
  node_mysql["MySQL pool<br/>[index.js]"]
  node_operational[("Operational schema<br/>[01_schema.sql]")]
end

subgraph group_analytics["Reporting"]
  node_reporting[("Reporting views")]
  node_powerbi["Power BI"]
end

node_businesses(("Businesses"))

node_businesses -.->|"uses"| node_api
node_api -.->|"serves"| node_profiles
node_api -.->|"serves"| node_discovery
node_api -.->|"serves"| node_connections
node_api -.->|"serves"| node_collaboration
node_api -.->|"serves"| node_administration
node_api -.->|"serves"| node_growth
node_api -.->|"accesses"| node_mysql
node_mysql -.->|"stores data"| node_operational
node_operational -.->|"curates data"| node_reporting
node_reporting -.->|"feeds"| node_powerbi

click node_api "https://github.com/harshul2827/bizlink/blob/main/backend/src/server.js"
click node_profiles "https://github.com/harshul2827/bizlink/tree/main/backend/src/models"
click node_discovery "https://github.com/harshul2827/bizlink/tree/main/backend/src/services"
click node_connections "https://github.com/harshul2827/bizlink/tree/main/backend/src/services"
click node_collaboration "https://github.com/harshul2827/bizlink/tree/main/backend/src/services"
click node_administration "https://github.com/harshul2827/bizlink/tree/main/backend/src/controllers"
click node_growth "https://github.com/harshul2827/bizlink/tree/main/backend/src/controllers"
click node_mysql "https://github.com/harshul2827/bizlink/blob/main/backend/src/db/index.js"
click node_operational "https://github.com/harshul2827/bizlink/blob/main/database/schema/01_schema.sql"
click node_reporting "https://github.com/harshul2827/bizlink/blob/main/database/views/01_reporting_views.sql"

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_profiles,node_discovery,node_connections,node_collaboration,node_administration,node_growth toneBlue
class node_api,node_mysql,node_operational toneAmber
class node_reporting,node_powerbi toneMint
class node_businesses toneIndigo
```

## Components

### Business workflows

- [Profiles and trust](https://github.com/harshul2827/bizlink/tree/main/backend/src/models): `backend/src/models`
- [Search and matching](https://github.com/harshul2827/bizlink/tree/main/backend/src/services): `backend/src/services`
- [Connections and messaging](https://github.com/harshul2827/bizlink/tree/main/backend/src/services): `backend/src/services`
- [Opportunities](https://github.com/harshul2827/bizlink/tree/main/backend/src/services): `backend/src/services`
- [Administration](https://github.com/harshul2827/bizlink/tree/main/backend/src/controllers): `backend/src/controllers`
- [Growth showcase](https://github.com/harshul2827/bizlink/tree/main/backend/src/controllers): `backend/src/controllers`

### API and persistence

- [REST API](https://github.com/harshul2827/bizlink/blob/main/backend/src/server.js): `backend/src/server.js`
- [MySQL pool](https://github.com/harshul2827/bizlink/blob/main/backend/src/db/index.js): `backend/src/db/index.js`
- [Operational schema](https://github.com/harshul2827/bizlink/blob/main/database/schema/01_schema.sql): `database/schema/01_schema.sql`

### Reporting

- [Reporting views](https://github.com/harshul2827/bizlink/blob/main/database/views/01_reporting_views.sql): `database/views/01_reporting_views.sql`
- **Power BI**

### Other components

- **Businesses**

## Connections

- Businesses → REST API: uses (evidence: `README.md`)
- REST API → Profiles and trust: serves (evidence: `README.md`)
- REST API → Search and matching: serves (evidence: `README.md`)
- REST API → Connections and messaging: serves (evidence: `README.md`)
- REST API → Opportunities: serves (evidence: `README.md`)
- REST API → Administration: serves (evidence: `README.md`)
- REST API → Growth showcase: serves (evidence: `README.md`)
- REST API → MySQL pool: accesses (evidence: `README.md`)
- MySQL pool → Operational schema: stores data (evidence: `README.md`)
- Operational schema → Reporting views: curates data (evidence: `README.md`)
- Reporting views → Power BI: feeds (evidence: `README.md`)
