# themost-framework/themost architecture

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

- Interactive diagram: https://gitdiagram.com/themost-framework/themost
- Repository: https://github.com/themost-framework/themost

## Overview

MOST is a Node.js framework for data-driven web applications and services. Its documented request workflow maps configured routes to decorated HTTP controller actions, which return HTTP results; view results can be rendered by supported template engines. The repository tree also identifies the framework’s data, query, common, web, and XML packages, plus OData-related specs, but their implementations were not sampled. The graph therefore preserves these product areas without inferring their internal call flow; route and view-engine relationships are based on the README.

Main entry points: [`modules/@themost/web`](https://github.com/themost-framework/themost/tree/master/modules/%40themost/web) (HTTP controllers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web framework"]
  node_routing["HTTP routing"]
  node_controllers["HTTP controllers"]
  node_httpresults["HTTP results"]
  node_viewengines["View engines"]
end

subgraph group_data["Data platform"]
  node_models["Data models"]
  node_privileges["Model privileges"]
  node_query["Query processing"]
  node_odata["OData support"]
end

subgraph group_shared["Shared packages"]
  node_common["Common utilities"]
  node_xml["XML support"]
end

node_user(("Application user"))

node_user -->|"sends request"| node_routing
node_routing -->|"routes request"| node_controllers
node_controllers -->|"returns result"| node_httpresults
node_controllers -->|"renders view"| node_viewengines

click node_routing "https://github.com/themost-framework/themost/tree/master/modules/%40themost/web"
click node_controllers "https://github.com/themost-framework/themost/tree/master/modules/%40themost/web"
click node_httpresults "https://github.com/themost-framework/themost/tree/master/modules/%40themost/web"
click node_viewengines "https://github.com/themost-framework/themost/tree/master/modules/%40themost/web"
click node_models "https://github.com/themost-framework/themost/tree/master/modules/%40themost/data"
click node_privileges "https://github.com/themost-framework/themost/tree/master/modules/%40themost/data"
click node_query "https://github.com/themost-framework/themost/tree/master/modules/%40themost/query"
click node_odata "https://github.com/themost-framework/themost/tree/master/modules/%40themost/data"
click node_common "https://github.com/themost-framework/themost/tree/master/modules/%40themost/common"
click node_xml "https://github.com/themost-framework/themost/tree/master/modules/%40themost/xml"

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_routing,node_controllers,node_httpresults,node_viewengines,node_user toneBlue
class node_models,node_privileges,node_query,node_odata toneAmber
class node_common,node_xml toneMint
```

## Components

### Web framework

- [HTTP routing](https://github.com/themost-framework/themost/tree/master/modules/%40themost/web): `modules/@themost/web`
- [HTTP controllers](https://github.com/themost-framework/themost/tree/master/modules/%40themost/web): `modules/@themost/web`
- [HTTP results](https://github.com/themost-framework/themost/tree/master/modules/%40themost/web): `modules/@themost/web`
- [View engines](https://github.com/themost-framework/themost/tree/master/modules/%40themost/web): `modules/@themost/web`

### Data platform

- [Data models](https://github.com/themost-framework/themost/tree/master/modules/%40themost/data): `modules/@themost/data`
- [Model privileges](https://github.com/themost-framework/themost/tree/master/modules/%40themost/data): `modules/@themost/data`
- [Query processing](https://github.com/themost-framework/themost/tree/master/modules/%40themost/query): `modules/@themost/query`
- [OData support](https://github.com/themost-framework/themost/tree/master/modules/%40themost/data): `modules/@themost/data`

### Shared packages

- [Common utilities](https://github.com/themost-framework/themost/tree/master/modules/%40themost/common): `modules/@themost/common`
- [XML support](https://github.com/themost-framework/themost/tree/master/modules/%40themost/xml): `modules/@themost/xml`

### Other components

- **Application user**

## Connections

- Application user → HTTP routing: sends request (evidence: `README.md`)
- HTTP routing → HTTP controllers: routes request (evidence: `README.md`)
- HTTP controllers → HTTP results: returns result (evidence: `README.md`)
- HTTP controllers → View engines: renders view (evidence: `README.md`)
