# pranay-chavan/goal-den architecture

> Architecture diagram of the GitHub repository pranay-chavan/goal-den, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pranay-chavan/goal-den
- Repository: https://github.com/pranay-chavan/goal-den

## Overview

#### Purpose and Runtime
GoalDen is a client-side task-tracking SPA for creating, completing, editing, and deleting to-do items. It runs as a React application bundled and served by Vite; no implemented backend, authentication, persistence service, or API layer is present in the repository.

Key runtime files:
- `index.html`
- `src/main.jsx`
- `vite.config.js`

#### Application Bootstrap
Vite loads `index.html`, which mounts the React entry point in `src/main.jsx`. That entry renders the root application component and imports global styling. The deployment target is static hosting such as GitHub Pages or Vercel, so all active behavior must execute in the browser.

Paths:
- `index.html`
- `src/main.jsx`
- `src/index.css`

#### Root Composition
`App.jsx` is the application shell and primary composition boundary. It assembles the main task-list experience and shared page framing, including the footer. This is the appropriate place for app-wide state, layout decisions, and any future providers (theme, auth, or persistence).

Paths:
- `src/App.jsx`
- `src/ToDoList.jsx`
- `src/Footer.jsx`

#### Task-Management Feature Boundary
`ToDoList.jsx` is the core domain UI: task entry, task rendering, and user actions such as completion, updates, and removal described by the README. In the current frontend-only architecture, task state is expected to remain in React/browser memory unless this component or its parent introduces local persistence.

Paths:
- `src/ToDoList.jsx`
- `src/App.jsx`

#### Presentation Layer
Global visual rules are centralized in `src/index.css`; component structure is expressed through JSX rather than a dedicated design-system or component directory. Static images or other browser-served resources belong under `src/assets` or `public`.

Paths:
- `src/index.css`
- `src/assets`
- `public`

#### Control and Data Flow
The primary control flow is browser interaction → task-list event handler → React state update → rerender of `ToDoList` and its parent composition. There is no visible network boundary or server-side execution path. `Footer.jsx` is a presentational boundary and should not own task state.

Paths:
- `src/main.jsx`
- `src/App.jsx`
- `src/ToDoList.jsx`

#### External Services and Planned Evolution
The README identifies Firebase Auth or Vercel KV as possible future backend options, plus Vercel/GitHub Pages deployment. None are represented by source directories, service clients, environment files, or API routes in the current tree. Adding authentication or cloud sync should introduce an explicit service boundary rather than coupling remote operations directly to display components.

Paths:
- `README.md`
- `package.json`
- `vite.config.js`

