# unb-mds/2026-2-cerradinho-api architecture

> Architecture diagram of the GitHub repository unb-mds/2026-2-cerradinho-api, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/unb-mds/2026-2-cerradinho-api
- Repository: https://github.com/unb-mds/2026-2-cerradinho-api

## Overview

Cerradinho is described as an open API for UnB. The tree shows backend, frontend and SDK areas, plus backend directories for routes, domain logic, scraping and tasks, but they contain only placeholders in the supplied evidence. The graph therefore identifies these product areas without assuming how they are wired; only the API consumer-to-router entry is shown. Specific capabilities and runtime relationships cannot be confirmed from the README or sampled source.

Main entry points: [`backend/app/routers`](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/routers) (API routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Backend API"]
  node_routers["API routes"]
  node_schemas["API schemas"]
  node_domain["Domain logic"]
  node_models["Data models"]
  node_core["Backend core"]
end

subgraph group_acquisition["Data Acquisition"]
  node_scrapers["Scrapers"]
  node_tasks["Background tasks"]
end

subgraph group_clients["Client Interfaces"]
  node_frontend["Frontend app"]
  node_components["UI components"]
  node_hooks["Frontend hooks"]
  node_sdk["SDK"]
end

node_consumer(("API consumer"))

node_consumer -->|"requests API"| node_routers

click node_routers "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/routers"
click node_schemas "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/schemas"
click node_domain "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/domain"
click node_models "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/models"
click node_core "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/core"
click node_scrapers "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/scrapers"
click node_tasks "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/tasks"
click node_frontend "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/frontend/app"
click node_components "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/frontend/components"
click node_hooks "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/frontend/hooks"
click node_sdk "https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/sdk"

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_routers,node_schemas,node_domain,node_models,node_core toneBlue
class node_scrapers,node_tasks toneAmber
class node_frontend,node_components,node_hooks,node_sdk,node_consumer toneMint
```

## Components

### Backend API

- [API routes](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/routers): `backend/app/routers`
- [API schemas](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/schemas): `backend/app/schemas`
- [Domain logic](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/domain): `backend/app/domain`
- [Data models](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/models): `backend/app/models`
- [Backend core](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/core): `backend/app/core`

### Data Acquisition

- [Scrapers](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/scrapers): `backend/app/scrapers`
- [Background tasks](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/backend/app/tasks): `backend/app/tasks`

### Client Interfaces

- [Frontend app](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/frontend/app): `frontend/app`
- [UI components](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/frontend/components): `frontend/components`
- [Frontend hooks](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/frontend/hooks): `frontend/hooks`
- [SDK](https://github.com/unb-mds/2026-2-cerradinho-api/tree/main/sdk): `sdk`

### Other components

- **API consumer**

## Connections

- API consumer → API routes: requests API
