# anitha4321/garden-visionary architecture

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

- Interactive diagram: https://gitdiagram.com/anitha4321/garden-visionary
- Repository: https://github.com/anitha4321/garden-visionary

## Overview

This repository appears to be a small event-calendar web application alongside account pages, a gallery, and a sound-reminder page. The evidenced event workflow stores events through the save endpoint and exposes stored events through a display endpoint; the calendar page is present, but its wiring to those endpoints is not shown. Account signup, login, and profile lookup use a separate database connection. Gallery and reminder capabilities are visible in the tree, but their runtime behavior was not sampled.

Main entry points: [`reg/database.php`](https://github.com/anitha4321/garden-visionary/blob/main/reg/database.php) (Account database), [`dynamic-full-calendar.html`](https://github.com/anitha4321/garden-visionary/blob/main/dynamic-full-calendar.html) (Calendar page), [`reg/login.php`](https://github.com/anitha4321/garden-visionary/blob/main/reg/login.php) (Login), [`reg/index.php`](https://github.com/anitha4321/garden-visionary/blob/main/reg/index.php) (Account home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_calendar["Event calendar"]
  node_calendar_ui["Calendar page"]
  node_save_event["Save event<br/>[save_event.php]"]
  node_display_event["Display events<br/>[display_event.php]"]
  node_event_db[("Calendar database")]
end

subgraph group_accounts["Account access"]
  node_login["Login<br/>[login.php]"]
  node_signup["Process signup<br/>[process-signup.php]"]
  node_email_check["Email validation<br/>[validate-email.php]"]
  node_profile["Account home<br/>[index.php]"]
  node_logout["Logout<br/>[logout.php]"]
  node_account_db[("Account database<br/>[database.php]")]
  node_password_reset["Password recovery"]
  node_reset_delivery["Reset delivery"]
end

subgraph group_gallery["Gallery"]
  node_gallery_home["Gallery home<br/>[Mhome.html]"]
  node_gallery_page["Gallery<br/>[gallery.html]"]
  node_gallery_alt_home["Gallery home page<br/>[home.html]"]
end

subgraph group_reminders["Sound reminders"]
  node_reminder_page["Reminder page<br/>[index.html]"]
  node_reminder_sounds["Notification sounds"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_calendar_ui
node_visitor -->|"signs in"| node_login
node_visitor -->|"registers"| node_signup
node_save_event -->|"writes events"| node_event_db
node_display_event -->|"reads events"| node_event_db
node_calendar_ui -.->|"submits events"| node_save_event
node_calendar_ui -.->|"loads events"| node_display_event
node_login -->|"queries users"| node_account_db
node_login -->|"redirects after login"| node_profile
node_signup -->|"creates user"| node_account_db
node_email_check -->|"checks email"| node_account_db
node_profile -->|"loads user"| node_account_db
node_logout -->|"redirects to"| node_profile
node_visitor -.->|"opens"| node_gallery_home
node_visitor -.->|"opens"| node_reminder_page
node_reminder_page -.->|"uses sounds"| node_reminder_sounds
node_password_reset -.->|"starts recovery"| node_reset_delivery

click node_calendar_ui "https://github.com/anitha4321/garden-visionary/blob/main/dynamic-full-calendar.html"
click node_save_event "https://github.com/anitha4321/garden-visionary/blob/main/save_event.php"
click node_display_event "https://github.com/anitha4321/garden-visionary/blob/main/display_event.php"
click node_event_db "https://github.com/anitha4321/garden-visionary/blob/main/database_connection.php"
click node_login "https://github.com/anitha4321/garden-visionary/blob/main/reg/login.php"
click node_signup "https://github.com/anitha4321/garden-visionary/blob/main/reg/process-signup.php"
click node_email_check "https://github.com/anitha4321/garden-visionary/blob/main/reg/validate-email.php"
click node_profile "https://github.com/anitha4321/garden-visionary/blob/main/reg/index.php"
click node_logout "https://github.com/anitha4321/garden-visionary/blob/main/reg/logout.php"
click node_account_db "https://github.com/anitha4321/garden-visionary/blob/main/reg/database.php"
click node_password_reset "https://github.com/anitha4321/garden-visionary/blob/main/reg/forgot-password.php"
click node_reset_delivery "https://github.com/anitha4321/garden-visionary/blob/main/reg/send-password-reset.php"
click node_gallery_home "https://github.com/anitha4321/garden-visionary/blob/main/gellery/MSTLAB/Mhome.html"
click node_gallery_page "https://github.com/anitha4321/garden-visionary/blob/main/gellery/MSTLAB/gallery.html"
click node_gallery_alt_home "https://github.com/anitha4321/garden-visionary/blob/main/gellery/MSTLAB/home.html"
click node_reminder_page "https://github.com/anitha4321/garden-visionary/blob/main/Reminder/index.html"
click node_reminder_sounds "https://github.com/anitha4321/garden-visionary/tree/main/Reminder/Notifications"

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_calendar_ui,node_save_event,node_display_event,node_event_db toneBlue
class node_login,node_signup,node_email_check,node_profile,node_logout,node_account_db,node_password_reset,node_reset_delivery toneAmber
class node_gallery_home,node_gallery_page,node_gallery_alt_home toneMint
class node_reminder_page,node_reminder_sounds toneRose
class node_visitor toneIndigo
```

## Components

### Event calendar

- [Calendar page](https://github.com/anitha4321/garden-visionary/blob/main/dynamic-full-calendar.html): `dynamic-full-calendar.html`
- [Save event](https://github.com/anitha4321/garden-visionary/blob/main/save_event.php): `save_event.php`
- [Display events](https://github.com/anitha4321/garden-visionary/blob/main/display_event.php): `display_event.php`
- [Calendar database](https://github.com/anitha4321/garden-visionary/blob/main/database_connection.php): `database_connection.php`

### Account access

- [Login](https://github.com/anitha4321/garden-visionary/blob/main/reg/login.php): `reg/login.php`
- [Process signup](https://github.com/anitha4321/garden-visionary/blob/main/reg/process-signup.php): `reg/process-signup.php`
- [Email validation](https://github.com/anitha4321/garden-visionary/blob/main/reg/validate-email.php): `reg/validate-email.php`
- [Account home](https://github.com/anitha4321/garden-visionary/blob/main/reg/index.php): `reg/index.php`
- [Logout](https://github.com/anitha4321/garden-visionary/blob/main/reg/logout.php): `reg/logout.php`
- [Account database](https://github.com/anitha4321/garden-visionary/blob/main/reg/database.php): `reg/database.php`
- [Password recovery](https://github.com/anitha4321/garden-visionary/blob/main/reg/forgot-password.php): `reg/forgot-password.php`
- [Reset delivery](https://github.com/anitha4321/garden-visionary/blob/main/reg/send-password-reset.php): `reg/send-password-reset.php`

### Gallery

- [Gallery home](https://github.com/anitha4321/garden-visionary/blob/main/gellery/MSTLAB/Mhome.html): `gellery/MSTLAB/Mhome.html`
- [Gallery](https://github.com/anitha4321/garden-visionary/blob/main/gellery/MSTLAB/gallery.html): `gellery/MSTLAB/gallery.html`
- [Gallery home page](https://github.com/anitha4321/garden-visionary/blob/main/gellery/MSTLAB/home.html): `gellery/MSTLAB/home.html`

### Sound reminders

- [Reminder page](https://github.com/anitha4321/garden-visionary/blob/main/Reminder/index.html): `Reminder/index.html`
- [Notification sounds](https://github.com/anitha4321/garden-visionary/tree/main/Reminder/Notifications): `Reminder/Notifications`

### Other components

- **Visitor**

## Connections

- Visitor → Calendar page: opens
- Visitor → Login: signs in
- Visitor → Process signup: registers
- Save event → Calendar database: writes events (evidence: `save_event.php`)
- Display events → Calendar database: reads events (evidence: `display_event.php`)
- Calendar page → Save event: submits events
- Calendar page → Display events: loads events
- Login → Account database: queries users (evidence: `reg/login.php`)
- Login → Account home: redirects after login (evidence: `reg/login.php`)
- Process signup → Account database: creates user (evidence: `reg/process-signup.php`)
- Email validation → Account database: checks email (evidence: `reg/validate-email.php`)
- Account home → Account database: loads user (evidence: `reg/index.php`)
- Logout → Account home: redirects to (evidence: `reg/logout.php`)
- Visitor → Gallery home: opens
- Visitor → Reminder page: opens
- Reminder page → Notification sounds: uses sounds
- Password recovery → Reset delivery: starts recovery
