How flowz5/topaze-notes works
Topaze Notes is a collaborative knowledge-base app. Users sign in, choose or create a knowledge base, then organize folders and notes, search and link notes, and edit them collaboratively. The sampled code shows routing, authentication, Firestore reads/writes, and the editor’s Yjs/WebRTC setup. The README documents graph visualization and presence, but those implementations are not shown in the excerpts; their links are therefore marked unverified.
Main entry points: KbView.tsx Knowledge workspace · App.tsx App router · TiptapEditor.tsx Rich-text editor · Home.tsx Knowledge dashboard
Components 15
Access and navigation
- App router
src/App.tsx - Sign-in
src/pages/Login.tsx
Knowledge bases
- Knowledge dashboard
src/pages/Home.tsx - Knowledge workspace
src/pages/KbView.tsx - Note graph
src/pages/KbView.tsx - Global search
src/pages/KbView.tsx - Folders and notes
src/pages/KbView.tsx
Note authoring
- Rich-text editor
src/components/TiptapEditor.tsx - Mention suggestions
src/components/mentionSuggestion.tsx
Data and collaboration
- Firebase client
src/firebase.ts - Firebase Auth
- Firestore
- Yjs document
src/components/TiptapEditor.tsx - WebRTC sync
src/components/TiptapEditor.tsx
Other components
- User
Connections 19
- User → App router: opens app
src/App.tsx - App router → Firebase client: checks session
src/App.tsx - App router → Sign-in: routes to
src/App.tsx - App router → Knowledge dashboard: routes to
src/App.tsx - App router → Knowledge workspace: routes to
src/App.tsx - User → Sign-in: authenticates
src/pages/Login.tsx - Sign-in → Firebase Auth: signs in or registers
src/pages/Login.tsx - Knowledge dashboard → Firestore: queries and creates bases
src/pages/Home.tsx - Knowledge dashboard → Knowledge workspace: opens a base
- Knowledge workspace → Firestore: reads and writes notes
src/pages/KbView.tsx - Knowledge workspace → Rich-text editor: renders editor
src/pages/KbView.tsx - Rich-text editor → Yjs document: edits shared document
src/components/TiptapEditor.tsx - Rich-text editor → WebRTC sync: connects peers
src/components/TiptapEditor.tsx - Rich-text editor → Mention suggestions: uses suggestions
src/components/TiptapEditor.tsx - Knowledge workspace → Global search: provides search
src/pages/KbView.tsx - Knowledge workspace → Folders and notes: organizes content
src/pages/KbView.tsx - Knowledge workspace → Note graph: offers graph view
src/pages/KbView.tsx - Firebase client → Firebase Auth: initializes client
src/firebase.ts - Firebase client → Firestore: initializes database
src/firebase.ts