How anishree727-svg/collector-hub works
Collector’s Hub is a client-side collector community app: users browse and filter marketplace listings, view item details, save items into owned/wishlist/selling collections, and interact with community posts. The app shell routes among those experiences; page components call a simulated API where applicable, while shared context manages collection and social state, theme, and notifications. Data comes from in-repository mock catalogs, with user changes persisted in localStorage. The graph reflects documented capabilities and sampled calls; unsampled implementation details are represented only where README or index evidence supports them.
Main entry points: App.tsx App Router · HubContext.tsx Hub State · Marketplace.tsx Marketplace · CommunityFeed.tsx Community Feed
Components 15
App Shell
- React Entry
src/main.tsx - App Router
src/App.tsx - Navigation and Theme
src/components/Navbar.tsx - Toast Feedback
src/components/Toast.tsx
Browse and Discover
- Marketplace
src/pages/Marketplace.tsx - Item Cards
src/components/Card.tsx - Item Details
src/components/Modal.tsx - Loading Skeletons
src/components/Skeleton.tsx - My Collection
src/pages/MyCollection.tsx
Community
- Community Feed
src/pages/CommunityFeed.tsx
Shared State and Data
- Hub State
src/context/HubContext.tsx - Simulated API
src/services/api.ts - Mock Catalog
src/data/mockData.ts - Browser Storage
Other components
- Collector
Connections 24
- Collector → React Entry: uses app
README.md - React Entry → App Router: renders
src/main.tsx - App Router → Marketplace: routes to
src/App.tsx - App Router → Community Feed: routes to
src/App.tsx - App Router → My Collection: routes to
src/App.tsx - App Router → Hub State: provides state
src/App.tsx - App Router → Navigation and Theme: renders
src/App.tsx - App Router → Toast Feedback: renders
src/App.tsx - App Router → Simulated API: toggles failure
src/App.tsx - Navigation and Theme → Hub State: reads theme
src/components/Navbar.tsx - Toast Feedback → Hub State: reads toasts
src/components/Toast.tsx - Marketplace → Simulated API: loads listings
src/pages/Marketplace.tsx - Marketplace → Hub State: adds items
src/pages/Marketplace.tsx - Marketplace → Item Cards: renders
src/pages/Marketplace.tsx - Marketplace → Item Details: renders
src/pages/Marketplace.tsx - Marketplace → Loading Skeletons: renders loading
src/pages/Marketplace.tsx - Community Feed → Simulated API: loads posts
src/pages/CommunityFeed.tsx - Community Feed → Hub State: updates social state
src/pages/CommunityFeed.tsx - Community Feed → Loading Skeletons: renders loading
src/pages/CommunityFeed.tsx - My Collection → Hub State: reads and updates
src/pages/MyCollection.tsx - My Collection → Item Cards: renders
src/pages/MyCollection.tsx - Simulated API → Mock Catalog: reads listings and posts
src/services/api.ts - Hub State → Mock Catalog: loads defaults
src/context/HubContext.tsx - Hub State → Browser Storage: persists user state
README.md