# 404avinash/exp architecture

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

- Interactive diagram: https://gitdiagram.com/404avinash/exp
- Repository: https://github.com/404avinash/exp

## Overview

This repository is a learning workspace, not a single integrated product. It is a collection of mostly independent exercises and mini-projects across HTML/CSS/JavaScript, React/Vite, and Java, with a few utility scripts and generated pages. For an architecture diagram, it should be drawn as a portfolio of separate subsystems rather than one end-to-end application.

1. Top-level organization  
The repo is grouped by course/lab themes such as `Experiments`, `Testing`, `FlexBoxx`, `Unit4_worksheet`, `Assignment`, `DEMO`, `my-apply12`, `mocktest1`, and `portfolio`. Each of these folders is effectively its own boundary with its own entry page and assets. There is no shared runtime or shared backend across the whole repo.

2. Static front-end exercises  
A large portion of the repo is plain static web content: many standalone `index.html`, `style.css`, and occasional `script.js` files. These live in folders like `Experiments/Experiment-1` through `Experiment-6`, `Testing`, `FlexBoxx`, `Unit4_worksheet`, and others. Their data flow is browser-only: HTML renders the UI, CSS handles layout, and JavaScript adds client-side behavior where present.

3. React/Vite application cluster  
Several folders are full React apps built with Vite: `Assignment`, `DEMO`, `mocktest1`, `my-apply12`, `Experiments/Experiment-7/student-app`, `Experiments/Experiment-8/State-Management`, and `Experiments/Experiment-9/form`. These share a common structure: `index.html`, `src/main.jsx`, `src/App.jsx`, CSS files, `public`, and `vite.config.js`, plus `package.json` and lockfiles. The architecture here is a standard client app pipeline: browser loads the Vite entry, React mounts the root component, and local component state drives rendering.

4. Component boundaries inside React apps  
The React projects introduce small component-level boundaries such as `Student.jsx` in `DEMO`, `Student.jsx` in `Experiments/Experiment-7/student-app`, and `student.jsx` in `my-apply12`. These suggest reusable UI units rather than large feature modules. State-management and form experiments indicate client-side interaction patterns like input handling, local state, and conditional rendering.

5. Java REST API experiments  
`Experiments/Experiment-11` and `Experiments/Experiment-12` are backend-style Java projects. They contain domain classes like `Student.java` and `Employee.java`, controller classes like `StudentController.java` and `EmployeeController.java`, and application bootstrap classes such as `StudentRestApiApplication.java` and `EmployeeRestApiApplication.java`. The architectural boundary here is a simple REST API layer exposed from Java code, with controller-to-model flow inside the JVM.

6. Domain model and controller flow in Java  
The Java experiments follow a conventional layered shape: application startup class initializes the service, controllers accept requests, and model classes represent the data. Even without extra service/repository folders, the diagram should show request handling ending in a controller, then interacting with an in-memory or directly managed domain object. These are self-contained teaching examples rather than production multi-tier services.

7. Coursework and testing sandboxes  
The `Testing` directory contains many standalone HTML demos: calculators, stopwatches, booking pages, timetable pages, forms, and project variants (`proj1.html` through `proj40.html`). This area is best modeled as a sandbox of isolated UI prototypes. There is no cross-page dependency; each page is its own browser entry point.

8. Portfolio and personal site content  
`portfolio` is a distinct personal website subtree with pages like `index.html`, `research.html`, `certificates.html`, a stylesheet, and nested journey/certificate content. This is separate from the lab exercises and functions as a static multi-page site. It likely serves as a presentation layer for personal achievements and timeline content.

9. Root-level pages and utility scripts  
The repo root also contains standalone files such as `index.html`, `console.js`, `n.js`, `style.css`, and several one-off HTML pages/folders like `home`, `home_page`, `form`, `mT2`, `mtt-2`, and `exp3`. Utility scripts `generate_100_more.ps1` and `generate_commits.ps1` indicate some automated file generation or repository maintenance, but they do not form a runtime subsystem.

