How rhytam23/note-saver works
NoteNirman is an offline-first, cross-platform notes and study app. Users authenticate, create and edit notes locally, then synchronize changes in the background; they can also organize and search notes, use study tools, import or export data, and optionally use AI or Telegram. The graph emphasizes the documented live product workflow. The README says block editing, real-time collaboration, and semantic search are dormant, so those subsystems are not presented as active app paths. Some feature relationships are documented rather than verified in sampled implementation excerpts.
Main entry points: App.tsx App shell · syncEngine.ts Background sync · useAuth.ts Authentication · useNotes.ts Notes workflow
Components 20
App and experience
- App shell
src/App.tsx - Authentication
src/hooks/useAuth.ts - Note editor
src/components/NoteEditor.tsx
Notes and persistence
- Notes workflow
src/hooks/useNotes.ts - Local note store
src/services/localDb.ts - Background sync
src/services/syncEngine.ts - Local search
src/services/localSearchService.ts
Platform and themes
- Platform adapters
src/services/platform/platformAdapterFactory.ts - Platform interfaces
src/services/platform/platformInterfaces.ts - Seasonal themes
src/contexts/SeasonalContext.tsx
Study and portability
- Flashcards and notebooks
src/components/FlashcardsModal.tsx - Wiki links and graph
src/components/LinkGraphModal.tsx - Reminders
src/services/reminderEngine.ts - Import pipeline
src/services/importPipeline.ts - Export pipeline
src/services/exportPipeline.ts - Backup and restore
src/services/backupEngine.ts
Optional integrations
- Cloud auth and database
src/services/supabase.ts - Gemini assistant
supabase/functions/gemini-copilot/index.ts - Telegram bot
telegram/bot/index.ts
Other components
- App user
Connections 26
- App user → App shell: uses
README.md - App shell → Authentication: authenticates through
src/App.tsx - App shell → Notes workflow: loads notes through
src/App.tsx - App shell → Note editor: opens editor
src/App.tsx - Authentication → Cloud auth and database: uses auth
src/hooks/useAuth.ts - Authentication → Background sync: flushes pending work
src/hooks/useAuth.ts - Notes workflow → Local note store: reads and writes
src/hooks/useNotes.ts - Notes workflow → Background sync: requests sync
src/hooks/useNotes.ts - Background sync → Local note store: queues and persists
src/services/syncEngine.ts - Background sync → Cloud auth and database: syncs remotely
src/services/syncEngine.ts - App user → Local search: searches notes
README.md - App shell → Platform adapters: selects platform services
- Platform adapters → Platform interfaces: implements contracts
src/services/platform/platformAdapterFactory.ts - App shell → Seasonal themes: presents theme
src/App.tsx - Seasonal themes → App user: adapts to date and location
src/contexts/SeasonalContext.tsx - App user → Flashcards and notebooks: reviews and organizes
README.md - App user → Wiki links and graph: navigates note links
README.md - App shell → Reminders: synchronizes reminders
src/App.tsx - App user → Import pipeline: imports content
README.md - Import pipeline → Local note store: stores imported notes
src/services/importPipeline.ts - App user → Export pipeline: exports notes
README.md - App user → Backup and restore: backs up or restores
README.md - App user → Gemini assistant: optionally requests assistance
README.md - App shell → Gemini assistant: calls through edge function
README.md - App user → Telegram bot: optionally manages notes
README.md - Telegram bot → Cloud auth and database: accesses shared notes
README.md