# 25-02058-max/nigatron---fix-me-maybe architecture

> Architecture diagram of the GitHub repository 25-02058-max/nigatron---fix-me-maybe, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/25-02058-max/nigatron---fix-me-maybe
- Repository: https://github.com/25-02058-max/nigatron---fix-me-maybe

## Overview

Fix Me Maybe is a local Java school-facility repair system. Students and faculty register or log in, submit photo-backed repair requests, and track status history and notifications; maintenance staff manage requests, facilities, users, and reporting. HTTP handlers route browser actions to services, which use JSON-backed storage and session/photo support. The README documents dashboard, CSV, profile, and search capabilities not fully visible in the excerpts; those are represented at their service boundary, without assuming unsampled call details.

Main entry points: [`src/fixmemaybe/server/ApiHandler.java`](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/ApiHandler.java) (API routes), [`src/fixmemaybe/data/DataStore.java`](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/DataStore.java) (JSON data store), [`src/fixmemaybe/service/RequestService.java`](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/RequestService.java) (Repair requests), [`src/fixmemaybe/data/SessionManager.java`](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/SessionManager.java) (Session manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_http["HTTP and sessions"]
  node_server["Web server<br/>[WebServer.java]"]
  node_api["API routes<br/>[ApiHandler.java]"]
  node_static["Web pages"]
  node_uploads["Upload access"]
end

subgraph group_services["Application services"]
  node_auth["Authentication<br/>[AuthService.java]"]
  node_requests["Repair requests"]
  node_facilities["Facility management"]
  node_notifications["Notifications"]
  node_users["User management<br/>[UserService.java]"]
end

subgraph group_domain["Repair domain"]
  node_models["Domain models"]
end

subgraph group_storage["Local data"]
  node_store[("JSON data store<br/>[DataStore.java]")]
  node_sessions[("Session manager")]
  node_photos[("Photo storage<br/>[PhotoStorage.java]")]
end

subgraph group_support["Shared support"]
  node_config["App configuration<br/>[AppConfig.java]"]
  node_json["JSON utilities<br/>[Json.java]"]
  node_errors["API errors"]
  node_httputil["HTTP utilities<br/>[HttpUtil.java]"]
end

node_browser(("Browser users"))

node_browser -.->|"sends requests"| node_server
node_server -->|"routes API"| node_api
node_server -->|"serves pages"| node_static
node_server -->|"routes uploads"| node_uploads
node_api -->|"dispatches auth"| node_auth
node_api -->|"dispatches requests"| node_requests
node_api -->|"dispatches facilities"| node_facilities
node_api -->|"dispatches notifications"| node_notifications
node_api -->|"dispatches users"| node_users
node_api -->|"checks sessions"| node_sessions
node_api -->|"reads settings"| node_config
node_requests -->|"reads and saves"| node_store
node_requests -->|"stores photos"| node_photos
node_requests -->|"notifies status"| node_notifications
node_facilities -->|"reads and saves"| node_store
node_notifications -->|"persists alerts"| node_store
node_users -->|"updates accounts"| node_store
node_users -->|"stores photos"| node_photos
node_users -->|"revokes sessions"| node_sessions
node_auth -->|"looks up users"| node_store
node_auth -->|"checks admin rules"| node_config
node_store -->|"parses and writes"| node_json
node_sessions -->|"persists sessions"| node_json
node_sessions -->|"writes session file"| node_store
node_store -->|"loads and saves"| node_models
node_requests -->|"creates and updates"| node_models
node_api -->|"handles API errors"| node_errors
node_api -->|"uses HTTP helpers"| node_httputil
node_uploads -->|"checks access"| node_sessions

click node_server "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/WebServer.java"
click node_api "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/ApiHandler.java"
click node_static "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/StaticFileHandler.java"
click node_uploads "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/UploadsHandler.java"
click node_auth "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/AuthService.java"
click node_requests "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/RequestService.java"
click node_facilities "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/FacilityService.java"
click node_notifications "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/NotificationService.java"
click node_users "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/UserService.java"
click node_models "https://github.com/25-02058-max/nigatron---fix-me-maybe/tree/main/src/fixmemaybe/model"
click node_store "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/DataStore.java"
click node_sessions "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/SessionManager.java"
click node_photos "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/PhotoStorage.java"
click node_config "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/AppConfig.java"
click node_json "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/util/Json.java"
click node_errors "https://github.com/25-02058-max/nigatron---fix-me-maybe/tree/main/src/fixmemaybe/exception"
click node_httputil "https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/HttpUtil.java"

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_server,node_api,node_static,node_uploads,node_browser toneBlue
class node_auth,node_requests,node_facilities,node_notifications,node_users toneAmber
class node_models toneMint
class node_store,node_sessions,node_photos toneRose
class node_config,node_json,node_errors,node_httputil toneIndigo
```

## Components

### HTTP and sessions

- [Web server](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/WebServer.java): `src/fixmemaybe/server/WebServer.java`
- [API routes](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/ApiHandler.java): `src/fixmemaybe/server/ApiHandler.java`
- [Web pages](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/StaticFileHandler.java): `src/fixmemaybe/server/StaticFileHandler.java`
- [Upload access](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/UploadsHandler.java): `src/fixmemaybe/server/UploadsHandler.java`

### Application services

- [Authentication](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/AuthService.java): `src/fixmemaybe/service/AuthService.java`
- [Repair requests](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/RequestService.java): `src/fixmemaybe/service/RequestService.java`
- [Facility management](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/FacilityService.java): `src/fixmemaybe/service/FacilityService.java`
- [Notifications](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/NotificationService.java): `src/fixmemaybe/service/NotificationService.java`
- [User management](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/service/UserService.java): `src/fixmemaybe/service/UserService.java`

### Repair domain

- [Domain models](https://github.com/25-02058-max/nigatron---fix-me-maybe/tree/main/src/fixmemaybe/model): `src/fixmemaybe/model`

### Local data

- [JSON data store](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/DataStore.java): `src/fixmemaybe/data/DataStore.java`
- [Session manager](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/SessionManager.java): `src/fixmemaybe/data/SessionManager.java`
- [Photo storage](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/PhotoStorage.java): `src/fixmemaybe/data/PhotoStorage.java`

### Shared support

- [App configuration](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/data/AppConfig.java): `src/fixmemaybe/data/AppConfig.java`
- [JSON utilities](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/util/Json.java): `src/fixmemaybe/util/Json.java`
- [API errors](https://github.com/25-02058-max/nigatron---fix-me-maybe/tree/main/src/fixmemaybe/exception): `src/fixmemaybe/exception`
- [HTTP utilities](https://github.com/25-02058-max/nigatron---fix-me-maybe/blob/main/src/fixmemaybe/server/HttpUtil.java): `src/fixmemaybe/server/HttpUtil.java`

### Other components

- **Browser users**

## Connections

- Browser users → Web server: sends requests (evidence: `README.md`)
- Web server → API routes: routes API (evidence: `src/fixmemaybe/server/WebServer.java`)
- Web server → Web pages: serves pages (evidence: `src/fixmemaybe/server/WebServer.java`)
- Web server → Upload access: routes uploads (evidence: `src/fixmemaybe/server/WebServer.java`)
- API routes → Authentication: dispatches auth (evidence: `src/fixmemaybe/server/ApiHandler.java`)
- API routes → Repair requests: dispatches requests (evidence: `src/fixmemaybe/server/ApiHandler.java`)
- API routes → Facility management: dispatches facilities (evidence: `src/fixmemaybe/server/ApiHandler.java`)
- API routes → Notifications: dispatches notifications (evidence: `src/fixmemaybe/server/ApiHandler.java`)
- API routes → User management: dispatches users (evidence: `src/fixmemaybe/server/ApiHandler.java`)
- API routes → Session manager: checks sessions (evidence: `src/fixmemaybe/server/ApiHandler.java`)
- API routes → App configuration: reads settings (evidence: `src/fixmemaybe/server/ApiHandler.java`)
- Repair requests → JSON data store: reads and saves (evidence: `src/fixmemaybe/service/RequestService.java`)
- Repair requests → Photo storage: stores photos (evidence: `src/fixmemaybe/service/RequestService.java`)
- Repair requests → Notifications: notifies status (evidence: `src/fixmemaybe/service/RequestService.java`)
- Facility management → JSON data store: reads and saves (evidence: `src/fixmemaybe/service/FacilityService.java`)
- Notifications → JSON data store: persists alerts (evidence: `src/fixmemaybe/service/NotificationService.java`)
- User management → JSON data store: updates accounts (evidence: `src/fixmemaybe/service/UserService.java`)
- User management → Photo storage: stores photos (evidence: `src/fixmemaybe/service/UserService.java`)
- User management → Session manager: revokes sessions (evidence: `src/fixmemaybe/service/UserService.java`)
- Authentication → JSON data store: looks up users (evidence: `src/fixmemaybe/service/AuthService.java`)
- Authentication → App configuration: checks admin rules (evidence: `src/fixmemaybe/service/AuthService.java`)
- JSON data store → JSON utilities: parses and writes (evidence: `src/fixmemaybe/data/DataStore.java`)
- Session manager → JSON utilities: persists sessions (evidence: `src/fixmemaybe/data/SessionManager.java`)
- Session manager → JSON data store: writes session file (evidence: `src/fixmemaybe/data/SessionManager.java`)
- JSON data store → Domain models: loads and saves (evidence: `src/fixmemaybe/data/DataStore.java`)
- Repair requests → Domain models: creates and updates (evidence: `src/fixmemaybe/service/RequestService.java`)
- API routes → API errors: handles API errors (evidence: `src/fixmemaybe/server/ApiHandler.java`)
- API routes → HTTP utilities: uses HTTP helpers (evidence: `src/fixmemaybe/server/ApiHandler.java`)
- Upload access → Session manager: checks access (evidence: `src/fixmemaybe/server/UploadsHandler.java`)
