# orbit274/antieligible architecture

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

- Interactive diagram: https://gitdiagram.com/orbit274/antieligible
- Repository: https://github.com/orbit274/antieligible

## Overview

AntIEligible is a UCI course-prerequisite planner with a React course graph and a local catalog API. The visible workflow is that a student clicks a course, the app opens a details panel, and the panel requests course information from the backend, which reads SQLite. The backend also exposes course search; no search UI is shown in the sampled frontend. A seed process fetches catalog data from Anteater API and builds the database. The README gives no further capability details, and the graph reflects only the sampled implementation.

Main entry points: [`frontend/src/App.jsx`](https://github.com/orbit274/antieligible/blob/main/frontend/src/App.jsx) (App shell), [`backend/server.js`](https://github.com/orbit274/antieligible/blob/main/backend/server.js) (Course search), [`backend/uci_courses.db`](https://github.com/orbit274/antieligible/blob/main/backend/uci_courses.db) (Course database), [`backend/seed.js`](https://github.com/orbit274/antieligible/blob/main/backend/seed.js) (Catalog seeder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Planner UI"]
  node_app["App shell<br/>[App.jsx]"]
  node_graph["Course graph<br/>[App.jsx]"]
  node_header["Header<br/>[Header.jsx]"]
  node_details["Course details<br/>[CourseDetails.jsx]"]
end

subgraph group_api["Catalog API"]
  node_server["Catalog API<br/>[server.js]"]
  node_search["Course search<br/>[server.js]"]
  node_detailroute["Course lookup<br/>[server.js]"]
end

subgraph group_data["Catalog data"]
  node_db[("Course database<br/>[uci_courses.db]")]
end

subgraph group_ingest["Catalog ingestion"]
  node_seed["Catalog seeder<br/>[seed.js]"]
end

node_student(("Student"))
node_anteater["Anteater API"]

node_student -->|"uses"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_graph
node_app -->|"renders"| node_details
node_student -->|"clicks course"| node_graph
node_graph -->|"selects course"| node_app
node_details -->|"requests details"| node_detailroute
node_server -->|"routes search"| node_search
node_server -->|"routes lookup"| node_detailroute
node_search -->|"queries"| node_db
node_detailroute -->|"reads course data"| node_db
node_seed -->|"fetches catalog"| node_anteater
node_seed -->|"builds database"| node_db
node_student -.->|"searches courses"| node_search

click node_app "https://github.com/orbit274/antieligible/blob/main/frontend/src/App.jsx"
click node_graph "https://github.com/orbit274/antieligible/blob/main/frontend/src/App.jsx"
click node_header "https://github.com/orbit274/antieligible/blob/main/frontend/src/components/Header.jsx"
click node_details "https://github.com/orbit274/antieligible/blob/main/frontend/src/components/CourseDetails.jsx"
click node_server "https://github.com/orbit274/antieligible/blob/main/backend/server.js"
click node_search "https://github.com/orbit274/antieligible/blob/main/backend/server.js"
click node_detailroute "https://github.com/orbit274/antieligible/blob/main/backend/server.js"
click node_db "https://github.com/orbit274/antieligible/blob/main/backend/uci_courses.db"
click node_seed "https://github.com/orbit274/antieligible/blob/main/backend/seed.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_app,node_graph,node_header,node_details toneBlue
class node_server,node_search,node_detailroute toneAmber
class node_db,node_anteater toneMint
class node_seed toneRose
class node_student toneIndigo
```

## Components

### Planner UI

- [App shell](https://github.com/orbit274/antieligible/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Course graph](https://github.com/orbit274/antieligible/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Header](https://github.com/orbit274/antieligible/blob/main/frontend/src/components/Header.jsx): `frontend/src/components/Header.jsx`
- [Course details](https://github.com/orbit274/antieligible/blob/main/frontend/src/components/CourseDetails.jsx): `frontend/src/components/CourseDetails.jsx`

### Catalog API

- [Catalog API](https://github.com/orbit274/antieligible/blob/main/backend/server.js): `backend/server.js`
- [Course search](https://github.com/orbit274/antieligible/blob/main/backend/server.js): `backend/server.js`
- [Course lookup](https://github.com/orbit274/antieligible/blob/main/backend/server.js): `backend/server.js`

### Catalog data

- [Course database](https://github.com/orbit274/antieligible/blob/main/backend/uci_courses.db): `backend/uci_courses.db`

### Catalog ingestion

- [Catalog seeder](https://github.com/orbit274/antieligible/blob/main/backend/seed.js): `backend/seed.js`

### Other components

- **Student**
- **Anteater API**

## Connections

- Student → App shell: uses
- App shell → Header: renders (evidence: `frontend/src/App.jsx`)
- App shell → Course graph: renders (evidence: `frontend/src/App.jsx`)
- App shell → Course details: renders (evidence: `frontend/src/App.jsx`)
- Student → Course graph: clicks course (evidence: `frontend/src/App.jsx`)
- Course graph → App shell: selects course (evidence: `frontend/src/App.jsx`)
- Course details → Course lookup: requests details (evidence: `frontend/src/components/CourseDetails.jsx`)
- Catalog API → Course search: routes search (evidence: `backend/server.js`)
- Catalog API → Course lookup: routes lookup (evidence: `backend/server.js`)
- Course search → Course database: queries (evidence: `backend/server.js`)
- Course lookup → Course database: reads course data (evidence: `backend/server.js`)
- Catalog seeder → Anteater API: fetches catalog (evidence: `backend/seed.js`)
- Catalog seeder → Course database: builds database (evidence: `backend/seed.js`)
- Student → Course search: searches courses
