# boobesh776/thinkly architecture

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

- Interactive diagram: https://gitdiagram.com/boobesh776/thinkly
- Repository: https://github.com/boobesh776/thinkly

## Overview

This is a browser-based quiz site, with pages for landing, sign-in, taking a quiz, and viewing a score. The sampled quiz script fetches question data, selects up to ten questions, renders answer choices, starts a timer, and checks answers when time expires. The supplied source does not show how the pages link to each other or how a score reaches the score page, so those relationships are left unclaimed. The score script excerpt is empty.

Main entry points: [`js/quiz.js`](https://github.com/boobesh776/thinkly/blob/main/js/quiz.js) (Question selection), [`pages/index.html`](https://github.com/boobesh776/thinkly/blob/main/pages/index.html) (Landing page), [`pages/sign_in.html`](https://github.com/boobesh776/thinkly/blob/main/pages/sign_in.html) (Sign-in page), [`pages/quiz.html`](https://github.com/boobesh776/thinkly/blob/main/pages/quiz.html) (Quiz page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Site pages"]
  node_landing["Landing page<br/>[index.html]"]
  node_signin["Sign-in page<br/>[sign_in.html]"]
  node_quizpage["Quiz page<br/>[quiz.html]"]
  node_scorepage["Score page<br/>[score.html]"]
end

subgraph group_quiz["Quiz runtime"]
  node_questionloader["Question selection<br/>[quiz.js]"]
  node_questionview["Question rendering<br/>[quiz.js]"]
  node_timer["Quiz timer<br/>[quiz.js]"]
  node_answercheck["Answer checking<br/>[quiz.js]"]
  node_scorecode["Score script<br/>[score.js]"]
end

subgraph group_content["Quiz content"]
  node_questionbank["Question bank<br/>[data.json]"]
end

node_visitor(("Visitor"))

node_questionloader -->|"fetches"| node_questionbank
node_questionloader -->|"renders"| node_questionview
node_questionloader -->|"starts"| node_timer
node_timer -->|"invokes"| node_answercheck
node_visitor -.->|"opens"| node_landing
node_visitor -.->|"opens"| node_signin
node_visitor -.->|"opens"| node_quizpage
node_visitor -.->|"opens"| node_scorepage

click node_landing "https://github.com/boobesh776/thinkly/blob/main/pages/index.html"
click node_signin "https://github.com/boobesh776/thinkly/blob/main/pages/sign_in.html"
click node_quizpage "https://github.com/boobesh776/thinkly/blob/main/pages/quiz.html"
click node_scorepage "https://github.com/boobesh776/thinkly/blob/main/pages/score.html"
click node_questionloader "https://github.com/boobesh776/thinkly/blob/main/js/quiz.js"
click node_questionview "https://github.com/boobesh776/thinkly/blob/main/js/quiz.js"
click node_timer "https://github.com/boobesh776/thinkly/blob/main/js/quiz.js"
click node_answercheck "https://github.com/boobesh776/thinkly/blob/main/js/quiz.js"
click node_scorecode "https://github.com/boobesh776/thinkly/blob/main/js/score.js"
click node_questionbank "https://github.com/boobesh776/thinkly/blob/main/assets/quizz_data/data.json"

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_landing,node_signin,node_quizpage,node_scorepage toneBlue
class node_questionloader,node_questionview,node_timer,node_answercheck,node_scorecode toneAmber
class node_questionbank toneMint
class node_visitor toneIndigo
```

## Components

### Site pages

- [Landing page](https://github.com/boobesh776/thinkly/blob/main/pages/index.html): `pages/index.html`
- [Sign-in page](https://github.com/boobesh776/thinkly/blob/main/pages/sign_in.html): `pages/sign_in.html`
- [Quiz page](https://github.com/boobesh776/thinkly/blob/main/pages/quiz.html): `pages/quiz.html`
- [Score page](https://github.com/boobesh776/thinkly/blob/main/pages/score.html): `pages/score.html`

### Quiz runtime

- [Question selection](https://github.com/boobesh776/thinkly/blob/main/js/quiz.js): `js/quiz.js`
- [Question rendering](https://github.com/boobesh776/thinkly/blob/main/js/quiz.js): `js/quiz.js`
- [Quiz timer](https://github.com/boobesh776/thinkly/blob/main/js/quiz.js): `js/quiz.js`
- [Answer checking](https://github.com/boobesh776/thinkly/blob/main/js/quiz.js): `js/quiz.js`
- [Score script](https://github.com/boobesh776/thinkly/blob/main/js/score.js): `js/score.js`

### Quiz content

- [Question bank](https://github.com/boobesh776/thinkly/blob/main/assets/quizz_data/data.json): `assets/quizz_data/data.json`

### Other components

- **Visitor**

## Connections

- Question selection → Question bank: fetches (evidence: `js/quiz.js`)
- Question selection → Question rendering: renders (evidence: `js/quiz.js`)
- Question selection → Quiz timer: starts (evidence: `js/quiz.js`)
- Quiz timer → Answer checking: invokes (evidence: `js/quiz.js`)
- Visitor → Landing page: opens
- Visitor → Sign-in page: opens
- Visitor → Quiz page: opens
- Visitor → Score page: opens
