# krishnacs-93/mannsathi architecture

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

- Interactive diagram: https://gitdiagram.com/krishnacs-93/mannsathi
- Repository: https://github.com/krishnacs-93/mannsathi

## Overview

Mann Saathi is a single-file mental-wellness support website. Visitors browse its support information and can submit feedback; the PHP page validates submissions, stores valid feedback in MySQL, and renders success or error messages. The same file also provides the interactive presentation, including theme, profile, and star-rating behavior. The excerpts show the database setup and feedback logic, but omit the complete form markup, so no separate form-to-handler relationship is inferred.

Main entry points: [`mann.php`](https://github.com/krishnacs-93/mannsathi/blob/main/mann.php) (Mann Saathi Site)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_website["Support Website"]
  node_site["Mann Saathi Site<br/>[mann.php]"]
  node_feedback["Feedback Handling<br/>[mann.php]"]
end

subgraph group_storage["Feedback Storage"]
  node_mysql[("MySQL Feedback")]
end

node_visitor(("Visitor"))

node_visitor -->|"views and submits"| node_site
node_site -->|"handles POST"| node_feedback
node_feedback -->|"creates and inserts"| node_mysql

click node_site "https://github.com/krishnacs-93/mannsathi/blob/main/mann.php"
click node_feedback "https://github.com/krishnacs-93/mannsathi/blob/main/mann.php"

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_site,node_feedback toneBlue
class node_mysql toneAmber
class node_visitor toneIndigo
```

## Components

### Support Website

- [Mann Saathi Site](https://github.com/krishnacs-93/mannsathi/blob/main/mann.php): `mann.php`
- [Feedback Handling](https://github.com/krishnacs-93/mannsathi/blob/main/mann.php): `mann.php`

### Feedback Storage

- **MySQL Feedback**

### Other components

- **Visitor**

## Connections

- Visitor → Mann Saathi Site: views and submits (evidence: `mann.php`)
- Mann Saathi Site → Feedback Handling: handles POST (evidence: `mann.php`)
- Feedback Handling → MySQL Feedback: creates and inserts (evidence: `mann.php`)
