# noge99/firelax-dev architecture

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

- Interactive diagram: https://gitdiagram.com/noge99/firelax-dev
- Repository: https://github.com/noge99/firelax-dev

## Overview

Firelax is a web application for configuring paramagnetic and diamagnetic relaxation models, plotting and fitting data, and exporting or retrieving profile files. The typical workflow is to open a model-specific page, enter or load profile data and parameters, then plot or fit results and save/export them. The map distinguishes the Java web entry/controllers, page templates, and browser-side model workflows. README content is absent, and several templates, controllers, and model scripts were not sampled, so some feature links are shown as unverified rather than asserting call paths.

Main entry points: [`src/main/java/com/firelax/HomeController.java`](https://github.com/noge99/firelax-dev/blob/main/src/main/java/com/firelax/HomeController.java) (Page controller), [`src/main/java/com/firelax/FileController.java`](https://github.com/noge99/firelax-dev/blob/main/src/main/java/com/firelax/FileController.java) (File endpoint), [`src/main/java/com/firelax/FirelaxApplication.java`](https://github.com/noge99/firelax-dev/blob/main/src/main/java/com/firelax/FirelaxApplication.java) (Spring Boot app), [`src/main/resources/templates/index.html`](https://github.com/noge99/firelax-dev/blob/main/src/main/resources/templates/index.html) (Home pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["Spring Boot app"]
  node_home["Page controller"]
  node_files["File endpoint"]
end

subgraph group_pages["Model pages"]
  node_index["Home pages<br/>[index.html]"]
  node_modelpages["Model templates"]
end

subgraph group_analysis["Browser analysis"]
  node_arrhenius["Arrhenius workflow"]
  node_correlation["Correlation workflow<br/>[paramag_corr.js]"]
  node_florence["Florence Indie model"]
  node_indie["Indie model<br/>[paramag_indie.js]"]
  node_diamag["Diamagnetic model"]
  node_bootstrap["UI interactions<br/>[bootstrap.js]"]
  node_legacybootstrap["Legacy UI<br/>[bootstrap.js]"]
end

node_user(("User"))
node_filesystem[("JSON files")]

node_user -->|"requests pages"| node_home
node_user -->|"requests file"| node_files
node_home -.->|"renders"| node_index
node_home -.->|"renders"| node_modelpages
node_files -->|"reads"| node_filesystem
node_user -.->|"enters parameters"| node_arrhenius
node_user -.->|"enters parameters"| node_correlation
node_user -.->|"uses model"| node_florence
node_user -.->|"uses model"| node_indie
node_user -.->|"uses model"| node_diamag
node_user -.->|"operates UI"| node_bootstrap
node_user -.->|"operates UI"| node_legacybootstrap
node_app -.->|"serves routes"| node_home

click node_app "https://github.com/noge99/firelax-dev/blob/main/src/main/java/com/firelax/FirelaxApplication.java"
click node_home "https://github.com/noge99/firelax-dev/blob/main/src/main/java/com/firelax/HomeController.java"
click node_files "https://github.com/noge99/firelax-dev/blob/main/src/main/java/com/firelax/FileController.java"
click node_index "https://github.com/noge99/firelax-dev/blob/main/src/main/resources/templates/index.html"
click node_modelpages "https://github.com/noge99/firelax-dev/tree/main/src/main/resources/templates"
click node_arrhenius "https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/paramag_arrhenius.js"
click node_correlation "https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/paramag_corr.js"
click node_florence "https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/paramag_florence_indie.js"
click node_indie "https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/paramag_indie.js"
click node_diamag "https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/diamag_ext_modelfree.js"
click node_bootstrap "https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/bootstrap.js"
click node_legacybootstrap "https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/bootstrap-4.3.1/bootstrap.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_app,node_home,node_files,node_user toneBlue
class node_index,node_modelpages,node_filesystem toneAmber
class node_arrhenius,node_correlation,node_florence,node_indie,node_diamag,node_bootstrap,node_legacybootstrap toneMint
```

## Components

### Web application

- [Spring Boot app](https://github.com/noge99/firelax-dev/blob/main/src/main/java/com/firelax/FirelaxApplication.java): `src/main/java/com/firelax/FirelaxApplication.java`
- [Page controller](https://github.com/noge99/firelax-dev/blob/main/src/main/java/com/firelax/HomeController.java): `src/main/java/com/firelax/HomeController.java`
- [File endpoint](https://github.com/noge99/firelax-dev/blob/main/src/main/java/com/firelax/FileController.java): `src/main/java/com/firelax/FileController.java`

### Model pages

- [Home pages](https://github.com/noge99/firelax-dev/blob/main/src/main/resources/templates/index.html): `src/main/resources/templates/index.html`
- [Model templates](https://github.com/noge99/firelax-dev/tree/main/src/main/resources/templates): `src/main/resources/templates`

### Browser analysis

- [Arrhenius workflow](https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/paramag_arrhenius.js): `src/main/resources/static/js/paramag_arrhenius.js`
- [Correlation workflow](https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/paramag_corr.js): `src/main/resources/static/js/paramag_corr.js`
- [Florence Indie model](https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/paramag_florence_indie.js): `src/main/resources/static/js/paramag_florence_indie.js`
- [Indie model](https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/paramag_indie.js): `src/main/resources/static/js/paramag_indie.js`
- [Diamagnetic model](https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/diamag_ext_modelfree.js): `src/main/resources/static/js/diamag_ext_modelfree.js`
- [UI interactions](https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/bootstrap.js): `src/main/resources/static/js/bootstrap.js`
- [Legacy UI](https://github.com/noge99/firelax-dev/blob/main/src/main/resources/static/js/bootstrap-4.3.1/bootstrap.js): `src/main/resources/static/js/bootstrap-4.3.1/bootstrap.js`

### Other components

- **User**
- **JSON files**

## Connections

- User → Page controller: requests pages (evidence: `src/main/java/com/firelax/HomeController.java`)
- User → File endpoint: requests file (evidence: `src/main/java/com/firelax/FileController.java`)
- Page controller → Home pages: renders
- Page controller → Model templates: renders
- File endpoint → JSON files: reads (evidence: `src/main/java/com/firelax/FileController.java`)
- User → Arrhenius workflow: enters parameters
- User → Correlation workflow: enters parameters
- User → Florence Indie model: uses model
- User → Indie model: uses model
- User → Diamagnetic model: uses model
- User → UI interactions: operates UI
- User → Legacy UI: operates UI
- Spring Boot app → Page controller: serves routes
