How evansabraham/syncsphere works
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: firebaseConfig.js Firebase configuration · page.jsx Create workspace · DocumentEditorSection.jsx Editor section · DocumentInfo.jsx Document metadata
Components 26
Entry and access
- Landing page
app/page.js - Landing header
app/_components/Header.jsx - Hero content
app/_components/Hero.jsx - Sign-in page
app/(auth)/sign-in/[[...sign-in]]/page.jsx - Sign-up page
app/(auth)/sign-up/[[...sign-up]]/page.jsx
Workspace management
- Dashboard
app/(routes)/dashboard/page.js - Workspace list
app/(routes)/dashboard/_components/WorkSpaceList.jsx - Workspace item
app/(routes)/dashboard/_components/WorkSpaceListItem.jsx - Create workspace
app/(routes)/createworkspace/page.jsx - Cover picker
app/_components/CoverPicker.jsx - Emoji picker
app/_components/EmojiPickerComponent.jsx - Workspace view
app/(routes)/workspace/[workspaceid]/page.jsx
Document editing
- Document sidebar
app/(routes)/workspace/_components/SideNav.jsx - Document list
app/(routes)/workspace/_components/DocumentList.jsx - Document options
app/(routes)/workspace/_components/DocumentOptions.jsx - Document page
app/(routes)/workspace/[workspaceid]/[documentid]/page.jsx - Editor section
app/(routes)/workspace/_components/DocumentEditorSection.jsx - Document header
app/(routes)/workspace/_components/DocumentHeader.jsx - Document metadata
app/(routes)/workspace/_components/DocumentInfo.jsx - Rich text editor
app/(routes)/workspace/_components/RichTextEditor.jsx - AI template generation
app/(routes)/workspace/_components/GenerateAITemplate.jsx
Data and AI services
- Firebase configuration
config/firebaseConfig.js - Firestore
- Gemini model setup
config/GoogleAIModel.jsx
Other components
- User
- Gemini API
Connections 34
- User → Landing page: opens
README.md - Landing page → Landing header: renders
app/page.js - Landing page → Hero content: renders
app/page.js - User → Sign-in page: authenticates
app/(auth)/sign-in/[[...sign-in]]/page.jsx - User → Sign-up page: registers
app/(auth)/sign-up/[[...sign-up]]/page.jsx - User → Dashboard: opens
- Dashboard → Workspace list: renders
app/(routes)/dashboard/page.js - Workspace list → Workspace item: renders
app/(routes)/dashboard/_components/WorkSpaceList.jsx - Workspace list → Firebase configuration: queries
app/(routes)/dashboard/_components/WorkSpaceList.jsx - Workspace item → Firebase configuration: accesses
app/(routes)/dashboard/_components/WorkSpaceListItem.jsx - User → Create workspace: creates
README.md - Create workspace → Cover picker: opens
app/(routes)/createworkspace/page.jsx - Create workspace → Emoji picker: opens
app/(routes)/createworkspace/page.jsx - Create workspace → Firebase configuration: writes records
app/(routes)/createworkspace/page.jsx - Firebase configuration → Firestore: initializes
config/firebaseConfig.js - Workspace view → Document sidebar: renders
app/(routes)/workspace/[workspaceid]/page.jsx - Workspace view → Document header: renders
app/(routes)/workspace/[workspaceid]/page.jsx - Workspace view → Firebase configuration: reads workspace
app/(routes)/workspace/[workspaceid]/page.jsx - Document page → Document sidebar: renders
app/(routes)/workspace/[workspaceid]/[documentid]/page.jsx - Document page → Editor section: renders
app/(routes)/workspace/[workspaceid]/[documentid]/page.jsx - Document sidebar → Document list: renders
app/(routes)/workspace/_components/SideNav.jsx - Document sidebar → Firebase configuration: queries and writes
app/(routes)/workspace/_components/SideNav.jsx - Document list → Document options: renders
app/(routes)/workspace/_components/DocumentList.jsx - Document list → Firebase configuration: queries
app/(routes)/workspace/_components/DocumentList.jsx - Editor section → Document header: renders
app/(routes)/workspace/_components/DocumentEditorSection.jsx - Editor section → Document metadata: renders
app/(routes)/workspace/_components/DocumentEditorSection.jsx - Editor section → Rich text editor: renders
app/(routes)/workspace/_components/DocumentEditorSection.jsx - Document metadata → Cover picker: opens
app/(routes)/workspace/_components/DocumentInfo.jsx - Document metadata → Emoji picker: opens
app/(routes)/workspace/_components/DocumentInfo.jsx - Document metadata → Firebase configuration: updates metadata
app/(routes)/workspace/_components/DocumentInfo.jsx - Rich text editor → Firebase configuration: stores output
app/(routes)/workspace/_components/RichTextEditor.jsx - Rich text editor → AI template generation: opens
app/(routes)/workspace/_components/RichTextEditor.jsx - AI template generation → Gemini model setup: requests generation
app/(routes)/workspace/_components/GenerateAITemplate.jsx - Gemini model setup → Gemini API: calls model