# niteboy17/thinkboard architecture

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

- Interactive diagram: https://gitdiagram.com/niteboy17/thinkboard
- Repository: https://github.com/niteboy17/thinkboard

## Overview

Thinkboard is a full-stack notes app. Users browse notes, create them, or open a note to edit or delete it; the React pages send API requests to Express, whose controllers operate on timestamped MongoDB notes. The backend also applies rate limiting to incoming requests. The graph includes the documented CRUD screens and rate-limit capability; source excerpts do not establish how the Upstash configuration reaches an external service.

Main entry points: [`frontend/src/pages/HomePage.jsx`](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/pages/HomePage.jsx) (Notes Home), [`backend/src/routes/nodesRoutes.js`](https://github.com/niteboy17/thinkboard/blob/main/backend/src/routes/nodesRoutes.js) (Notes Routes), [`frontend/src/App.jsx`](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/App.jsx) (Route App), [`frontend/src/components/lib/axios.js`](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/lib/axios.js) (API Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_main["React Bootstrap<br/>[main.jsx]"]
  node_app["Route App<br/>[App.jsx]"]
  node_home["Notes Home<br/>[HomePage.jsx]"]
  node_create["Create Note<br/>[CreatePage.jsx]"]
  node_detail["Note Detail<br/>[NoteDetailPage.jsx]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_card["Note Card<br/>[NoteCard.jsx]"]
  node_empty["Empty State<br/>[NotesNotFound.jsx]"]
  node_limited["Rate Limit Notice<br/>[RateLimitedUI.jsx]"]
  node_http["API Client<br/>[axios.js]"]
end

subgraph group_backend["Backend API"]
  node_server["Express Server<br/>[server.js]"]
  node_routes["Notes Routes<br/>[nodesRoutes.js]"]
  node_controller["Notes Controller"]
end

subgraph group_data["Notes Data"]
  node_model["Note Model<br/>[Note.js]"]
  node_db["Database Connection<br/>[db.js]"]
end

subgraph group_protection["Request Protection"]
  node_limiter["Rate Limiter<br/>[rateLimiter.js]"]
  node_upstash["Upstash Limiter Config<br/>[upstash.js]"]
end

node_user(("User"))
node_mongo[("MongoDB")]

node_user -->|"uses"| node_main
node_main -->|"renders"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_create
node_app -->|"routes to"| node_detail
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_card
node_home -->|"renders"| node_empty
node_home -->|"renders"| node_limited
node_home -->|"requests notes"| node_http
node_create -->|"uses client"| node_http
node_detail -->|"requests note"| node_http
node_card -->|"deletes note"| node_http
node_home -->|"fetches notes"| node_routes
node_create -.->|"creates note"| node_routes
node_detail -->|"updates or deletes"| node_routes
node_server -->|"mounts API"| node_routes
node_routes -->|"dispatches requests"| node_controller
node_controller -->|"queries notes"| node_model
node_server -->|"connects database"| node_db
node_db -.->|"connects to"| node_mongo
node_server -->|"applies middleware"| node_limiter
node_limiter -->|"uses config"| node_upstash

click node_main "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/main.jsx"
click node_app "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/pages/HomePage.jsx"
click node_create "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/pages/CreatePage.jsx"
click node_detail "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/pages/NoteDetailPage.jsx"
click node_navbar "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/Navbar.jsx"
click node_card "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/NoteCard.jsx"
click node_empty "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/NotesNotFound.jsx"
click node_limited "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/RateLimitedUI.jsx"
click node_http "https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/lib/axios.js"
click node_server "https://github.com/niteboy17/thinkboard/blob/main/backend/src/server.js"
click node_routes "https://github.com/niteboy17/thinkboard/blob/main/backend/src/routes/nodesRoutes.js"
click node_controller "https://github.com/niteboy17/thinkboard/blob/main/backend/src/controllers/notesControllers.js"
click node_model "https://github.com/niteboy17/thinkboard/blob/main/backend/src/models/Note.js"
click node_db "https://github.com/niteboy17/thinkboard/blob/main/backend/src/config/db.js"
click node_limiter "https://github.com/niteboy17/thinkboard/blob/main/backend/src/middleware/rateLimiter.js"
click node_upstash "https://github.com/niteboy17/thinkboard/blob/main/backend/src/config/upstash.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_main,node_app,node_home,node_create,node_detail,node_navbar,node_card,node_empty,node_limited,node_http,node_user toneBlue
class node_server,node_routes,node_controller,node_mongo toneAmber
class node_model,node_db toneMint
class node_limiter,node_upstash toneRose
```

## Components

### Frontend

- [React Bootstrap](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Route App](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Notes Home](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/pages/HomePage.jsx): `frontend/src/pages/HomePage.jsx`
- [Create Note](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/pages/CreatePage.jsx): `frontend/src/pages/CreatePage.jsx`
- [Note Detail](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/pages/NoteDetailPage.jsx): `frontend/src/pages/NoteDetailPage.jsx`
- [Navigation](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/Navbar.jsx): `frontend/src/components/Navbar.jsx`
- [Note Card](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/NoteCard.jsx): `frontend/src/components/NoteCard.jsx`
- [Empty State](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/NotesNotFound.jsx): `frontend/src/components/NotesNotFound.jsx`
- [Rate Limit Notice](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/RateLimitedUI.jsx): `frontend/src/components/RateLimitedUI.jsx`
- [API Client](https://github.com/niteboy17/thinkboard/blob/main/frontend/src/components/lib/axios.js): `frontend/src/components/lib/axios.js`

### Backend API

- [Express Server](https://github.com/niteboy17/thinkboard/blob/main/backend/src/server.js): `backend/src/server.js`
- [Notes Routes](https://github.com/niteboy17/thinkboard/blob/main/backend/src/routes/nodesRoutes.js): `backend/src/routes/nodesRoutes.js`
- [Notes Controller](https://github.com/niteboy17/thinkboard/blob/main/backend/src/controllers/notesControllers.js): `backend/src/controllers/notesControllers.js`

### Notes Data

- [Note Model](https://github.com/niteboy17/thinkboard/blob/main/backend/src/models/Note.js): `backend/src/models/Note.js`
- [Database Connection](https://github.com/niteboy17/thinkboard/blob/main/backend/src/config/db.js): `backend/src/config/db.js`

### Request Protection

- [Rate Limiter](https://github.com/niteboy17/thinkboard/blob/main/backend/src/middleware/rateLimiter.js): `backend/src/middleware/rateLimiter.js`
- [Upstash Limiter Config](https://github.com/niteboy17/thinkboard/blob/main/backend/src/config/upstash.js): `backend/src/config/upstash.js`

### Other components

- **User**
- **MongoDB**

## Connections

- User → React Bootstrap: uses (evidence: `README.md`)
- React Bootstrap → Route App: renders (evidence: `frontend/src/main.jsx`)
- Route App → Notes Home: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Create Note: routes to (evidence: `frontend/src/App.jsx`)
- Route App → Note Detail: routes to (evidence: `frontend/src/App.jsx`)
- Notes Home → Navigation: renders (evidence: `frontend/src/pages/HomePage.jsx`)
- Notes Home → Note Card: renders (evidence: `frontend/src/pages/HomePage.jsx`)
- Notes Home → Empty State: renders (evidence: `frontend/src/pages/HomePage.jsx`)
- Notes Home → Rate Limit Notice: renders (evidence: `frontend/src/pages/HomePage.jsx`)
- Notes Home → API Client: requests notes (evidence: `frontend/src/pages/HomePage.jsx`)
- Create Note → API Client: uses client (evidence: `frontend/src/pages/CreatePage.jsx`)
- Note Detail → API Client: requests note (evidence: `frontend/src/pages/NoteDetailPage.jsx`)
- Note Card → API Client: deletes note (evidence: `frontend/src/components/NoteCard.jsx`)
- Notes Home → Notes Routes: fetches notes (evidence: `frontend/src/pages/HomePage.jsx`)
- Create Note → Notes Routes: creates note (evidence: `README.md`)
- Note Detail → Notes Routes: updates or deletes (evidence: `frontend/src/pages/NoteDetailPage.jsx`)
- Express Server → Notes Routes: mounts API (evidence: `backend/src/server.js`)
- Notes Routes → Notes Controller: dispatches requests (evidence: `backend/src/routes/nodesRoutes.js`)
- Notes Controller → Note Model: queries notes (evidence: `backend/src/controllers/notesControllers.js`)
- Express Server → Database Connection: connects database (evidence: `backend/src/server.js`)
- Database Connection → MongoDB: connects to (evidence: `README.md`)
- Express Server → Rate Limiter: applies middleware (evidence: `backend/src/server.js`)
- Rate Limiter → Upstash Limiter Config: uses config (evidence: `backend/src/middleware/rateLimiter.js`)
