# akashkonnoju/project-polar architecture

> Architecture diagram of the GitHub repository akashkonnoju/project-polar, 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/akashkonnoju/project-polar
- Repository: https://github.com/akashkonnoju/project-polar

## Overview

Polar Science Portal is a web application for browsing polar-science topics, research, media, locations, datasets and resources, with search and account registration/login. The browser workflow is shown directly for research: the research page fetches the API, whose routed view serializes results backed by Django models; administrators can submit research through a separate form. The frontend modules indicate additional domain areas, but their API wiring was not sampled. The graph reflects those capabilities without asserting unverified connections.

Main entry points: [`api/urls.py`](https://github.com/akashkonnoju/project-polar/blob/main/api/urls.py) (API routing), [`api/views.py`](https://github.com/akashkonnoju/project-polar/blob/main/api/views.py) (API handlers), [`api/serializers.py`](https://github.com/akashkonnoju/project-polar/blob/main/api/serializers.py) (Data serializers), [`frontend/js/research.js`](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/research.js) (Research browser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Portal interface"]
  node_research_ui["Research browser<br/>[research.js]"]
  node_research_admin["Research admin form<br/>[research-admin.js]"]
  node_knowledge_ui["Knowledge browser<br/>[knowledge.js]"]
  node_media_ui["Media browser<br/>[media.js]"]
  node_locations_ui["Polar locations<br/>[locations.js]"]
  node_search_ui["Portal search<br/>[search.js]"]
  node_resources_ui["Resource browser<br/>[resources.js]"]
  node_topic_ui["Topic pages<br/>[topic.js]"]
  node_auth_ui["Account access<br/>[login.js]"]
  node_register_ui["Registration<br/>[register.js]"]
end

subgraph group_api["API services"]
  node_api_routes["API routing<br/>[urls.py]"]
  node_api_views["API handlers<br/>[views.py]"]
  node_serializers["Data serializers<br/>[serializers.py]"]
end

subgraph group_domain["Science content"]
  node_research_data[("Research records<br/>[models.py]")]
  node_science_data[("Topics and datasets<br/>[models.py]")]
  node_portal_data[("Knowledge, media, locations<br/>[models.py]")]
  node_resource_data[("Resource catalog<br/>[models.py]")]
end

subgraph group_infra["Persistence and setup"]
  node_config["Django configuration<br/>[settings.py]"]
end

node_visitor(("Portal user"))
node_mysql[("MySQL database")]

node_visitor -->|"browses"| node_research_ui
node_research_ui -->|"fetches research"| node_api_routes
node_research_admin -->|"posts research"| node_api_routes
node_api_routes -->|"routes requests"| node_api_views
node_api_views -->|"serializes results"| node_serializers
node_api_views -->|"queries research"| node_research_data
node_api_views -->|"queries science data"| node_science_data
node_api_views -->|"queries portal content"| node_portal_data
node_api_views -->|"queries resources"| node_resource_data
node_serializers -->|"serializes model"| node_research_data
node_serializers -->|"serializes models"| node_science_data
node_serializers -->|"serializes models"| node_portal_data
node_serializers -->|"serializes model"| node_resource_data
node_config -->|"configures"| node_mysql
node_knowledge_ui -.->|"uses API"| node_api_routes
node_media_ui -.->|"uses API"| node_api_routes
node_locations_ui -.->|"uses API"| node_api_routes
node_search_ui -.->|"uses API"| node_api_routes
node_resources_ui -.->|"uses API"| node_api_routes
node_topic_ui -.->|"uses API"| node_api_routes
node_auth_ui -.->|"uses API"| node_api_routes
node_register_ui -.->|"uses API"| node_api_routes

click node_research_ui "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/research.js"
click node_research_admin "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/research-admin.js"
click node_knowledge_ui "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/knowledge.js"
click node_media_ui "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/media.js"
click node_locations_ui "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/locations.js"
click node_search_ui "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/search.js"
click node_resources_ui "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/resources.js"
click node_topic_ui "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/topic.js"
click node_auth_ui "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/login.js"
click node_register_ui "https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/register.js"
click node_api_routes "https://github.com/akashkonnoju/project-polar/blob/main/api/urls.py"
click node_api_views "https://github.com/akashkonnoju/project-polar/blob/main/api/views.py"
click node_serializers "https://github.com/akashkonnoju/project-polar/blob/main/api/serializers.py"
click node_research_data "https://github.com/akashkonnoju/project-polar/blob/main/api/models.py"
click node_science_data "https://github.com/akashkonnoju/project-polar/blob/main/api/models.py"
click node_portal_data "https://github.com/akashkonnoju/project-polar/blob/main/api/models.py"
click node_resource_data "https://github.com/akashkonnoju/project-polar/blob/main/api/models.py"
click node_config "https://github.com/akashkonnoju/project-polar/blob/main/backend/settings.py"

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_research_ui,node_research_admin,node_knowledge_ui,node_media_ui,node_locations_ui,node_search_ui,node_resources_ui,node_topic_ui,node_auth_ui,node_register_ui,node_visitor toneBlue
class node_api_routes,node_api_views,node_serializers,node_mysql toneAmber
class node_research_data,node_science_data,node_portal_data,node_resource_data toneMint
class node_config toneRose
```

## Components

### Portal interface

- [Research browser](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/research.js): `frontend/js/research.js`
- [Research admin form](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/research-admin.js): `frontend/js/research-admin.js`
- [Knowledge browser](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/knowledge.js): `frontend/js/knowledge.js`
- [Media browser](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/media.js): `frontend/js/media.js`
- [Polar locations](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/locations.js): `frontend/js/locations.js`
- [Portal search](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/search.js): `frontend/js/search.js`
- [Resource browser](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/resources.js): `frontend/js/resources.js`
- [Topic pages](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/topic.js): `frontend/js/topic.js`
- [Account access](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/login.js): `frontend/js/login.js`
- [Registration](https://github.com/akashkonnoju/project-polar/blob/main/frontend/js/register.js): `frontend/js/register.js`

### API services

- [API routing](https://github.com/akashkonnoju/project-polar/blob/main/api/urls.py): `api/urls.py`
- [API handlers](https://github.com/akashkonnoju/project-polar/blob/main/api/views.py): `api/views.py`
- [Data serializers](https://github.com/akashkonnoju/project-polar/blob/main/api/serializers.py): `api/serializers.py`

### Science content

- [Research records](https://github.com/akashkonnoju/project-polar/blob/main/api/models.py): `api/models.py`
- [Topics and datasets](https://github.com/akashkonnoju/project-polar/blob/main/api/models.py): `api/models.py`
- [Knowledge, media, locations](https://github.com/akashkonnoju/project-polar/blob/main/api/models.py): `api/models.py`
- [Resource catalog](https://github.com/akashkonnoju/project-polar/blob/main/api/models.py): `api/models.py`

### Persistence and setup

- [Django configuration](https://github.com/akashkonnoju/project-polar/blob/main/backend/settings.py): `backend/settings.py`

### Other components

- **Portal user**
- **MySQL database**

## Connections

- Portal user → Research browser: browses
- Research browser → API routing: fetches research (evidence: `frontend/js/research.js`)
- Research admin form → API routing: posts research (evidence: `frontend/js/research-admin.js`)
- API routing → API handlers: routes requests (evidence: `api/urls.py`)
- API handlers → Data serializers: serializes results (evidence: `api/views.py`)
- API handlers → Research records: queries research (evidence: `api/views.py`)
- API handlers → Topics and datasets: queries science data (evidence: `api/views.py`)
- API handlers → Knowledge, media, locations: queries portal content (evidence: `api/views.py`)
- API handlers → Resource catalog: queries resources (evidence: `api/views.py`)
- Data serializers → Research records: serializes model (evidence: `api/serializers.py`)
- Data serializers → Topics and datasets: serializes models (evidence: `api/serializers.py`)
- Data serializers → Knowledge, media, locations: serializes models (evidence: `api/serializers.py`)
- Data serializers → Resource catalog: serializes model (evidence: `api/serializers.py`)
- Django configuration → MySQL database: configures (evidence: `backend/settings.py`)
- Knowledge browser → API routing: uses API
- Media browser → API routing: uses API
- Polar locations → API routing: uses API
- Portal search → API routing: uses API
- Resource browser → API routing: uses API
- Topic pages → API routing: uses API
- Account access → API routing: uses API
- Registration → API routing: uses API
