# aperta-project/aperta architecture

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

- Interactive diagram: https://gitdiagram.com/aperta-project/aperta
- Repository: https://github.com/aperta-project/aperta

## Overview

Aperta is a Rails/Ember platform for research-output submission and peer review. Its documented user workflow starts in the browser, enters Rails routes and domain controllers, and supports journal-configured paper workflows, editorial/reviewer decisions, collaboration, and manuscript delivery. The tree also shows dedicated authorization, file handling, notifications, similarity checking, and production/export capabilities. Source excerpts are limited, so edges are included only where routes, README statements, or shown controller behavior support them; unsampled feature connections are not asserted.

Main entry points: [`config/routes.rb`](https://github.com/aperta-project/aperta/blob/develop/config/routes.rb) (Rails API routes), [`app/controllers/reviewer_reports_controller.rb`](https://github.com/aperta-project/aperta/blob/develop/app/controllers/reviewer_reports_controller.rb) (Reviewer reports), [`app/controllers/tahi_standard_tasks/reviewer_recommendations_controller.rb`](https://github.com/aperta-project/aperta/blob/develop/app/controllers/tahi_standard_tasks/reviewer_recommendations_controller.rb) (Reviewer recommendations), [`client/app/pods/application/route.js`](https://github.com/aperta-project/aperta/blob/develop/client/app/pods/application/route.js) (Ember client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Browser experience"]
  node_ember["Ember client<br/>[route.js]"]
  node_paperui["Paper workflow UI<br/>[controller.js]"]
end

subgraph group_workflow["Submission and review"]
  node_routes["Rails API routes<br/>[routes.rb]"]
  node_papers["Paper submission"]
  node_tasks["Workflow tasks"]
  node_reviewreports["Reviewer reports"]
  node_recommendations["Reviewer recommendations"]
  node_decisions["Editorial decisions"]
  node_discussions["Discussions"]
  node_files["Manuscript files"]
end

subgraph group_governance["Journal administration"]
  node_templates["Journal workflow templates"]
  node_journals["Journal administration"]
end

subgraph group_platform["Platform services"]
  node_authorization["Authorization engine<br/>[query.rb]"]
  node_storage[("PostgreSQL")]
  node_objectstore[("AWS S3")]
  node_similarity["Similarity checking"]
  node_export["Publishing export<br/>[export_packager.rb]"]
  node_email["Email notifications"]
  node_events["Live event stream"]
end

node_people(("Authors and editors"))

node_people -->|"use interface"| node_ember
node_ember -->|"request pages"| node_routes
node_people -.->|"submit requests"| node_routes
node_routes -->|"route papers"| node_papers
node_routes -->|"route templates"| node_templates
node_routes -->|"route decisions"| node_decisions
node_routes -->|"route discussions"| node_discussions
node_routes -->|"route attachments"| node_files
node_routes -.->|"route recommendations"| node_recommendations
node_routes -.->|"route reports"| node_reviewreports
node_paperui -.->|"request workflow"| node_routes
node_reviewreports -->|"load report"| node_storage
node_reviewreports -->|"check edit access"| node_authorization
node_recommendations -->|"save recommendations"| node_storage
node_recommendations -->|"check edit access"| node_authorization
node_papers -.->|"manage papers"| node_storage
node_files -.->|"store uploads"| node_objectstore
node_templates -.->|"configure templates"| node_storage
node_journals -.->|"manage journals"| node_storage
node_tasks -.->|"manage tasks"| node_storage
node_decisions -.->|"record decisions"| node_storage
node_similarity -.->|"record checks"| node_storage
node_export -.->|"read paper data"| node_storage
node_email -.->|"send notifications"| node_people
node_events -.->|"stream updates"| node_people

click node_ember "https://github.com/aperta-project/aperta/blob/develop/client/app/pods/application/route.js"
click node_paperui "https://github.com/aperta-project/aperta/blob/develop/client/app/pods/paper/workflow/controller.js"
click node_routes "https://github.com/aperta-project/aperta/blob/develop/config/routes.rb"
click node_papers "https://github.com/aperta-project/aperta/blob/develop/app/controllers/papers_controller.rb"
click node_tasks "https://github.com/aperta-project/aperta/blob/develop/app/controllers/tasks_controller.rb"
click node_reviewreports "https://github.com/aperta-project/aperta/blob/develop/app/controllers/reviewer_reports_controller.rb"
click node_recommendations "https://github.com/aperta-project/aperta/blob/develop/app/controllers/tahi_standard_tasks/reviewer_recommendations_controller.rb"
click node_decisions "https://github.com/aperta-project/aperta/blob/develop/app/controllers/decisions_controller.rb"
click node_discussions "https://github.com/aperta-project/aperta/blob/develop/app/controllers/discussion_topics_controller.rb"
click node_files "https://github.com/aperta-project/aperta/blob/develop/app/controllers/manuscript_attachments_controller.rb"
click node_templates "https://github.com/aperta-project/aperta/blob/develop/app/controllers/manuscript_manager_templates_controller.rb"
click node_journals "https://github.com/aperta-project/aperta/blob/develop/app/controllers/admin/journals_controller.rb"
click node_authorization "https://github.com/aperta-project/aperta/blob/develop/app/models/authorizations/query.rb"
click node_similarity "https://github.com/aperta-project/aperta/blob/develop/app/services/automated_similarity_check.rb"
click node_export "https://github.com/aperta-project/aperta/blob/develop/app/services/export_packager.rb"
click node_email "https://github.com/aperta-project/aperta/blob/develop/app/mailers/application_mailer.rb"
click node_events "https://github.com/aperta-project/aperta/blob/develop/app/controllers/event_stream_controller.rb"

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_ember,node_paperui toneBlue
class node_routes,node_papers,node_tasks,node_reviewreports,node_recommendations,node_decisions,node_discussions,node_files toneAmber
class node_templates,node_journals toneMint
class node_authorization,node_storage,node_objectstore,node_similarity,node_export,node_email,node_events toneRose
class node_people toneIndigo
```

## Components

### Browser experience

- [Ember client](https://github.com/aperta-project/aperta/blob/develop/client/app/pods/application/route.js): `client/app/pods/application/route.js`
- [Paper workflow UI](https://github.com/aperta-project/aperta/blob/develop/client/app/pods/paper/workflow/controller.js): `client/app/pods/paper/workflow/controller.js`

### Submission and review

- [Rails API routes](https://github.com/aperta-project/aperta/blob/develop/config/routes.rb): `config/routes.rb`
- [Paper submission](https://github.com/aperta-project/aperta/blob/develop/app/controllers/papers_controller.rb): `app/controllers/papers_controller.rb`
- [Workflow tasks](https://github.com/aperta-project/aperta/blob/develop/app/controllers/tasks_controller.rb): `app/controllers/tasks_controller.rb`
- [Reviewer reports](https://github.com/aperta-project/aperta/blob/develop/app/controllers/reviewer_reports_controller.rb): `app/controllers/reviewer_reports_controller.rb`
- [Reviewer recommendations](https://github.com/aperta-project/aperta/blob/develop/app/controllers/tahi_standard_tasks/reviewer_recommendations_controller.rb): `app/controllers/tahi_standard_tasks/reviewer_recommendations_controller.rb`
- [Editorial decisions](https://github.com/aperta-project/aperta/blob/develop/app/controllers/decisions_controller.rb): `app/controllers/decisions_controller.rb`
- [Discussions](https://github.com/aperta-project/aperta/blob/develop/app/controllers/discussion_topics_controller.rb): `app/controllers/discussion_topics_controller.rb`
- [Manuscript files](https://github.com/aperta-project/aperta/blob/develop/app/controllers/manuscript_attachments_controller.rb): `app/controllers/manuscript_attachments_controller.rb`

### Journal administration

- [Journal workflow templates](https://github.com/aperta-project/aperta/blob/develop/app/controllers/manuscript_manager_templates_controller.rb): `app/controllers/manuscript_manager_templates_controller.rb`
- [Journal administration](https://github.com/aperta-project/aperta/blob/develop/app/controllers/admin/journals_controller.rb): `app/controllers/admin/journals_controller.rb`

### Platform services

- [Authorization engine](https://github.com/aperta-project/aperta/blob/develop/app/models/authorizations/query.rb): `app/models/authorizations/query.rb`
- **PostgreSQL**
- **AWS S3**
- [Similarity checking](https://github.com/aperta-project/aperta/blob/develop/app/services/automated_similarity_check.rb): `app/services/automated_similarity_check.rb`
- [Publishing export](https://github.com/aperta-project/aperta/blob/develop/app/services/export_packager.rb): `app/services/export_packager.rb`
- [Email notifications](https://github.com/aperta-project/aperta/blob/develop/app/mailers/application_mailer.rb): `app/mailers/application_mailer.rb`
- [Live event stream](https://github.com/aperta-project/aperta/blob/develop/app/controllers/event_stream_controller.rb): `app/controllers/event_stream_controller.rb`

### Other components

- **Authors and editors**

## Connections

- Authors and editors → Ember client: use interface (evidence: `README.md`)
- Ember client → Rails API routes: request pages (evidence: `config/routes.rb`)
- Authors and editors → Rails API routes: submit requests
- Rails API routes → Paper submission: route papers (evidence: `config/routes.rb`)
- Rails API routes → Journal workflow templates: route templates (evidence: `config/routes.rb`)
- Rails API routes → Editorial decisions: route decisions (evidence: `config/routes.rb`)
- Rails API routes → Discussions: route discussions (evidence: `config/routes.rb`)
- Rails API routes → Manuscript files: route attachments (evidence: `config/routes.rb`)
- Rails API routes → Reviewer recommendations: route recommendations
- Rails API routes → Reviewer reports: route reports
- Paper workflow UI → Rails API routes: request workflow
- Reviewer reports → PostgreSQL: load report (evidence: `app/controllers/reviewer_reports_controller.rb`)
- Reviewer reports → Authorization engine: check edit access (evidence: `app/controllers/reviewer_reports_controller.rb`)
- Reviewer recommendations → PostgreSQL: save recommendations (evidence: `app/controllers/tahi_standard_tasks/reviewer_recommendations_controller.rb`)
- Reviewer recommendations → Authorization engine: check edit access (evidence: `app/controllers/tahi_standard_tasks/reviewer_recommendations_controller.rb`)
- Paper submission → PostgreSQL: manage papers
- Manuscript files → AWS S3: store uploads
- Journal workflow templates → PostgreSQL: configure templates
- Journal administration → PostgreSQL: manage journals
- Workflow tasks → PostgreSQL: manage tasks
- Editorial decisions → PostgreSQL: record decisions
- Similarity checking → PostgreSQL: record checks
- Publishing export → PostgreSQL: read paper data
- Email notifications → Authors and editors: send notifications
- Live event stream → Authors and editors: stream updates
