# thekartrix404/sihps2- architecture

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

- Interactive diagram: https://gitdiagram.com/thekartrix404/sihps2-
- Repository: https://github.com/thekartrix404/sihps2-

## Overview

BizOrbit is a multilingual, location-aware business advisory web app for entrepreneurs. The main flow is authentication into a protected workspace, where users can open a dashboard and distinct business tools for discovery, SWOT diagnostics, market analysis, financial planning, reports, franchise opportunities, and business connections. Shared location and language controls support the workspace; the sampled backend service exposes enterprise, feasibility, scheme, market-price, partner, messaging, and application data operations through Supabase. Feature-page internals were not sampled, so their backend wiring is not asserted.

Main entry points: [`src/App.jsx`](https://github.com/thekartrix404/sihps2-/blob/main/src/App.jsx) (Route gateway), [`src/components/Layout/Header.jsx`](https://github.com/thekartrix404/sihps2-/blob/main/src/components/Layout/Header.jsx) (Workspace header), [`src/services/supabaseClient.js`](https://github.com/thekartrix404/sihps2-/blob/main/src/services/supabaseClient.js) (Supabase client), [`src/pages/Auth.jsx`](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/Auth.jsx) (Sign in / sign up)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and shell"]
  node_app["Route gateway<br/>[App.jsx]"]
  node_auth["Sign in / sign up<br/>[Auth.jsx]"]
  node_authguard["Route guards<br/>[ProtectedRoute.jsx]"]
  node_publicguard["Public guard<br/>[PublicRoute.jsx]"]
  node_layout["Workspace shell<br/>[AppLayout.jsx]"]
  node_header["Workspace header<br/>[Header.jsx]"]
end

subgraph group_advisory["Business advisory"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_explore["Business discovery"]
  node_swot["SWOT diagnostics<br/>[SwotAnalysis.jsx]"]
  node_market["Market analysis<br/>[MarketAnalysis.jsx]"]
  node_finance["Financial planner"]
  node_reports["Reports dossier<br/>[ReportsDossier.jsx]"]
end

subgraph group_enterprise["Enterprise opportunities"]
  node_franchise["Franchise hub<br/>[FranchiseHub.jsx]"]
  node_connections["Business connections"]
  node_profile["Profile settings"]
end

subgraph group_shared["Shared services"]
  node_authcontext["Session state<br/>[AuthContext.jsx]"]
  node_language["Language state"]
  node_location["Location state"]
  node_languageui["Language controls<br/>[LanguageModal.jsx]"]
  node_locationui["Location controls<br/>[LocationModal.jsx]"]
  node_bizservice["Advisory data service<br/>[bizOrbitService.js]"]
  node_supabaseclient["Supabase client<br/>[supabaseClient.js]"]
  node_bhashini["Translation service<br/>[bhashiniService.js]"]
end

node_entrepreneur(("Entrepreneur"))
node_supabase[("Supabase")]
node_bhashiniapi{{"Bhashini API"}}

node_entrepreneur -->|"opens"| node_app
node_app -->|"routes public"| node_publicguard
node_publicguard -->|"allows access"| node_auth
node_app -->|"guards workspace"| node_authguard
node_authguard -->|"allows access"| node_layout
node_layout -->|"renders"| node_header
node_app -->|"routes"| node_dashboard
node_app -->|"routes"| node_explore
node_app -->|"routes"| node_swot
node_app -->|"routes"| node_market
node_app -->|"routes"| node_finance
node_app -->|"routes"| node_reports
node_app -->|"routes"| node_franchise
node_app -->|"routes"| node_connections
node_app -->|"routes"| node_profile
node_auth -->|"updates session"| node_authcontext
node_auth -->|"authenticates with"| node_supabaseclient
node_authcontext -->|"checks session"| node_supabaseclient
node_header -->|"reads language"| node_language
node_header -->|"reads location"| node_location
node_header -->|"opens"| node_languageui
node_header -->|"opens"| node_locationui
node_languageui -->|"updates settings"| node_language
node_bizservice -->|"queries and writes"| node_supabaseclient
node_supabaseclient -->|"connects"| node_supabase
node_bhashini -.->|"translates via"| node_bhashiniapi

click node_app "https://github.com/thekartrix404/sihps2-/blob/main/src/App.jsx"
click node_auth "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/Auth.jsx"
click node_authguard "https://github.com/thekartrix404/sihps2-/blob/main/src/components/Auth/ProtectedRoute.jsx"
click node_publicguard "https://github.com/thekartrix404/sihps2-/blob/main/src/components/Auth/PublicRoute.jsx"
click node_layout "https://github.com/thekartrix404/sihps2-/blob/main/src/components/Layout/AppLayout.jsx"
click node_header "https://github.com/thekartrix404/sihps2-/blob/main/src/components/Layout/Header.jsx"
click node_dashboard "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/Dashboard.jsx"
click node_explore "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/ExploreBusiness.jsx"
click node_swot "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/SwotAnalysis.jsx"
click node_market "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/MarketAnalysis.jsx"
click node_finance "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/FinancialPlanner.jsx"
click node_reports "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/ReportsDossier.jsx"
click node_franchise "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/FranchiseHub.jsx"
click node_connections "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/BusinessConnections.jsx"
click node_profile "https://github.com/thekartrix404/sihps2-/blob/main/src/pages/ProfileSettings.jsx"
click node_authcontext "https://github.com/thekartrix404/sihps2-/blob/main/src/context/AuthContext.jsx"
click node_language "https://github.com/thekartrix404/sihps2-/blob/main/src/context/LanguageContext.jsx"
click node_location "https://github.com/thekartrix404/sihps2-/blob/main/src/context/LocationContext.jsx"
click node_languageui "https://github.com/thekartrix404/sihps2-/blob/main/src/components/Common/LanguageModal.jsx"
click node_locationui "https://github.com/thekartrix404/sihps2-/blob/main/src/components/Common/LocationModal.jsx"
click node_bizservice "https://github.com/thekartrix404/sihps2-/blob/main/src/services/bizOrbitService.js"
click node_supabaseclient "https://github.com/thekartrix404/sihps2-/blob/main/src/services/supabaseClient.js"
click node_bhashini "https://github.com/thekartrix404/sihps2-/blob/main/src/services/bhashiniService.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_app,node_auth,node_authguard,node_publicguard,node_layout,node_header toneBlue
class node_dashboard,node_explore,node_swot,node_market,node_finance,node_reports,node_supabase toneAmber
class node_franchise,node_connections,node_profile,node_bhashiniapi toneMint
class node_authcontext,node_language,node_location,node_languageui,node_locationui,node_bizservice,node_supabaseclient,node_bhashini toneRose
class node_entrepreneur toneIndigo
```

## Components

### Access and shell

- [Route gateway](https://github.com/thekartrix404/sihps2-/blob/main/src/App.jsx): `src/App.jsx`
- [Sign in / sign up](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/Auth.jsx): `src/pages/Auth.jsx`
- [Route guards](https://github.com/thekartrix404/sihps2-/blob/main/src/components/Auth/ProtectedRoute.jsx): `src/components/Auth/ProtectedRoute.jsx`
- [Public guard](https://github.com/thekartrix404/sihps2-/blob/main/src/components/Auth/PublicRoute.jsx): `src/components/Auth/PublicRoute.jsx`
- [Workspace shell](https://github.com/thekartrix404/sihps2-/blob/main/src/components/Layout/AppLayout.jsx): `src/components/Layout/AppLayout.jsx`
- [Workspace header](https://github.com/thekartrix404/sihps2-/blob/main/src/components/Layout/Header.jsx): `src/components/Layout/Header.jsx`

### Business advisory

- [Dashboard](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Business discovery](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/ExploreBusiness.jsx): `src/pages/ExploreBusiness.jsx`
- [SWOT diagnostics](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/SwotAnalysis.jsx): `src/pages/SwotAnalysis.jsx`
- [Market analysis](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/MarketAnalysis.jsx): `src/pages/MarketAnalysis.jsx`
- [Financial planner](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/FinancialPlanner.jsx): `src/pages/FinancialPlanner.jsx`
- [Reports dossier](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/ReportsDossier.jsx): `src/pages/ReportsDossier.jsx`

### Enterprise opportunities

- [Franchise hub](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/FranchiseHub.jsx): `src/pages/FranchiseHub.jsx`
- [Business connections](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/BusinessConnections.jsx): `src/pages/BusinessConnections.jsx`
- [Profile settings](https://github.com/thekartrix404/sihps2-/blob/main/src/pages/ProfileSettings.jsx): `src/pages/ProfileSettings.jsx`

### Shared services

- [Session state](https://github.com/thekartrix404/sihps2-/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`
- [Language state](https://github.com/thekartrix404/sihps2-/blob/main/src/context/LanguageContext.jsx): `src/context/LanguageContext.jsx`
- [Location state](https://github.com/thekartrix404/sihps2-/blob/main/src/context/LocationContext.jsx): `src/context/LocationContext.jsx`
- [Language controls](https://github.com/thekartrix404/sihps2-/blob/main/src/components/Common/LanguageModal.jsx): `src/components/Common/LanguageModal.jsx`
- [Location controls](https://github.com/thekartrix404/sihps2-/blob/main/src/components/Common/LocationModal.jsx): `src/components/Common/LocationModal.jsx`
- [Advisory data service](https://github.com/thekartrix404/sihps2-/blob/main/src/services/bizOrbitService.js): `src/services/bizOrbitService.js`
- [Supabase client](https://github.com/thekartrix404/sihps2-/blob/main/src/services/supabaseClient.js): `src/services/supabaseClient.js`
- [Translation service](https://github.com/thekartrix404/sihps2-/blob/main/src/services/bhashiniService.js): `src/services/bhashiniService.js`

### Other components

- **Entrepreneur**
- **Supabase**
- **Bhashini API**

## Connections

- Entrepreneur → Route gateway: opens
- Route gateway → Public guard: routes public
- Public guard → Sign in / sign up: allows access
- Route gateway → Route guards: guards workspace
- Route guards → Workspace shell: allows access
- Workspace shell → Workspace header: renders
- Route gateway → Dashboard: routes
- Route gateway → Business discovery: routes
- Route gateway → SWOT diagnostics: routes
- Route gateway → Market analysis: routes
- Route gateway → Financial planner: routes
- Route gateway → Reports dossier: routes
- Route gateway → Franchise hub: routes
- Route gateway → Business connections: routes
- Route gateway → Profile settings: routes
- Sign in / sign up → Session state: updates session
- Sign in / sign up → Supabase client: authenticates with
- Session state → Supabase client: checks session
- Workspace header → Language state: reads language
- Workspace header → Location state: reads location
- Workspace header → Language controls: opens
- Workspace header → Location controls: opens
- Language controls → Language state: updates settings
- Advisory data service → Supabase client: queries and writes
- Supabase client → Supabase: connects
- Translation service → Bhashini API: translates via
