# fchfaz/persona architecture

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

- Interactive diagram: https://gitdiagram.com/fchfaz/persona
- Repository: https://github.com/fchfaz/persona

## Overview

Persona is a static personality-test site. The intended workflow is to choose a test and language, answer its questions, and view a scored profile. The sampled test scripts contain question state, scoring, and result rendering in each assessment implementation; there is no shared backend or persistence layer shown. Homepage-to-test and language-page wiring is not visible in the excerpts, so those links are marked unverified rather than treated as inspected calls.

Main entry points: [`index.html`](https://github.com/fchfaz/persona/blob/main/index.html) (Test catalog), [`attachment/attachment.js`](https://github.com/fchfaz/persona/blob/main/attachment/attachment.js) (Attachment quiz), [`dark-triad/dark-triad.js`](https://github.com/fchfaz/persona/blob/main/dark-triad/dark-triad.js) (Dark Triad quiz), [`enneagram/enneagram.js`](https://github.com/fchfaz/persona/blob/main/enneagram/enneagram.js) (Enneagram quiz)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site entry"]
  node_home["Test catalog<br/>[index.html]"]
end

subgraph group_assessment["Assessments"]
  node_attachment_en["Attachment quiz<br/>[attachment.js]"]
  node_dark_en["Dark Triad quiz<br/>[dark-triad.js]"]
  node_enneagram_en["Enneagram quiz<br/>[enneagram.js]"]
  node_ocean_en["Big Five quiz<br/>[ocean.js]"]
end

subgraph group_localized["Localized assessments"]
  node_attachment_id["Attachment quiz &#40;ID&#41;<br/>[attachment-id.js]"]
  node_dark_id["Dark Triad quiz &#40;ID&#41;<br/>[dark-triad-id.js]"]
  node_enneagram_id["Enneagram quiz &#40;ID&#41;<br/>[enneagram-id.js]"]
  node_ocean_id["Big Five quiz &#40;ID&#41;<br/>[ocean-id.js]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens"| node_home
node_home -.->|"selects test"| node_attachment_en
node_home -.->|"selects test"| node_dark_en
node_home -.->|"selects test"| node_enneagram_en
node_home -.->|"selects test"| node_ocean_en
node_home -.->|"selects test"| node_attachment_id
node_home -.->|"selects test"| node_dark_id
node_home -.->|"selects test"| node_enneagram_id
node_home -.->|"selects test"| node_ocean_id

click node_home "https://github.com/fchfaz/persona/blob/main/index.html"
click node_attachment_en "https://github.com/fchfaz/persona/blob/main/attachment/attachment.js"
click node_dark_en "https://github.com/fchfaz/persona/blob/main/dark-triad/dark-triad.js"
click node_enneagram_en "https://github.com/fchfaz/persona/blob/main/enneagram/enneagram.js"
click node_ocean_en "https://github.com/fchfaz/persona/blob/main/ocean/ocean.js"
click node_attachment_id "https://github.com/fchfaz/persona/blob/main/attachment/attachment-id.js"
click node_dark_id "https://github.com/fchfaz/persona/blob/main/dark-triad/dark-triad-id.js"
click node_enneagram_id "https://github.com/fchfaz/persona/blob/main/enneagram/enneagram-id.js"
click node_ocean_id "https://github.com/fchfaz/persona/blob/main/ocean/ocean-id.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_home toneBlue
class node_attachment_en,node_dark_en,node_enneagram_en,node_ocean_en toneAmber
class node_attachment_id,node_dark_id,node_enneagram_id,node_ocean_id toneMint
class node_visitor toneIndigo
```

## Components

### Site entry

- [Test catalog](https://github.com/fchfaz/persona/blob/main/index.html): `index.html`

### Assessments

- [Attachment quiz](https://github.com/fchfaz/persona/blob/main/attachment/attachment.js): `attachment/attachment.js`
- [Dark Triad quiz](https://github.com/fchfaz/persona/blob/main/dark-triad/dark-triad.js): `dark-triad/dark-triad.js`
- [Enneagram quiz](https://github.com/fchfaz/persona/blob/main/enneagram/enneagram.js): `enneagram/enneagram.js`
- [Big Five quiz](https://github.com/fchfaz/persona/blob/main/ocean/ocean.js): `ocean/ocean.js`

### Localized assessments

- [Attachment quiz (ID)](https://github.com/fchfaz/persona/blob/main/attachment/attachment-id.js): `attachment/attachment-id.js`
- [Dark Triad quiz (ID)](https://github.com/fchfaz/persona/blob/main/dark-triad/dark-triad-id.js): `dark-triad/dark-triad-id.js`
- [Enneagram quiz (ID)](https://github.com/fchfaz/persona/blob/main/enneagram/enneagram-id.js): `enneagram/enneagram-id.js`
- [Big Five quiz (ID)](https://github.com/fchfaz/persona/blob/main/ocean/ocean-id.js): `ocean/ocean-id.js`

### Other components

- **Visitor**

## Connections

- Visitor → Test catalog: opens
- Test catalog → Attachment quiz: selects test
- Test catalog → Dark Triad quiz: selects test
- Test catalog → Enneagram quiz: selects test
- Test catalog → Big Five quiz: selects test
- Test catalog → Attachment quiz (ID): selects test
- Test catalog → Dark Triad quiz (ID): selects test
- Test catalog → Enneagram quiz (ID): selects test
- Test catalog → Big Five quiz (ID): selects test
