How sanghyun01/pagepick works
PagePick is a mobile reading-journal app: readers track sessions, collect and correct passages, and archive them with books and photos. The documented collection workflow runs from camera capture through OCR and AI correction into saved sentences; book search, sharing, statistics, streaks, music, and Notion export are additional capabilities. The graph preserves those branches, but several are based on README claims and unsampled files, so their links are dashed and unverified. Direct service and view-model relationships are included only where the index or excerpts show them.
Main entry points: bookService.ts Book catalog · userService.ts User & streaks · supabase.ts Supabase backend · sentenceService.ts Passage records
Components 24
Reading & discovery
- Reading home
app/(tabs)/index.tsx - Session controls
src/view-models/useHomeViewModel.ts - Reading sessions
src/services/readingSessionService.ts - Camera capture
app/camera.tsx - OCR & correction
src/services/aiService.ts - Passage editor
app/write.tsx - Music playback
src/components/MusicPlayer.tsx - Music catalog
src/services/musicService.ts
Book archive
- Book selection
app/select-book.tsx - Selection logic
src/view-models/useSelectBookViewModel.ts - Book catalog
src/services/bookService.ts - Book detail logic
src/view-models/useBookDetailViewModel.ts - Book archive detail
app/book-detail/[id].tsx - Passage records
src/services/sentenceService.ts - Photo archive
src/services/photoService.ts - Notion export
src/services/notionExportService.ts
Account & insights
- Authentication view
app/auth.tsx - Account logic
src/view-models/useAuthViewModel.ts - User & streaks
src/services/userService.ts - Reading statistics
src/view-models/useStatsViewModel.ts
Platform services
- Supabase backend
src/lib/supabase.ts - Product analytics
src/lib/analytics.ts - Notion integration
supabase/functions/notion-export-test/index.ts
Other components
- Reader
Connections 36
- Reader → Reading home: opens
- Reading home → Session controls: uses
app/(tabs)/index.tsx - Reading home → Music catalog: loads music
app/(tabs)/index.tsx - Session controls → Reading sessions: records sessions
src/view-models/useHomeViewModel.ts - Reading sessions → User & streaks: gets user
src/services/readingSessionService.ts - Reading sessions → Supabase backend: reads/writes
src/services/readingSessionService.ts - Reading sessions → Product analytics: tracks events
src/services/readingSessionService.ts - Reader → Camera capture: captures passage
- Camera capture → OCR & correction: submits image
- OCR & correction → Passage editor: returns corrected text
- Passage editor → Book selection: continues to book
- Book selection → Selection logic: uses
app/select-book.tsx - Selection logic → Book catalog: queries books
src/view-models/useSelectBookViewModel.ts - Selection logic → Passage records: saves passage
src/view-models/useSelectBookViewModel.ts - Reader → Book catalog: searches ISBN
- Book catalog → Supabase backend: reads/writes
src/services/bookService.ts - Book catalog → Product analytics: tracks events
src/services/bookService.ts - Book archive detail → Book detail logic: uses
app/book-detail/[id].tsx - Book detail logic → Book catalog: updates books
src/view-models/useBookDetailViewModel.ts - Book detail logic → Passage records: manages passages
src/view-models/useBookDetailViewModel.ts - Book detail logic → User & streaks: gets user
src/view-models/useBookDetailViewModel.ts - Passage records → Supabase backend: reads/writes
src/services/sentenceService.ts - Passage records → User & streaks: recalculates streak
src/services/sentenceService.ts - Reader → Photo archive: archives photos
- Reader → Notion export: exports archive
- Notion export → Notion integration: invokes export
- Authentication view → Account logic: uses
app/auth.tsx - Account logic → User & streaks: account actions
src/view-models/useAuthViewModel.ts - Account logic → Supabase backend: auth operations
src/view-models/useAuthViewModel.ts - User & streaks → Supabase backend: reads/writes profiles
src/services/userService.ts - Reading statistics → Book catalog: loads reading data
src/view-models/useStatsViewModel.ts - Reading statistics → Passage records: loads passages
src/view-models/useStatsViewModel.ts - Reading statistics → User & streaks: loads profile
src/view-models/useStatsViewModel.ts - Music playback → Music catalog: loads tracks
src/components/MusicPlayer.tsx - Music catalog → Supabase backend: reads catalog
src/services/musicService.ts - Reader → Product analytics: activity measured