Main entry points: [`src/App.jsx`](https://github.com/pranay-chavan/goal-den/blob/main/src/App.jsx) (App Shell), [`src/ToDoList.jsx`](https://github.com/pranay-chavan/goal-den/blob/main/src/ToDoList.jsx) (Task List), [`src/main.jsx`](https://github.com/pranay-chavan/goal-den/blob/main/src/main.jsx) (React Entry), [`vite.config.js`](https://github.com/pranay-chavan/goal-den/blob/main/vite.config.js) (Vite)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Browser Runtime"]
  node_vite{{"Vite<br/>build and dev server<br/>[vite.config.js]"}}
  node_html["HTML Mount Page<br/>document<br/>[index.html]"]
  node_main["React Entry<br/>bootstrap<br/>[main.jsx]"]
  node_browser(("Browser Interaction<br/>client runtime"))
  node_static_host["Static Hosting<br/>deployment target"]
end

subgraph group_ui["Application UI"]
  node_app["App Shell<br/>root component<br/>[App.jsx]"]
  node_todo["Task List<br/>domain component<br/>[ToDoList.jsx]"]
  node_footer["Footer<br/>presentational component<br/>[Footer.jsx]"]
  node_reactstate["React Task State<br/>in-memory state"]
end

subgraph group_static["Styling &amp; Assets"]
  node_css["Global Styles<br/>stylesheet<br/>[index.css]"]
  node_assets["Source Assets<br/>static assets"]
  node_public["Public Assets<br/>static assets"]
end

node_vite -->|"serves/builds"| node_html
node_html -->|"loads"| node_main
node_main -->|"renders"| node_app
node_main -->|"imports"| node_css
node_app -->|"composes"| node_todo
node_app -->|"composes"| node_footer
node_browser -->|"task interactions"| node_todo
node_todo -->|"updates"| node_reactstate
node_reactstate -->|"rerenders"| node_todo
node_reactstate -.->|"updates composition"| node_app
node_css -->|"styles"| node_app
node_assets -.->|"available to UI"| node_app
node_public -.->|"served resources"| node_browser
node_vite -->|"deploys static build"| node_static_host

click node_vite "https://github.com/pranay-chavan/goal-den/blob/main/vite.config.js"
click node_html "https://github.com/pranay-chavan/goal-den/blob/main/index.html"
click node_main "https://github.com/pranay-chavan/goal-den/blob/main/src/main.jsx"
click node_app "https://github.com/pranay-chavan/goal-den/blob/main/src/App.jsx"
click node_todo "https://github.com/pranay-chavan/goal-den/blob/main/src/ToDoList.jsx"
click node_footer "https://github.com/pranay-chavan/goal-den/blob/main/src/Footer.jsx"
click node_css "https://github.com/pranay-chavan/goal-den/blob/main/src/index.css"
click node_assets "https://github.com/pranay-chavan/goal-den/tree/main/src/assets"
click node_public "https://github.com/pranay-chavan/goal-den/tree/main/public"

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_vite,node_html,node_main,node_browser,node_static_host toneBlue
class node_app,node_todo,node_footer,node_reactstate toneAmber
class node_css,node_assets,node_public toneMint
```

## Components

### Browser Runtime

Static Vite-built React application.

- [Vite](https://github.com/pranay-chavan/goal-den/blob/main/vite.config.js): build and dev server · Bundles the SPA for static hosting. · `vite.config.js`
- [HTML Mount Page](https://github.com/pranay-chavan/goal-den/blob/main/index.html): document · `index.html`
- [React Entry](https://github.com/pranay-chavan/goal-den/blob/main/src/main.jsx): bootstrap · Mounts React and imports global styles. · `src/main.jsx`
- **Browser Interaction**: client runtime · All active application behavior executes client-side.
- **Static Hosting**: deployment target · Target such as GitHub Pages or Vercel.

### Application UI

- [App Shell](https://github.com/pranay-chavan/goal-den/blob/main/src/App.jsx): root component · Primary composition boundary for app-wide state and layout. · `src/App.jsx`
- [Task List](https://github.com/pranay-chavan/goal-den/blob/main/src/ToDoList.jsx): domain component · Owns task entry, rendering, and task actions in browser memory. · `src/ToDoList.jsx`
- [Footer](https://github.com/pranay-chavan/goal-den/blob/main/src/Footer.jsx): presentational component · Shared page framing without task state. · `src/Footer.jsx`
- **React Task State**: in-memory state · No persistence, API, or backend is implemented.

### Styling & Assets

- [Global Styles](https://github.com/pranay-chavan/goal-den/blob/main/src/index.css): stylesheet · `src/index.css`
- [Source Assets](https://github.com/pranay-chavan/goal-den/tree/main/src/assets): static assets · `src/assets`
- [Public Assets](https://github.com/pranay-chavan/goal-den/tree/main/public): static assets · Browser-served resources. · `public`

## Connections

- Vite → HTML Mount Page: serves/builds
- HTML Mount Page → React Entry: loads
- React Entry → App Shell: renders
- React Entry → Global Styles: imports
- App Shell → Task List: composes
- App Shell → Footer: composes
- Browser Interaction → Task List: task interactions
- Task List → React Task State: updates
- React Task State → Task List: rerenders
- React Task State → App Shell: updates composition
- Global Styles → App Shell: styles
- Source Assets → App Shell: available to UI
- Public Assets → Browser Interaction: served resources
- Vite → Static Hosting: deploys static build
