# souvik-dey-2029/typing_test architecture

> Architecture diagram of the GitHub repository souvik-dey-2029/typing_test, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/souvik-dey-2029/typing_test
- Repository: https://github.com/souvik-dey-2029/typing_test

## Overview

This is a browser-based typing-speed test. The user starts a round, types a randomly selected quote, receives character-level correctness feedback, and sees a WPM result when typing is complete. The sampled JavaScript shows the event handling, timer, calculation, and title-letter effect; the README documents the browser entry point and feature set. The HTML and CSS files are present but were not sampled, so their detailed structure and styling relationships are not verified.

Main entry points: [`index.html`](https://github.com/souvik-dey-2029/typing_test/blob/main/index.html) (Test page), [`script.js`](https://github.com/souvik-dey-2029/typing_test/blob/main/script.js) (Round controls), [`style.css`](https://github.com/souvik-dey-2029/typing_test/blob/main/style.css) (Page styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Browser interface"]
  node_page["Test page<br/>[index.html]"]
  node_styles["Page styling<br/>[style.css]"]
  node_title["Title lettering<br/>[script.js]"]
end

subgraph group_round["Typing round"]
  node_round_control["Round controls<br/>[script.js]"]
  node_quote["Quote selection<br/>[script.js]"]
  node_feedback["Typing feedback<br/>[script.js]"]
end

subgraph group_results["Timing and results"]
  node_timer["Round timer<br/>[script.js]"]
  node_wpm["WPM calculation<br/>[script.js]"]
end

node_user(("User"))

node_user -->|"opens and types"| node_page
node_page -.->|"provides controls"| node_round_control
node_round_control -->|"selects quote"| node_quote
node_round_control -->|"starts timer"| node_timer
node_quote -->|"renders quote"| node_page
node_page -->|"typing input"| node_feedback
node_feedback -->|"stops on completion"| node_timer
node_feedback -->|"calculates on completion"| node_wpm
node_wpm -->|"updates result"| node_page
node_title -->|"renders letters"| node_page
node_styles -.->|"styles page"| node_page

click node_page "https://github.com/souvik-dey-2029/typing_test/blob/main/index.html"
click node_styles "https://github.com/souvik-dey-2029/typing_test/blob/main/style.css"
click node_round_control "https://github.com/souvik-dey-2029/typing_test/blob/main/script.js"
click node_quote "https://github.com/souvik-dey-2029/typing_test/blob/main/script.js"
click node_feedback "https://github.com/souvik-dey-2029/typing_test/blob/main/script.js"
click node_timer "https://github.com/souvik-dey-2029/typing_test/blob/main/script.js"
click node_wpm "https://github.com/souvik-dey-2029/typing_test/blob/main/script.js"
click node_title "https://github.com/souvik-dey-2029/typing_test/blob/main/script.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_page,node_styles,node_title,node_user toneBlue
class node_round_control,node_quote,node_feedback toneAmber
class node_timer,node_wpm toneMint
```

## Components

### Browser interface

- [Test page](https://github.com/souvik-dey-2029/typing_test/blob/main/index.html): `index.html`
- [Page styling](https://github.com/souvik-dey-2029/typing_test/blob/main/style.css): `style.css`
- [Title lettering](https://github.com/souvik-dey-2029/typing_test/blob/main/script.js): `script.js`

### Typing round

- [Round controls](https://github.com/souvik-dey-2029/typing_test/blob/main/script.js): `script.js`
- [Quote selection](https://github.com/souvik-dey-2029/typing_test/blob/main/script.js): `script.js`
- [Typing feedback](https://github.com/souvik-dey-2029/typing_test/blob/main/script.js): `script.js`

### Timing and results

- [Round timer](https://github.com/souvik-dey-2029/typing_test/blob/main/script.js): `script.js`
- [WPM calculation](https://github.com/souvik-dey-2029/typing_test/blob/main/script.js): `script.js`

### Other components

- **User**

## Connections

- User → Test page: opens and types (evidence: `README.md`)
- Test page → Round controls: provides controls
- Round controls → Quote selection: selects quote (evidence: `script.js`)
- Round controls → Round timer: starts timer (evidence: `script.js`)
- Quote selection → Test page: renders quote (evidence: `script.js`)
- Test page → Typing feedback: typing input (evidence: `script.js`)
- Typing feedback → Round timer: stops on completion (evidence: `script.js`)
- Typing feedback → WPM calculation: calculates on completion (evidence: `script.js`)
- WPM calculation → Test page: updates result (evidence: `script.js`)
- Title lettering → Test page: renders letters (evidence: `script.js`)
- Page styling → Test page: styles page