10. Generated content and scale artifacts  
The `ai_content` directory contains a very large set of generated `table_*.html` files, suggesting bulk-produced static pages. This is a content generation boundary rather than an application boundary: the files are outputs to be opened directly in a browser, not part of a shared system. For an architecture diagram, this should be represented as generated static artifacts stored alongside the rest of the exercises.

11. Tooling and build systems  
The React projects use Vite, npm package management, ESLint configuration, and `public/src` separation. The Java folders do not show build tooling in the tree, but the presence of `*RestApiApplication.java` and controllers implies a Spring-style runtime. The rest of the repo is tool-light and browser-native, relying on direct file loading.

12. Overall system view  
The correct high-level architecture is a repository of independent educational units: static pages, React client apps, and a few Java REST API exercises. There is no central API gateway, database, or shared service layer connecting the folders. The main “flow” across the repo is not runtime integration but repeated experimentation with front-end layout, client-side state, and basic backend controllers.

Main entry points: [`index.html`](https://github.com/404avinash/exp/blob/master/index.html) (Root page), [`Assignment`](https://github.com/404avinash/exp/tree/master/Assignment) (Assignment app), [`Experiments/Experiment-11`](https://github.com/404avinash/exp/tree/master/Experiments/Experiment-11) (Student API), [`ai_content`](https://github.com/404avinash/exp/tree/master/ai_content) (Table pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_static["Static exercises"]
  node_static_experiments["Experiments<br/>static lab set"]
  node_testing_sandbox["Testing<br/>prototype sandbox"]
  node_flexbox_practice["FlexBoxx<br/>css practice"]
  node_unit4_worksheet["Unit4 worksheet<br/>worksheet pages"]
end

subgraph group_react["React/Vite apps"]
  node_react_assignment["Assignment app<br/>Vite React app"]
  node_react_demo["DEMO app<br/>Vite React app"]
  node_react_mocktest["mocktest1 app<br/>Vite React app"]
  node_react_apply["my-apply12 app<br/>Vite React app"]
  node_react_student_app["Student app<br/>Vite React app"]
  node_react_state["State management<br/>Vite React app"]
  node_react_form["Form app<br/>Vite React app"]
end

subgraph group_java["Java APIs"]
  node_java_student_api["Student API<br/>Java REST app"]
  node_java_employee_api["Employee API<br/>Java REST app"]
end

subgraph group_portfolio["Portfolio site"]
  node_portfolio_site["Portfolio site<br/>static site"]
end

subgraph group_generated["Generated content"]
  node_generated_tables["Table pages<br/>generated static"]
  node_generated_scripts["Gen scripts<br/>generation utility"]
end

subgraph group_root["Root pages"]
  node_root_index["Root page<br/>static entry<br/>[index.html]"]
  node_root_style["Root style<br/>stylesheet<br/>[style.css]"]
  node_root_scripts["Helper scripts<br/>utility scripts<br/>[console.js]"]
end

node_root_index -->|"styles"| node_root_style
node_root_index -->|"scripts"| node_root_scripts
node_static_experiments -->|"entry pages"| node_root_index
node_testing_sandbox -->|"entry pages"| node_root_index
node_flexbox_practice -->|"entry pages"| node_root_index
node_unit4_worksheet -->|"entry pages"| node_root_index
node_react_assignment -.->|"same stack"| node_react_demo
node_react_assignment -.->|"same stack"| node_react_mocktest
node_react_assignment -.->|"same stack"| node_react_apply
node_react_assignment -.->|"same stack"| node_react_student_app
node_react_assignment -.->|"same stack"| node_react_state
node_react_assignment -.->|"same stack"| node_react_form
node_react_demo -->|"component"| node_react_demo
node_react_student_app -->|"component"| node_react_student_app
node_react_apply -->|"component"| node_react_apply
node_react_state -->|"state flow"| node_react_state
node_react_form -->|"form flow"| node_react_form
node_java_student_api -.->|"same layer"| node_java_employee_api
node_java_student_api -->|"controller→model"| node_java_student_api
node_java_employee_api -->|"controller→model"| node_java_employee_api
node_portfolio_site -->|"styles"| node_root_style
node_portfolio_site -.->|"site root"| node_root_index
node_generated_tables -.->|"produced by"| node_generated_scripts
node_generated_tables -.->|"browser output"| node_root_index
node_static_experiments -.->|"same medium"| node_generated_tables

click node_root_index "https://github.com/404avinash/exp/blob/master/index.html"
click node_root_style "https://github.com/404avinash/exp/blob/master/style.css"
click node_root_scripts "https://github.com/404avinash/exp/blob/master/console.js"
click node_static_experiments "https://github.com/404avinash/exp/tree/master/Experiments"
click node_testing_sandbox "https://github.com/404avinash/exp/tree/master/Testing"
click node_flexbox_practice "https://github.com/404avinash/exp/tree/master/FlexBoxx"
click node_unit4_worksheet "https://github.com/404avinash/exp/tree/master/Unit4_worksheet"
click node_react_assignment "https://github.com/404avinash/exp/tree/master/Assignment"
click node_react_demo "https://github.com/404avinash/exp/tree/master/DEMO"
click node_react_mocktest "https://github.com/404avinash/exp/tree/master/mocktest1"
click node_react_apply "https://github.com/404avinash/exp/tree/master/my-apply12"
click node_react_student_app "https://github.com/404avinash/exp/tree/master/Experiments/Experiment-7/student-app"
click node_react_state "https://github.com/404avinash/exp/tree/master/Experiments/Experiment-8/State-Management"
click node_react_form "https://github.com/404avinash/exp/tree/master/Experiments/Experiment-9/form"
click node_java_student_api "https://github.com/404avinash/exp/tree/master/Experiments/Experiment-11"
click node_java_employee_api "https://github.com/404avinash/exp/tree/master/Experiments/Experiment-12"
click node_portfolio_site "https://github.com/404avinash/exp/tree/master/portfolio"
click node_generated_tables "https://github.com/404avinash/exp/tree/master/ai_content"
click node_generated_scripts "https://github.com/404avinash/exp/blob/master/generate_100_more.ps1"

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_static_experiments,node_testing_sandbox,node_flexbox_practice,node_unit4_worksheet toneBlue
class node_react_assignment,node_react_demo,node_react_mocktest,node_react_apply,node_react_student_app,node_react_state,node_react_form toneAmber
class node_java_student_api,node_java_employee_api toneMint
class node_portfolio_site toneRose
class node_generated_tables,node_generated_scripts toneIndigo
class node_root_index,node_root_style,node_root_scripts toneTeal
```

## Components

### Static exercises

Standalone HTML/CSS/JS lab pages and browser-only sandboxes.

- [Experiments](https://github.com/404avinash/exp/tree/master/Experiments): static lab set · Main collection of browser-only experiment pages across HTML, CSS, and occasional JS. · `Experiments`
- [Testing](https://github.com/404avinash/exp/tree/master/Testing): prototype sandbox · Large set of isolated HTML demos, calculators, timers, forms, and project variants. · `Testing`
- [FlexBoxx](https://github.com/404avinash/exp/tree/master/FlexBoxx): css practice · Sequential flexbox layout exercises progressing through multiple levels. · `FlexBoxx`
- [Unit4 worksheet](https://github.com/404avinash/exp/tree/master/Unit4_worksheet): worksheet pages · Small set of CSS/HTML worksheet problems and answers. · `Unit4_worksheet`

### React/Vite apps

Independent client applications built with Vite and React.

- [Assignment app](https://github.com/404avinash/exp/tree/master/Assignment): Vite React app · Standalone React/Vite client app for assignment work. · `Assignment`
- [DEMO app](https://github.com/404avinash/exp/tree/master/DEMO): Vite React app · React/Vite demo app with a local student component boundary. · `DEMO`
- [mocktest1 app](https://github.com/404avinash/exp/tree/master/mocktest1): Vite React app · Standalone React/Vite mock-test application. · `mocktest1`
- [my-apply12 app](https://github.com/404avinash/exp/tree/master/my-apply12): Vite React app · React/Vite app with a student component and local styling. · `my-apply12`
- [Student app](https://github.com/404avinash/exp/tree/master/Experiments/Experiment-7/student-app): Vite React app · React/Vite student app inside Experiment 7. · `Experiments/Experiment-7/student-app`
- [State management](https://github.com/404avinash/exp/tree/master/Experiments/Experiment-8/State-Management): Vite React app · React/Vite experiment focused on local client state flows. · `Experiments/Experiment-8/State-Management`
- [Form app](https://github.com/404avinash/exp/tree/master/Experiments/Experiment-9/form): Vite React app · React/Vite form-handling experiment. · `Experiments/Experiment-9/form`

### Java APIs

Small backend-style Java REST experiments with controllers and domain models.

- [Student API](https://github.com/404avinash/exp/tree/master/Experiments/Experiment-11): Java REST app · Java REST exercise with student domain and controller classes. · `Experiments/Experiment-11`
- [Employee API](https://github.com/404avinash/exp/tree/master/Experiments/Experiment-12): Java REST app · Java REST exercise with employee domain and controller classes. · `Experiments/Experiment-12`

### Portfolio site

Personal multi-page static site content.

- [Portfolio site](https://github.com/404avinash/exp/tree/master/portfolio): static site · Personal multi-page portfolio with research, certificates, and journey content. · `portfolio`

### Generated content

Bulk-produced static artifacts and utility scripts.

- [Table pages](https://github.com/404avinash/exp/tree/master/ai_content): generated static · Large set of generated HTML content pages opened directly in the browser. · `ai_content`
- [Gen scripts](https://github.com/404avinash/exp/blob/master/generate_100_more.ps1): generation utility · Repository maintenance scripts used to create or expand content. · `generate_100_more.ps1`

### Root pages

Top-level standalone pages and helper scripts in the repository root.

- [Root page](https://github.com/404avinash/exp/blob/master/index.html): static entry · Repository root HTML entry point for ad hoc browser use. · `index.html`
- [Root style](https://github.com/404avinash/exp/blob/master/style.css): stylesheet · Shared CSS for root-level static pages. · `style.css`
- [Helper scripts](https://github.com/404avinash/exp/blob/master/console.js): utility scripts · One-off JavaScript and PowerShell helpers for local experimentation and generation. · `console.js`

## Connections

- Root page → Root style: styles · Root page uses the shared stylesheet.
- Root page → Helper scripts: scripts · Root page can rely on local helper scripts for behavior or demos.
- Experiments → Root page: entry pages · Contains independent browser entry points and related assets.
- Testing → Root page: entry pages · Contains many isolated demo pages and small UI prototypes.
- FlexBoxx → Root page: entry pages · Contains flexbox practice pages that open directly in the browser.
- Unit4 worksheet → Root page: entry pages · Contains worksheet problems with HTML and CSS files.
- Assignment app → DEMO app: same stack · Both are independent React/Vite client applications.
- Assignment app → mocktest1 app: same stack · Shares the same Vite + React app pattern.
- Assignment app → my-apply12 app: same stack · Shares the same Vite + React app pattern.
- Assignment app → Student app: same stack · Shares the same Vite + React app pattern.
- Assignment app → State management: same stack · Shares the same Vite + React app pattern.
- Assignment app → Form app: same stack · Shares the same Vite + React app pattern.
- DEMO app → DEMO app: component · Contains a local student component boundary.
- Student app → Student app: component · Contains a Student component boundary within the app.
- my-apply12 app → my-apply12 app: component · Contains a student component boundary within the app.
- State management → State management: state flow · Client-side state drives rendering and interaction.
- Form app → Form app: form flow · Input handling and local form state drive rendering.
- Student API → Employee API: same layer · Both are small Java REST-style teaching examples.
- Student API → Student API: controller→model · Controller routes request handling to the student domain model.
- Employee API → Employee API: controller→model · Controller routes request handling to the employee domain model.
- Portfolio site → Root style: styles · Static portfolio pages are styled by a local stylesheet.
- Portfolio site → Root page: site root · Multi-page static presentation site separate from the lab exercises.
- Table pages → Gen scripts: produced by · Bulk static pages are consistent with repository generation utilities.
- Table pages → Root page: browser output · Generated pages are standalone browser artifacts rather than an app runtime.
- Experiments → Table pages: same medium · Both are browser-opened static HTML artifacts.
