# davigfarias/river-notetaker architecture

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

- Interactive diagram: https://gitdiagram.com/davigfarias/river-notetaker
- Repository: https://github.com/davigfarias/river-notetaker

## Overview

River Notetaker is a Laravel/Livewire study companion. Its principal workflow is capturing notes within disciplines, enriching them with concepts, advice and references, then revisiting material through spaced reviews and quizzes. The map also preserves documented search and glossary capabilities, plus the study-question flow supported by the source index. Most page components and actions are unsampled, so their internal calls are not asserted; dashed links mark documented or unverified integration boundaries.

Main entry points: [`app/Models/Notes.php`](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Notes.php) (Structured Notes), [`resources/views/pages`](https://github.com/davigfarias/river-notetaker/tree/main/resources/views/pages) (Livewire Pages), [`app/Actions/GetReviewAgenda.php`](https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/GetReviewAgenda.php) (Review Agenda), [`app/Actions/FindQuestionsForChapter.php`](https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/FindQuestionsForChapter.php) (Find Questions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Notes &amp; Organization"]
  node_pages["Livewire Pages"]
  node_notes[("Structured Notes<br/>[Notes.php]")]
  node_disciplines[("Disciplines<br/>[Disciplines.php]")]
  node_note_export["Markdown Export"]
end

subgraph group_knowledge["Knowledge &amp; Search"]
  node_concepts[("Concept Glossary<br/>[Concepts.php]")]
  node_references[("References")]
  node_pastoral[("Pastoral Advice")]
  node_search["Full-text Search<br/>[SearchGlobal.php]"]
  node_map_ui["Concept Map UI<br/>[mapa-conceitos.js]"]
end

subgraph group_study["Study &amp; Review"]
  node_review_schedule["Review Scheduling<br/>[ReviewSchedule.php]"]
  node_review_agenda["Review Agenda"]
  node_review_log[("Review History<br/>[ReviewLog.php]")]
  node_reading_notes[("Reading Notes<br/>[ReadingNote.php]")]
  node_chapters[("Study Chapters<br/>[Chapter.php]")]
  node_quiz_questions[("Chapter Questions<br/>[Question.php]")]
  node_session_start["Start Session"]
  node_find_questions["Find Questions"]
end

subgraph group_platform["Application &amp; Persistence"]
  node_app_entry["Laravel Entry<br/>[index.php]"]
  node_routes["Web Routes<br/>[web.php]"]
  node_outcome["Action Results<br/>[Outcome.php]"]
  node_access_tokens[("Access Tokens<br/>[AccessToken.php]")]
end

node_learner(("Learner"))

node_learner -.->|"uses"| node_pages
node_pages -.->|"manages"| node_notes
node_pages -.->|"organizes"| node_disciplines
node_pages -.->|"browses"| node_concepts
node_pages -.->|"searches"| node_search
node_notes -->|"relates"| node_concepts
node_notes -->|"relates"| node_pastoral
node_notes -->|"relates"| node_references
node_disciplines -->|"contains"| node_notes
node_note_export -->|"loads"| node_notes
node_learner -.->|"downloads"| node_note_export
node_notes -->|"schedules with"| node_review_schedule
node_review_agenda -->|"queries"| node_notes
node_review_agenda -->|"queries"| node_disciplines
node_review_agenda -.->|"formats stages"| node_review_schedule
node_reading_notes -->|"uses intervals"| node_review_schedule
node_learner -.->|"reviews"| node_review_agenda
node_session_start -->|"requests"| node_find_questions
node_find_questions -->|"queries"| node_chapters
node_find_questions -.->|"finds"| node_quiz_questions
node_session_start -->|"returns"| node_outcome
node_learner -.->|"starts study"| node_session_start
node_app_entry -.->|"loads routes"| node_routes
node_map_ui -.->|"visualizes"| node_concepts

click node_pages "https://github.com/davigfarias/river-notetaker/tree/main/resources/views/pages"
click node_notes "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Notes.php"
click node_disciplines "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Disciplines.php"
click node_note_export "https://github.com/davigfarias/river-notetaker/blob/main/app/Http/Controllers/ExportNoteMarkdownController.php"
click node_concepts "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Concepts.php"
click node_references "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/ReferenceMaterial.php"
click node_pastoral "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/PastoralAdvices.php"
click node_search "https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/SearchGlobal.php"
click node_map_ui "https://github.com/davigfarias/river-notetaker/blob/main/resources/js/mapa-conceitos.js"
click node_review_schedule "https://github.com/davigfarias/river-notetaker/blob/main/app/Support/ReviewSchedule.php"
click node_review_agenda "https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/GetReviewAgenda.php"
click node_review_log "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/ReviewLog.php"
click node_reading_notes "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/ReadingNote.php"
click node_chapters "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Chapter.php"
click node_quiz_questions "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Question.php"
click node_session_start "https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/Orchestrators/StartStudySessionOrchestrator.php"
click node_find_questions "https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/FindQuestionsForChapter.php"
click node_app_entry "https://github.com/davigfarias/river-notetaker/blob/main/public/index.php"
click node_routes "https://github.com/davigfarias/river-notetaker/blob/main/routes/web.php"
click node_outcome "https://github.com/davigfarias/river-notetaker/blob/main/app/Support/Outcome.php"
click node_access_tokens "https://github.com/davigfarias/river-notetaker/blob/main/app/Models/AccessToken.php"

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_pages,node_notes,node_disciplines,node_note_export toneBlue
class node_concepts,node_references,node_pastoral,node_search,node_map_ui toneAmber
class node_review_schedule,node_review_agenda,node_review_log,node_reading_notes,node_chapters,node_quiz_questions,node_session_start,node_find_questions toneMint
class node_app_entry,node_routes,node_outcome,node_access_tokens toneRose
class node_learner toneIndigo
```

## Components

### Notes & Organization

- [Livewire Pages](https://github.com/davigfarias/river-notetaker/tree/main/resources/views/pages): `resources/views/pages`
- [Structured Notes](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Notes.php): `app/Models/Notes.php`
- [Disciplines](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Disciplines.php): `app/Models/Disciplines.php`
- [Markdown Export](https://github.com/davigfarias/river-notetaker/blob/main/app/Http/Controllers/ExportNoteMarkdownController.php): `app/Http/Controllers/ExportNoteMarkdownController.php`

### Knowledge & Search

- [Concept Glossary](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Concepts.php): `app/Models/Concepts.php`
- [References](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/ReferenceMaterial.php): `app/Models/ReferenceMaterial.php`
- [Pastoral Advice](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/PastoralAdvices.php): `app/Models/PastoralAdvices.php`
- [Full-text Search](https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/SearchGlobal.php): `app/Actions/SearchGlobal.php`
- [Concept Map UI](https://github.com/davigfarias/river-notetaker/blob/main/resources/js/mapa-conceitos.js): `resources/js/mapa-conceitos.js`

### Study & Review

- [Review Scheduling](https://github.com/davigfarias/river-notetaker/blob/main/app/Support/ReviewSchedule.php): `app/Support/ReviewSchedule.php`
- [Review Agenda](https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/GetReviewAgenda.php): `app/Actions/GetReviewAgenda.php`
- [Review History](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/ReviewLog.php): `app/Models/ReviewLog.php`
- [Reading Notes](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/ReadingNote.php): `app/Models/ReadingNote.php`
- [Study Chapters](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Chapter.php): `app/Models/Chapter.php`
- [Chapter Questions](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/Question.php): `app/Models/Question.php`
- [Start Session](https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/Orchestrators/StartStudySessionOrchestrator.php): `app/Actions/Orchestrators/StartStudySessionOrchestrator.php`
- [Find Questions](https://github.com/davigfarias/river-notetaker/blob/main/app/Actions/FindQuestionsForChapter.php): `app/Actions/FindQuestionsForChapter.php`

### Application & Persistence

- [Laravel Entry](https://github.com/davigfarias/river-notetaker/blob/main/public/index.php): `public/index.php`
- [Web Routes](https://github.com/davigfarias/river-notetaker/blob/main/routes/web.php): `routes/web.php`
- [Action Results](https://github.com/davigfarias/river-notetaker/blob/main/app/Support/Outcome.php): `app/Support/Outcome.php`
- [Access Tokens](https://github.com/davigfarias/river-notetaker/blob/main/app/Models/AccessToken.php): `app/Models/AccessToken.php`

### Other components

- **Learner**

## Connections

- Learner → Livewire Pages: uses
- Livewire Pages → Structured Notes: manages
- Livewire Pages → Disciplines: organizes
- Livewire Pages → Concept Glossary: browses
- Livewire Pages → Full-text Search: searches
- Structured Notes → Concept Glossary: relates (evidence: `app/Models/Notes.php`)
- Structured Notes → Pastoral Advice: relates (evidence: `app/Models/Notes.php`)
- Structured Notes → References: relates (evidence: `app/Models/Notes.php`)
- Disciplines → Structured Notes: contains (evidence: `app/Models/Disciplines.php`)
- Markdown Export → Structured Notes: loads (evidence: `app/Http/Controllers/ExportNoteMarkdownController.php`)
- Learner → Markdown Export: downloads
- Structured Notes → Review Scheduling: schedules with (evidence: `app/Models/Notes.php`)
- Review Agenda → Structured Notes: queries (evidence: `app/Actions/GetReviewAgenda.php`)
- Review Agenda → Disciplines: queries (evidence: `app/Actions/GetReviewAgenda.php`)
- Review Agenda → Review Scheduling: formats stages
- Reading Notes → Review Scheduling: uses intervals (evidence: `app/Models/ReadingNote.php`)
- Learner → Review Agenda: reviews
- Start Session → Find Questions: requests (evidence: `app/Actions/Orchestrators/StartStudySessionOrchestrator.php`)
- Find Questions → Study Chapters: queries (evidence: `app/Actions/FindQuestionsForChapter.php`)
- Find Questions → Chapter Questions: finds (evidence: `app/Actions/FindQuestionsForChapter.php`)
- Start Session → Action Results: returns (evidence: `app/Actions/Orchestrators/StartStudySessionOrchestrator.php`)
- Learner → Start Session: starts study
- Laravel Entry → Web Routes: loads routes
- Concept Map UI → Concept Glossary: visualizes
