# evansabraham/syncsphere architecture

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

- Interactive diagram: https://gitdiagram.com/evansabraham/syncsphere
- Repository: https://github.com/evansabraham/syncsphere

## Overview

SyncSphere is a collaborative workspace and document editor. Users enter through the landing or authentication pages, view or create workspaces, then manage workspace documents in a sidebar and edit a selected document. Workspace and document records are stored in Firestore; the editor also offers Gemini-assisted template generation. The README describes broader loop-based collaboration and unified data flow, but the sampled implementation chiefly demonstrates workspace/document management. Several component relationships are supported by the SOURCE INDEX rather than complete excerpts.

Main entry points: [`config/firebaseConfig.js`](https://github.com/evansabraham/syncsphere/blob/main/config/firebaseConfig.js) (Firebase configuration), [`app/(routes)/createworkspace/page.jsx`](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/createworkspace/page.jsx) (Create workspace), [`app/(routes)/workspace/_components/DocumentEditorSection.jsx`](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentEditorSection.jsx) (Editor section), [`app/(routes)/workspace/_components/DocumentInfo.jsx`](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentInfo.jsx) (Document metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and access"]
  node_landing["Landing page<br/>[page.js]"]
  node_landing_header["Landing header<br/>[Header.jsx]"]
  node_hero["Hero content<br/>[Hero.jsx]"]
  node_signin["Sign-in page<br/>[page.jsx]"]
  node_signup["Sign-up page<br/>[page.jsx]"]
end

subgraph group_workspace["Workspace management"]
  node_dashboard["Dashboard<br/>[page.js]"]
  node_workspace_list["Workspace list<br/>[WorkSpaceList.jsx]"]
  node_workspace_item["Workspace item"]
  node_create_workspace["Create workspace<br/>[page.jsx]"]
  node_cover_picker["Cover picker<br/>[CoverPicker.jsx]"]
  node_emoji_picker["Emoji picker"]
  node_workspace_route["Workspace view<br/>[page.jsx]"]
end

subgraph group_documents["Document editing"]
  node_sidenav["Document sidebar<br/>[SideNav.jsx]"]
  node_document_list["Document list<br/>[DocumentList.jsx]"]
  node_document_options["Document options"]
  node_document_route["Document page<br/>[page.jsx]"]
  node_editor_section["Editor section"]
  node_document_header["Document header<br/>[DocumentHeader.jsx]"]
  node_document_info["Document metadata<br/>[DocumentInfo.jsx]"]
  node_rich_editor["Rich text editor<br/>[RichTextEditor.jsx]"]
  node_ai_template["AI template generation"]
end

subgraph group_services["Data and AI services"]
  node_firestore_config["Firebase configuration<br/>[firebaseConfig.js]"]
  node_firestore[("Firestore")]
  node_gemini_config["Gemini model setup<br/>[GoogleAIModel.jsx]"]
end

node_visitor(("User"))
node_gemini{{"Gemini API"}}

node_visitor -->|"opens"| node_landing
node_landing -->|"renders"| node_landing_header
node_landing -->|"renders"| node_hero
node_visitor -->|"authenticates"| node_signin
node_visitor -->|"registers"| node_signup
node_visitor -->|"opens"| node_dashboard
node_dashboard -->|"renders"| node_workspace_list
node_workspace_list -->|"renders"| node_workspace_item
node_workspace_list -->|"queries"| node_firestore_config
node_workspace_item -->|"accesses"| node_firestore_config
node_visitor -->|"creates"| node_create_workspace
node_create_workspace -->|"opens"| node_cover_picker
node_create_workspace -->|"opens"| node_emoji_picker
node_create_workspace -->|"writes records"| node_firestore_config
node_firestore_config -->|"initializes"| node_firestore
node_workspace_route -->|"renders"| node_sidenav
node_workspace_route -->|"renders"| node_document_header
node_workspace_route -->|"reads workspace"| node_firestore_config
node_document_route -->|"renders"| node_sidenav
node_document_route -->|"renders"| node_editor_section
node_sidenav -->|"renders"| node_document_list
node_sidenav -->|"queries and writes"| node_firestore_config
node_document_list -->|"renders"| node_document_options
node_document_list -->|"queries"| node_firestore_config
node_editor_section -->|"renders"| node_document_header
node_editor_section -->|"renders"| node_document_info
node_editor_section -->|"renders"| node_rich_editor
node_document_info -->|"opens"| node_cover_picker
node_document_info -->|"opens"| node_emoji_picker
node_document_info -->|"updates metadata"| node_firestore_config
node_rich_editor -->|"stores output"| node_firestore_config
node_rich_editor -->|"opens"| node_ai_template
node_ai_template -->|"requests generation"| node_gemini_config
node_gemini_config -.->|"calls model"| node_gemini

click node_landing "https://github.com/evansabraham/syncsphere/blob/main/app/page.js"
click node_landing_header "https://github.com/evansabraham/syncsphere/blob/main/app/_components/Header.jsx"
click node_hero "https://github.com/evansabraham/syncsphere/blob/main/app/_components/Hero.jsx"
click node_signin "https://github.com/evansabraham/syncsphere/blob/main/app/(auth)/sign-in/%5B%5B...sign-in%5D%5D/page.jsx"
click node_signup "https://github.com/evansabraham/syncsphere/blob/main/app/(auth)/sign-up/%5B%5B...sign-up%5D%5D/page.jsx"
click node_dashboard "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/dashboard/page.js"
click node_workspace_list "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/dashboard/_components/WorkSpaceList.jsx"
click node_workspace_item "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/dashboard/_components/WorkSpaceListItem.jsx"
click node_create_workspace "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/createworkspace/page.jsx"
click node_cover_picker "https://github.com/evansabraham/syncsphere/blob/main/app/_components/CoverPicker.jsx"
click node_emoji_picker "https://github.com/evansabraham/syncsphere/blob/main/app/_components/EmojiPickerComponent.jsx"
click node_workspace_route "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/%5Bworkspaceid%5D/page.jsx"
click node_sidenav "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/SideNav.jsx"
click node_document_list "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentList.jsx"
click node_document_options "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentOptions.jsx"
click node_document_route "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/%5Bworkspaceid%5D/%5Bdocumentid%5D/page.jsx"
click node_editor_section "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentEditorSection.jsx"
click node_document_header "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentHeader.jsx"
click node_document_info "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentInfo.jsx"
click node_rich_editor "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/RichTextEditor.jsx"
click node_ai_template "https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/GenerateAITemplate.jsx"
click node_firestore_config "https://github.com/evansabraham/syncsphere/blob/main/config/firebaseConfig.js"
click node_gemini_config "https://github.com/evansabraham/syncsphere/blob/main/config/GoogleAIModel.jsx"

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_landing,node_landing_header,node_hero,node_signin,node_signup,node_visitor toneBlue
class node_dashboard,node_workspace_list,node_workspace_item,node_create_workspace,node_cover_picker,node_emoji_picker,node_workspace_route toneAmber
class node_sidenav,node_document_list,node_document_options,node_document_route,node_editor_section,node_document_header,node_document_info,node_rich_editor,node_ai_template,node_gemini toneMint
class node_firestore_config,node_firestore,node_gemini_config toneRose
```

## Components

### Entry and access

- [Landing page](https://github.com/evansabraham/syncsphere/blob/main/app/page.js): `app/page.js`
- [Landing header](https://github.com/evansabraham/syncsphere/blob/main/app/_components/Header.jsx): `app/_components/Header.jsx`
- [Hero content](https://github.com/evansabraham/syncsphere/blob/main/app/_components/Hero.jsx): `app/_components/Hero.jsx`
- [Sign-in page](https://github.com/evansabraham/syncsphere/blob/main/app/(auth)/sign-in/%5B%5B...sign-in%5D%5D/page.jsx): `app/(auth)/sign-in/[[...sign-in]]/page.jsx`
- [Sign-up page](https://github.com/evansabraham/syncsphere/blob/main/app/(auth)/sign-up/%5B%5B...sign-up%5D%5D/page.jsx): `app/(auth)/sign-up/[[...sign-up]]/page.jsx`

### Workspace management

- [Dashboard](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/dashboard/page.js): `app/(routes)/dashboard/page.js`
- [Workspace list](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/dashboard/_components/WorkSpaceList.jsx): `app/(routes)/dashboard/_components/WorkSpaceList.jsx`
- [Workspace item](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/dashboard/_components/WorkSpaceListItem.jsx): `app/(routes)/dashboard/_components/WorkSpaceListItem.jsx`
- [Create workspace](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/createworkspace/page.jsx): `app/(routes)/createworkspace/page.jsx`
- [Cover picker](https://github.com/evansabraham/syncsphere/blob/main/app/_components/CoverPicker.jsx): `app/_components/CoverPicker.jsx`
- [Emoji picker](https://github.com/evansabraham/syncsphere/blob/main/app/_components/EmojiPickerComponent.jsx): `app/_components/EmojiPickerComponent.jsx`
- [Workspace view](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/%5Bworkspaceid%5D/page.jsx): `app/(routes)/workspace/[workspaceid]/page.jsx`

### Document editing

- [Document sidebar](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/SideNav.jsx): `app/(routes)/workspace/_components/SideNav.jsx`
- [Document list](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentList.jsx): `app/(routes)/workspace/_components/DocumentList.jsx`
- [Document options](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentOptions.jsx): `app/(routes)/workspace/_components/DocumentOptions.jsx`
- [Document page](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/%5Bworkspaceid%5D/%5Bdocumentid%5D/page.jsx): `app/(routes)/workspace/[workspaceid]/[documentid]/page.jsx`
- [Editor section](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentEditorSection.jsx): `app/(routes)/workspace/_components/DocumentEditorSection.jsx`
- [Document header](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentHeader.jsx): `app/(routes)/workspace/_components/DocumentHeader.jsx`
- [Document metadata](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/DocumentInfo.jsx): `app/(routes)/workspace/_components/DocumentInfo.jsx`
- [Rich text editor](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/RichTextEditor.jsx): `app/(routes)/workspace/_components/RichTextEditor.jsx`
- [AI template generation](https://github.com/evansabraham/syncsphere/blob/main/app/(routes)/workspace/_components/GenerateAITemplate.jsx): `app/(routes)/workspace/_components/GenerateAITemplate.jsx`

### Data and AI services

- [Firebase configuration](https://github.com/evansabraham/syncsphere/blob/main/config/firebaseConfig.js): `config/firebaseConfig.js`
- **Firestore**
- [Gemini model setup](https://github.com/evansabraham/syncsphere/blob/main/config/GoogleAIModel.jsx): `config/GoogleAIModel.jsx`

### Other components

- **User**
- **Gemini API**

## Connections

- User → Landing page: opens (evidence: `README.md`)
- Landing page → Landing header: renders (evidence: `app/page.js`)
- Landing page → Hero content: renders (evidence: `app/page.js`)
- User → Sign-in page: authenticates (evidence: `app/(auth)/sign-in/[[...sign-in]]/page.jsx`)
- User → Sign-up page: registers (evidence: `app/(auth)/sign-up/[[...sign-up]]/page.jsx`)
- User → Dashboard: opens
- Dashboard → Workspace list: renders (evidence: `app/(routes)/dashboard/page.js`)
- Workspace list → Workspace item: renders (evidence: `app/(routes)/dashboard/_components/WorkSpaceList.jsx`)
- Workspace list → Firebase configuration: queries (evidence: `app/(routes)/dashboard/_components/WorkSpaceList.jsx`)
- Workspace item → Firebase configuration: accesses (evidence: `app/(routes)/dashboard/_components/WorkSpaceListItem.jsx`)
- User → Create workspace: creates (evidence: `README.md`)
- Create workspace → Cover picker: opens (evidence: `app/(routes)/createworkspace/page.jsx`)
- Create workspace → Emoji picker: opens (evidence: `app/(routes)/createworkspace/page.jsx`)
- Create workspace → Firebase configuration: writes records (evidence: `app/(routes)/createworkspace/page.jsx`)
- Firebase configuration → Firestore: initializes (evidence: `config/firebaseConfig.js`)
- Workspace view → Document sidebar: renders (evidence: `app/(routes)/workspace/[workspaceid]/page.jsx`)
- Workspace view → Document header: renders (evidence: `app/(routes)/workspace/[workspaceid]/page.jsx`)
- Workspace view → Firebase configuration: reads workspace (evidence: `app/(routes)/workspace/[workspaceid]/page.jsx`)
- Document page → Document sidebar: renders (evidence: `app/(routes)/workspace/[workspaceid]/[documentid]/page.jsx`)
- Document page → Editor section: renders (evidence: `app/(routes)/workspace/[workspaceid]/[documentid]/page.jsx`)
- Document sidebar → Document list: renders (evidence: `app/(routes)/workspace/_components/SideNav.jsx`)
- Document sidebar → Firebase configuration: queries and writes (evidence: `app/(routes)/workspace/_components/SideNav.jsx`)
- Document list → Document options: renders (evidence: `app/(routes)/workspace/_components/DocumentList.jsx`)
- Document list → Firebase configuration: queries (evidence: `app/(routes)/workspace/_components/DocumentList.jsx`)
- Editor section → Document header: renders (evidence: `app/(routes)/workspace/_components/DocumentEditorSection.jsx`)
- Editor section → Document metadata: renders (evidence: `app/(routes)/workspace/_components/DocumentEditorSection.jsx`)
- Editor section → Rich text editor: renders (evidence: `app/(routes)/workspace/_components/DocumentEditorSection.jsx`)
- Document metadata → Cover picker: opens (evidence: `app/(routes)/workspace/_components/DocumentInfo.jsx`)
- Document metadata → Emoji picker: opens (evidence: `app/(routes)/workspace/_components/DocumentInfo.jsx`)
- Document metadata → Firebase configuration: updates metadata (evidence: `app/(routes)/workspace/_components/DocumentInfo.jsx`)
- Rich text editor → Firebase configuration: stores output (evidence: `app/(routes)/workspace/_components/RichTextEditor.jsx`)
- Rich text editor → AI template generation: opens (evidence: `app/(routes)/workspace/_components/RichTextEditor.jsx`)
- AI template generation → Gemini model setup: requests generation (evidence: `app/(routes)/workspace/_components/GenerateAITemplate.jsx`)
- Gemini model setup → Gemini API: calls model
