How sonexapp/sonex works
Sonex is a native iOS vinyl-collection app centered on registering records, valuing and grading them, and browsing them in personal crates. Its main registration workflow starts with an NFC tag, sleeve-photo identification, or Discogs search, then resolves metadata, grades condition, sets a price, and saves the entry. Collection browsing, Discover, and Profile are major parallel product areas; Exchange remains a scaffold. The excerpts show selected data-layer and routing behavior, while other links below rely on README descriptions rather than inspected implementation.
Main entry points: ScanTabView.swift Scan Flow · TabContentRouter.swift Tab Router · SonexDBManager.swift Data And Offline Manager · DiscoverTabView.swift Discover Map And Posts
Components 25
Record Cataloging
- Scan Flow
Sonex/Sonex/Features/Scan/ScanTabView.swift - NFC Registration
Sonex/Sonex/Backend Services/NFCManager.swift - Sleeve Capture
Sonex/Sonex/Features/Scan/CameraCaptureView.swift - Vision OCR
Sonex/Sonex/Backend Services/TextRecognitionManager.swift - Gemini Suggestions
Sonex/Sonex/Backend Services/GeminiManager.swift - Discogs Catalog
Sonex/Sonex/Backend Services/DiscogsManager.swift - MusicBrainz Lookup
Sonex/Sonex/Backend Services/MusicBrainzAPIManager.swift - Registration Data
Sonex/Sonex/Features/Scan/VinylRegistrationData.swift - Grading And Pricing
Sonex/Sonex/Features/Scan/GradingView.swift - Vinyl Entry Model
SonexShared/Sources/SonexShared/Models/VinylEntry.swift
Collection Management
- Crate Browser
Sonex/Sonex/Features/Collection/CollectionListView.swift - Album Details
Sonex/Sonex/Features/Details/AlbumDetailsView.swift
Community
- Discover Map And Posts
Sonex/Sonex/Features/Discover/DiscoverTabView.swift - Discover Post Model
SonexShared/Sources/SonexShared/Models/DiscoverPost.swift - Profile And Following
Sonex/Sonex/Features/Profile/ProfileTabView.swift - User Details
Sonex/Sonex/Features/Profile/UserDetailsView.swift - Exchange Scaffold
Sonex/Sonex/Features/Exchange/ExchangeTabView.swift
App And Data
- Sonex App
Sonex/Sonex/App/SonexApp.swift - Tab Router
Sonex/Sonex/Navigation/TabContentRouter.swift - Data And Offline Manager
Sonex/Sonex/Backend Services/SonexDBManager.swift - Supabase
Other components
- Collector
- MapKit
- Discogs API
- Gemini API
Connections 35
- Collector → Sonex App: opens
- Sonex App → Tab Router: shows tabs
Sonex/Sonex/Navigation/TabContentRouter.swift - Tab Router → Scan Flow: routes to
Sonex/Sonex/Navigation/TabContentRouter.swift - Tab Router → Crate Browser: routes to
Sonex/Sonex/Navigation/TabContentRouter.swift - Tab Router → Discover Map And Posts: routes to
Sonex/Sonex/Navigation/TabContentRouter.swift - Tab Router → Exchange Scaffold: routes to
Sonex/Sonex/Navigation/TabContentRouter.swift - Tab Router → Profile And Following: routes to
Sonex/Sonex/Navigation/TabContentRouter.swift - Collector → NFC Registration: taps tag
- NFC Registration → Scan Flow: starts registration
Sonex/Sonex/Features/Scan/ScanTabView.swift - Collector → Sleeve Capture: captures sleeve
- Sleeve Capture → Vision OCR: provides image
- Vision OCR → Gemini Suggestions: sends recognized text
- Gemini Suggestions → Discogs Catalog: suggests search
- Scan Flow → Discogs Catalog: searches catalog
- Scan Flow → MusicBrainz Lookup: resolves metadata
- Scan Flow → Registration Data: updates
Sonex/Sonex/Features/Scan/ScanTabView.swift - Scan Flow → Grading And Pricing: collects grades
Sonex/Sonex/Features/Scan/ScanTabView.swift - Grading And Pricing → Registration Data: sets valuation
- Scan Flow → Data And Offline Manager: saves entry
Sonex/Sonex/Features/Scan/ScanTabView.swift - Registration Data → Vinyl Entry Model: builds record
Sonex/Sonex/Features/Scan/VinylRegistrationData.swift - Collector → Crate Browser: browses crates
- Crate Browser → Data And Offline Manager: loads cached and live data
- Crate Browser → Album Details: opens record
Sonex/Sonex/Features/Details/AlbumDetailsView.swift - Data And Offline Manager → Supabase: queries and writes
Sonex/Sonex/Backend Services/SonexDBManager.swift - Data And Offline Manager → Supabase: syncs queued writes
Sonex/Sonex/Backend Services/SonexDBManager.swift - Collector → Discover Map And Posts: explores nearby
- Discover Map And Posts → MapKit: plots nearby posts
- Discover Map And Posts → Data And Offline Manager: loads posts and RSVPs
Sonex/Sonex/Features/Discover/DiscoverTabView.swift - Discover Map And Posts → Discover Post Model: presents posts
Sonex/Sonex/Features/Discover/DiscoverTabView.swift - Collector → Profile And Following: views profile
- Profile And Following → Data And Offline Manager: loads stats and social data
Sonex/Sonex/Features/Profile/ProfileTabView.swift - Profile And Following → User Details: opens user
Sonex/Sonex/Features/Profile/ProfileTabView.swift - Collector → Exchange Scaffold: opens scaffold
- Discogs Catalog → Discogs API: requests catalog data
Sonex/Sonex/Backend Services/DiscogsManager.swift - Gemini Suggestions → Gemini API: requests suggestions