# oohcecilia/synchaura architecture

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

- Interactive diagram: https://gitdiagram.com/oohcecilia/synchaura
- Repository: https://github.com/oohcecilia/synchaura

## Overview

SyncAura is collaborative team task-management software. The main workflow is authenticated users entering a protected workspace, viewing and managing tasks, and accessing team, calendar, map, and workspace views; local PouchDB data and synchronization support the app. The backend provides authentication and registered proxy, calendar, and geolocation routes. Edges follow shown imports, calls, or route registration; unsampled page behavior and most external integrations are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/oohcecilia/synchaura/blob/main/src/App.jsx) (App router), [`src/db/couch.js`](https://github.com/oohcecilia/synchaura/blob/main/src/db/couch.js) (Local document database), [`backend/main.py`](https://github.com/oohcecilia/synchaura/blob/main/backend/main.py) (FastAPI application), [`src/lib/AuthContext.jsx`](https://github.com/oohcecilia/synchaura/blob/main/src/lib/AuthContext.jsx) (Session management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["App router<br/>[App.jsx]"]
  node_layout["Workspace layout<br/>[Layout.jsx]"]
  node_work_views["Work views"]
  node_team_views["Team views<br/>[Teams.jsx]"]
  node_calendar_view["Calendar view<br/>[CalendarPage.jsx]"]
  node_map_view["Map view<br/>[MapPage.jsx]"]
end

subgraph group_identity["Identity and API"]
  node_auth_pages["Sign-in and registration<br/>[RegisterPage.jsx]"]
  node_auth_context["Session management<br/>[AuthContext.jsx]"]
  node_api_client["API client<br/>[client.js]"]
end

subgraph group_tasks["Task workflows"]
  node_task_page["Task list<br/>[Tasks.jsx]"]
  node_task_form["Task editing<br/>[TaskFormDialog.jsx]"]
  node_task_detail["Task details"]
  node_task_agents["Task agents<br/>[TaskAgents.jsx]"]
  node_task_rules["Task access and dates<br/>[task-access.js]"]
end

subgraph group_data["Local data and sync"]
  node_data_provider["App data provider<br/>[DataProvider.jsx]"]
  node_db_api["Task data operations<br/>[api.js]"]
  node_local_db[("Local document database<br/>[couch.js]")]
  node_notifications["Task notifications<br/>[notification.js]"]
  node_sync_provider["Sync coordination<br/>[SyncProvider.jsx]"]
  node_sync_engine["Database sync<br/>[sync.js]"]
end

subgraph group_services["Backend services"]
  node_backend["FastAPI application<br/>[main.py]"]
  node_auth_routes["Authentication routes<br/>[auth.py]"]
  node_couch_routes["Couch proxy routes<br/>[couch_proxy.py]"]
  node_calendar_routes["Calendar routes<br/>[google_calendar.py]"]
  node_geo_routes["Geolocation routes<br/>[geolocation.py]"]
end

node_user(("Team member"))
node_google(("Google services"))

node_user -.->|"uses"| node_app
node_app -->|"provides session"| node_auth_context
node_app -->|"provides data"| node_data_provider
node_app -->|"provides sync"| node_sync_provider
node_app -->|"routes to"| node_layout
node_app -->|"routes to"| node_work_views
node_app -->|"routes to"| node_team_views
node_app -->|"routes to"| node_calendar_view
node_app -->|"routes to"| node_map_view
node_app -->|"routes to"| node_auth_pages
node_auth_pages -->|"uses session"| node_auth_context
node_auth_context -->|"calls"| node_api_client
node_auth_context -->|"closes"| node_local_db
node_task_page -->|"reads data"| node_data_provider
node_task_page -->|"opens"| node_task_form
node_task_page -->|"opens"| node_task_detail
node_task_form -->|"reads and writes"| node_local_db
node_task_form -->|"uses"| node_notifications
node_task_detail -->|"renders"| node_task_agents
node_task_detail -->|"reads"| node_local_db
node_data_provider -->|"loads data"| node_db_api
node_data_provider -->|"observes changes"| node_local_db
node_db_api -->|"queries"| node_local_db
node_db_api -->|"ensures notifications"| node_notifications
node_sync_provider -->|"starts sync"| node_sync_engine
node_sync_provider -->|"uses"| node_local_db
node_backend -->|"registers"| node_auth_routes
node_backend -->|"registers"| node_couch_routes
node_backend -->|"registers"| node_calendar_routes
node_backend -->|"registers"| node_geo_routes
node_auth_routes -.->|"requests profile"| node_google

click node_app "https://github.com/oohcecilia/synchaura/blob/main/src/App.jsx"
click node_layout "https://github.com/oohcecilia/synchaura/blob/main/src/components/Layout.jsx"
click node_work_views "https://github.com/oohcecilia/synchaura/tree/main/src/pages"
click node_team_views "https://github.com/oohcecilia/synchaura/blob/main/src/pages/Teams.jsx"
click node_calendar_view "https://github.com/oohcecilia/synchaura/blob/main/src/pages/CalendarPage.jsx"
click node_map_view "https://github.com/oohcecilia/synchaura/blob/main/src/pages/MapPage.jsx"
click node_auth_pages "https://github.com/oohcecilia/synchaura/blob/main/src/pages/RegisterPage.jsx"
click node_auth_context "https://github.com/oohcecilia/synchaura/blob/main/src/lib/AuthContext.jsx"
click node_api_client "https://github.com/oohcecilia/synchaura/blob/main/src/api/client.js"
click node_task_page "https://github.com/oohcecilia/synchaura/blob/main/src/pages/Tasks.jsx"
click node_task_form "https://github.com/oohcecilia/synchaura/blob/main/src/components/TaskFormDialog.jsx"
click node_task_detail "https://github.com/oohcecilia/synchaura/blob/main/src/components/TaskDetailDialog.jsx"
click node_task_agents "https://github.com/oohcecilia/synchaura/blob/main/src/components/TaskAgents.jsx"
click node_task_rules "https://github.com/oohcecilia/synchaura/blob/main/src/lib/task-access.js"
click node_data_provider "https://github.com/oohcecilia/synchaura/blob/main/src/lib/DataProvider.jsx"
click node_db_api "https://github.com/oohcecilia/synchaura/blob/main/src/db/api.js"
click node_local_db "https://github.com/oohcecilia/synchaura/blob/main/src/db/couch.js"
click node_notifications "https://github.com/oohcecilia/synchaura/blob/main/src/db/notification.js"
click node_sync_provider "https://github.com/oohcecilia/synchaura/blob/main/src/lib/SyncProvider.jsx"
click node_sync_engine "https://github.com/oohcecilia/synchaura/blob/main/src/db/sync.js"
click node_backend "https://github.com/oohcecilia/synchaura/blob/main/backend/main.py"
click node_auth_routes "https://github.com/oohcecilia/synchaura/blob/main/backend/routes/auth.py"
click node_couch_routes "https://github.com/oohcecilia/synchaura/blob/main/backend/routes/couch_proxy.py"
click node_calendar_routes "https://github.com/oohcecilia/synchaura/blob/main/backend/routes/google_calendar.py"
click node_geo_routes "https://github.com/oohcecilia/synchaura/blob/main/backend/routes/geolocation.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_app,node_layout,node_work_views,node_team_views,node_calendar_view,node_map_view toneBlue
class node_auth_pages,node_auth_context,node_api_client toneAmber
class node_task_page,node_task_form,node_task_detail,node_task_agents,node_task_rules toneMint
class node_data_provider,node_db_api,node_local_db,node_notifications,node_sync_provider,node_sync_engine toneRose
class node_backend,node_auth_routes,node_couch_routes,node_calendar_routes,node_geo_routes,node_user,node_google toneIndigo
```

## Components

### Web application

- [App router](https://github.com/oohcecilia/synchaura/blob/main/src/App.jsx): `src/App.jsx`
- [Workspace layout](https://github.com/oohcecilia/synchaura/blob/main/src/components/Layout.jsx): `src/components/Layout.jsx`
- [Work views](https://github.com/oohcecilia/synchaura/tree/main/src/pages): `src/pages`
- [Team views](https://github.com/oohcecilia/synchaura/blob/main/src/pages/Teams.jsx): `src/pages/Teams.jsx`
- [Calendar view](https://github.com/oohcecilia/synchaura/blob/main/src/pages/CalendarPage.jsx): `src/pages/CalendarPage.jsx`
- [Map view](https://github.com/oohcecilia/synchaura/blob/main/src/pages/MapPage.jsx): `src/pages/MapPage.jsx`

### Identity and API

- [Sign-in and registration](https://github.com/oohcecilia/synchaura/blob/main/src/pages/RegisterPage.jsx): `src/pages/RegisterPage.jsx`
- [Session management](https://github.com/oohcecilia/synchaura/blob/main/src/lib/AuthContext.jsx): `src/lib/AuthContext.jsx`
- [API client](https://github.com/oohcecilia/synchaura/blob/main/src/api/client.js): `src/api/client.js`

### Task workflows

- [Task list](https://github.com/oohcecilia/synchaura/blob/main/src/pages/Tasks.jsx): `src/pages/Tasks.jsx`
- [Task editing](https://github.com/oohcecilia/synchaura/blob/main/src/components/TaskFormDialog.jsx): `src/components/TaskFormDialog.jsx`
- [Task details](https://github.com/oohcecilia/synchaura/blob/main/src/components/TaskDetailDialog.jsx): `src/components/TaskDetailDialog.jsx`
- [Task agents](https://github.com/oohcecilia/synchaura/blob/main/src/components/TaskAgents.jsx): `src/components/TaskAgents.jsx`
- [Task access and dates](https://github.com/oohcecilia/synchaura/blob/main/src/lib/task-access.js): `src/lib/task-access.js`

### Local data and sync

- [App data provider](https://github.com/oohcecilia/synchaura/blob/main/src/lib/DataProvider.jsx): `src/lib/DataProvider.jsx`
- [Task data operations](https://github.com/oohcecilia/synchaura/blob/main/src/db/api.js): `src/db/api.js`
- [Local document database](https://github.com/oohcecilia/synchaura/blob/main/src/db/couch.js): `src/db/couch.js`
- [Task notifications](https://github.com/oohcecilia/synchaura/blob/main/src/db/notification.js): `src/db/notification.js`
- [Sync coordination](https://github.com/oohcecilia/synchaura/blob/main/src/lib/SyncProvider.jsx): `src/lib/SyncProvider.jsx`
- [Database sync](https://github.com/oohcecilia/synchaura/blob/main/src/db/sync.js): `src/db/sync.js`

### Backend services

- [FastAPI application](https://github.com/oohcecilia/synchaura/blob/main/backend/main.py): `backend/main.py`
- [Authentication routes](https://github.com/oohcecilia/synchaura/blob/main/backend/routes/auth.py): `backend/routes/auth.py`
- [Couch proxy routes](https://github.com/oohcecilia/synchaura/blob/main/backend/routes/couch_proxy.py): `backend/routes/couch_proxy.py`
- [Calendar routes](https://github.com/oohcecilia/synchaura/blob/main/backend/routes/google_calendar.py): `backend/routes/google_calendar.py`
- [Geolocation routes](https://github.com/oohcecilia/synchaura/blob/main/backend/routes/geolocation.py): `backend/routes/geolocation.py`

### Other components

- **Team member**
- **Google services**

## Connections

- Team member → App router: uses
- App router → Session management: provides session (evidence: `src/App.jsx`)
- App router → App data provider: provides data (evidence: `src/App.jsx`)
- App router → Sync coordination: provides sync (evidence: `src/App.jsx`)
- App router → Workspace layout: routes to (evidence: `src/App.jsx`)
- App router → Work views: routes to (evidence: `src/App.jsx`)
- App router → Team views: routes to (evidence: `src/App.jsx`)
- App router → Calendar view: routes to (evidence: `src/App.jsx`)
- App router → Map view: routes to (evidence: `src/App.jsx`)
- App router → Sign-in and registration: routes to (evidence: `src/App.jsx`)
- Sign-in and registration → Session management: uses session (evidence: `src/pages/RegisterPage.jsx`)
- Session management → API client: calls (evidence: `src/lib/AuthContext.jsx`)
- Session management → Local document database: closes (evidence: `src/lib/AuthContext.jsx`)
- Task list → App data provider: reads data (evidence: `src/pages/Tasks.jsx`)
- Task list → Task editing: opens (evidence: `src/pages/Tasks.jsx`)
- Task list → Task details: opens (evidence: `src/pages/Tasks.jsx`)
- Task editing → Local document database: reads and writes (evidence: `src/components/TaskFormDialog.jsx`)
- Task editing → Task notifications: uses (evidence: `src/components/TaskFormDialog.jsx`)
- Task details → Task agents: renders (evidence: `src/components/TaskDetailDialog.jsx`)
- Task details → Local document database: reads (evidence: `src/components/TaskDetailDialog.jsx`)
- App data provider → Task data operations: loads data (evidence: `src/lib/DataProvider.jsx`)
- App data provider → Local document database: observes changes (evidence: `src/lib/DataProvider.jsx`)
- Task data operations → Local document database: queries (evidence: `src/db/api.js`)
- Task data operations → Task notifications: ensures notifications (evidence: `src/db/api.js`)
- Sync coordination → Database sync: starts sync (evidence: `src/lib/SyncProvider.jsx`)
- Sync coordination → Local document database: uses (evidence: `src/lib/SyncProvider.jsx`)
- FastAPI application → Authentication routes: registers (evidence: `backend/main.py`)
- FastAPI application → Couch proxy routes: registers (evidence: `backend/main.py`)
- FastAPI application → Calendar routes: registers (evidence: `backend/main.py`)
- FastAPI application → Geolocation routes: registers (evidence: `backend/main.py`)
- Authentication routes → Google services: requests profile (evidence: `backend/routes/auth.py`)
