# lola75/lolameshanalyzer architecture

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

- Interactive diagram: https://gitdiagram.com/lola75/lolameshanalyzer
- Repository: https://github.com/lola75/lolameshanalyzer

## Overview

Analizzatore di Mesh 3D is documented as a browser-based mesh viewer and metadata editor, with an additional mesh-alignment capability. Its README describes the upload-to-analysis workflow, but the supplied tree contains no `src/` files, so those UI and processing modules cannot be attributed to verified source paths. The sampled `server.js` separately implements static hosting and in-memory chat/online-user endpoints. The edges for the mesh workflow reflect README statements; chat edges reflect the server excerpt.

Main entry points: [`server.js`](https://github.com/lola75/lolameshanalyzer/blob/main/server.js) (HTTP and Socket.IO server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mesh["Mesh analysis"]
  node_upload["Mesh upload"]
  node_format_loaders["Format loaders"]
  node_viewer["3D viewer"]
  node_alignment["Mesh alignment"]
end

subgraph group_metadata["Metadata"]
  node_extractor["Metadata extraction"]
  node_editor["Metadata editor"]
  node_json_export["JSON export"]
end

subgraph group_collaboration["Live collaboration"]
  node_browser["Browser client"]
  node_chat_api["Chat history API<br/>[server.js]"]
  node_users_api["Online users API<br/>[server.js]"]
  node_socket_events["Socket events<br/>[server.js]"]
  node_memory[("In-memory chat state<br/>[server.js]")]
end

subgraph group_hosting["Web hosting"]
  node_http_server["HTTP and Socket.IO server<br/>[server.js]"]
  node_static_files["Static app files<br/>[server.js]"]
end

node_user(("User"))

node_user -->|"uploads mesh"| node_upload
node_upload -->|"loads STL OBJ PLY"| node_format_loaders
node_format_loaders -->|"renders model"| node_viewer
node_viewer -.->|"supports alignment"| node_alignment
node_format_loaders -->|"extracts metadata"| node_extractor
node_extractor -->|"presents metadata"| node_editor
node_user -->|"edits metadata"| node_editor
node_editor -->|"exports JSON"| node_json_export
node_browser -->|"connects to"| node_http_server
node_http_server -->|"serves files"| node_static_files
node_http_server -->|"routes users"| node_users_api
node_http_server -->|"routes history"| node_chat_api
node_http_server -->|"handles events"| node_socket_events
node_chat_api -->|"reads history"| node_memory
node_socket_events -->|"stores messages"| node_memory
node_users_api -->|"reads users"| node_memory
node_socket_events -->|"emits updates"| node_browser

click node_chat_api "https://github.com/lola75/lolameshanalyzer/blob/main/server.js"
click node_users_api "https://github.com/lola75/lolameshanalyzer/blob/main/server.js"
click node_socket_events "https://github.com/lola75/lolameshanalyzer/blob/main/server.js"
click node_memory "https://github.com/lola75/lolameshanalyzer/blob/main/server.js"
click node_http_server "https://github.com/lola75/lolameshanalyzer/blob/main/server.js"
click node_static_files "https://github.com/lola75/lolameshanalyzer/blob/main/server.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_upload,node_format_loaders,node_viewer,node_alignment,node_user toneBlue
class node_extractor,node_editor,node_json_export toneAmber
class node_browser,node_chat_api,node_users_api,node_socket_events,node_memory toneMint
class node_http_server,node_static_files toneRose
```

## Components

### Mesh analysis

- **Mesh upload**
- **Format loaders**
- **3D viewer**
- **Mesh alignment**

### Metadata

- **Metadata extraction**
- **Metadata editor**
- **JSON export**

### Live collaboration

- **Browser client**
- [Chat history API](https://github.com/lola75/lolameshanalyzer/blob/main/server.js): `server.js`
- [Online users API](https://github.com/lola75/lolameshanalyzer/blob/main/server.js): `server.js`
- [Socket events](https://github.com/lola75/lolameshanalyzer/blob/main/server.js): `server.js`
- [In-memory chat state](https://github.com/lola75/lolameshanalyzer/blob/main/server.js): `server.js`

### Web hosting

- [HTTP and Socket.IO server](https://github.com/lola75/lolameshanalyzer/blob/main/server.js): `server.js`
- [Static app files](https://github.com/lola75/lolameshanalyzer/blob/main/server.js): `server.js`

### Other components

- **User**

## Connections

- User → Mesh upload: uploads mesh (evidence: `README.md`)
- Mesh upload → Format loaders: loads STL OBJ PLY (evidence: `README.md`)
- Format loaders → 3D viewer: renders model (evidence: `README.md`)
- 3D viewer → Mesh alignment: supports alignment (evidence: `README.md`)
- Format loaders → Metadata extraction: extracts metadata (evidence: `README.md`)
- Metadata extraction → Metadata editor: presents metadata (evidence: `README.md`)
- User → Metadata editor: edits metadata (evidence: `README.md`)
- Metadata editor → JSON export: exports JSON (evidence: `README.md`)
- Browser client → HTTP and Socket.IO server: connects to (evidence: `server.js`)
- HTTP and Socket.IO server → Static app files: serves files (evidence: `server.js`)
- HTTP and Socket.IO server → Online users API: routes users (evidence: `server.js`)
- HTTP and Socket.IO server → Chat history API: routes history (evidence: `server.js`)
- HTTP and Socket.IO server → Socket events: handles events (evidence: `server.js`)
- Chat history API → In-memory chat state: reads history (evidence: `server.js`)
- Socket events → In-memory chat state: stores messages (evidence: `server.js`)
- Online users API → In-memory chat state: reads users (evidence: `server.js`)
- Socket events → Browser client: emits updates (evidence: `server.js`)
