# sumanthkm06/agriconnectfinal architecture

> Architecture diagram of the GitHub repository sumanthkm06/agriconnectfinal, 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/sumanthkm06/agriconnectfinal
- Repository: https://github.com/sumanthkm06/agriconnectfinal

## Overview

KrishiMandi appears to be a farmer-facing marketplace and farm-services site: users can browse prices, buy or sell goods, and access tools, information, and financial services. The filenames establish these product areas, but the README is empty and the sampled source covers only authentication; links and workflows among the other pages are therefore not inferred. Authentication uses browser localStorage for demo account and profile data.

Main entry points: [`dev/auth.js`](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/auth.js) (Authentication logic), [`dev/login.html`](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/login.html) (Login and signup), [`dev/index.html`](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/index.html) (Home), [`dev/prices.html`](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/prices.html) (Market prices)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_market["Farm marketplace"]
  node_prices["Market prices<br/>[prices.html]"]
  node_buy["Buy produce<br/>[buy.html]"]
  node_sell["Sell produce<br/>[sell.html]"]
  node_list["Listings<br/>[list.html]"]
  node_cart["Cart<br/>[cart.html]"]
  node_checkout["Checkout<br/>[checkout.html]"]
end

subgraph group_services["Farm services"]
  node_diagnose["Crop diagnosis<br/>[diagnose.html]"]
  node_identify["Identify<br/>[identify.html]"]
  node_planner["Farm planner<br/>[planner.html]"]
  node_farmlog["Farm log<br/>[farmlog.html]"]
  node_loan["Loans<br/>[loan.html]"]
  node_insurance["Insurance<br/>[insurance.html]"]
  node_labour["Hire labour<br/>[hire-labour.html]"]
  node_rent["Rent tools<br/>[rent-tools.html]"]
  node_support["Support<br/>[support.html]"]
end

subgraph group_learning["Knowledge and media"]
  node_knowledge["Knowledge hub<br/>[knowledge-hub.html]"]
  node_library["Book library<br/>[library.html]"]
  node_books["Book collection"]
  node_videos["Video collection"]
  node_reels["Reels<br/>[reels.html]"]
end

subgraph group_account["Account"]
  node_login["Login and signup<br/>[login.html]"]
  node_profile["Profile<br/>[profile.html]"]
  node_auth["Authentication logic<br/>[auth.js]"]
  node_localuser[("Browser user state<br/>[auth.js]")]
end

node_farmer(("Farmer"))
node_home["Home<br/>[index.html]"]

node_farmer -->|"opens"| node_home
node_farmer -->|"browses"| node_prices
node_farmer -->|"shops"| node_buy
node_farmer -->|"offers produce"| node_sell
node_farmer -->|"uses"| node_diagnose
node_farmer -->|"learns"| node_knowledge
node_farmer -->|"signs in"| node_login
node_auth -->|"reads and writes"| node_localuser
node_auth -->|"handles forms"| node_login
node_auth -->|"loads and updates"| node_profile
node_auth -->|"renders navigation"| node_home

click node_home "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/index.html"
click node_prices "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/prices.html"
click node_buy "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/buy.html"
click node_sell "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/sell.html"
click node_list "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/list.html"
click node_cart "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/cart.html"
click node_checkout "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/checkout.html"
click node_diagnose "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/diagnose.html"
click node_identify "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/identify.html"
click node_planner "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/planner.html"
click node_farmlog "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/farmlog.html"
click node_loan "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/loan.html"
click node_insurance "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/insurance.html"
click node_labour "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/hire-labour.html"
click node_rent "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/rent-tools.html"
click node_knowledge "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/knowledge-hub.html"
click node_library "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/library.html"
click node_books "https://github.com/sumanthkm06/agriconnectfinal/tree/main/dev/books"
click node_videos "https://github.com/sumanthkm06/agriconnectfinal/tree/main/dev/videos"
click node_reels "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/reels.html"
click node_support "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/support.html"
click node_login "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/login.html"
click node_profile "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/profile.html"
click node_auth "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/auth.js"
click node_localuser "https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/auth.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_prices,node_buy,node_sell,node_list,node_cart,node_checkout toneBlue
class node_diagnose,node_identify,node_planner,node_farmlog,node_loan,node_insurance,node_labour,node_rent,node_support toneAmber
class node_knowledge,node_library,node_books,node_videos,node_reels toneMint
class node_login,node_profile,node_auth,node_localuser toneRose
class node_farmer toneIndigo
class node_home toneTeal
```

## Components

### Farm marketplace

- [Market prices](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/prices.html): `dev/prices.html`
- [Buy produce](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/buy.html): `dev/buy.html`
- [Sell produce](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/sell.html): `dev/sell.html`
- [Listings](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/list.html): `dev/list.html`
- [Cart](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/cart.html): `dev/cart.html`
- [Checkout](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/checkout.html): `dev/checkout.html`

### Farm services

- [Crop diagnosis](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/diagnose.html): `dev/diagnose.html`
- [Identify](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/identify.html): `dev/identify.html`
- [Farm planner](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/planner.html): `dev/planner.html`
- [Farm log](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/farmlog.html): `dev/farmlog.html`
- [Loans](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/loan.html): `dev/loan.html`
- [Insurance](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/insurance.html): `dev/insurance.html`
- [Hire labour](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/hire-labour.html): `dev/hire-labour.html`
- [Rent tools](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/rent-tools.html): `dev/rent-tools.html`
- [Support](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/support.html): `dev/support.html`

### Knowledge and media

- [Knowledge hub](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/knowledge-hub.html): `dev/knowledge-hub.html`
- [Book library](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/library.html): `dev/library.html`
- [Book collection](https://github.com/sumanthkm06/agriconnectfinal/tree/main/dev/books): `dev/books`
- [Video collection](https://github.com/sumanthkm06/agriconnectfinal/tree/main/dev/videos): `dev/videos`
- [Reels](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/reels.html): `dev/reels.html`

### Account

- [Login and signup](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/login.html): `dev/login.html`
- [Profile](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/profile.html): `dev/profile.html`
- [Authentication logic](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/auth.js): `dev/auth.js`
- [Browser user state](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/auth.js): `dev/auth.js`

### Other components

- **Farmer**
- [Home](https://github.com/sumanthkm06/agriconnectfinal/blob/main/dev/index.html): `dev/index.html`

## Connections

- Farmer → Home: opens
- Farmer → Market prices: browses
- Farmer → Buy produce: shops
- Farmer → Sell produce: offers produce
- Farmer → Crop diagnosis: uses
- Farmer → Knowledge hub: learns
- Farmer → Login and signup: signs in
- Authentication logic → Browser user state: reads and writes
- Authentication logic → Login and signup: handles forms
- Authentication logic → Profile: loads and updates
- Authentication logic → Home: renders navigation
