How marcuavius/jubook works
JuBook is a mobile book-discovery app. Readers browse popular and fiction/nonfiction selections or search Google Books, then view book details and save books to a persistent shelf. The app also provides a favorites-based feed and profile statistics. The feed’s media suggestions are locally generated placeholder content, not external recommendations. Some screen implementations were only sampled partially or listed in the source index, so the graph shows documented imports and calls without inferring unseen navigation actions.
Main entry points: FavoritesContext.tsx Favorites state · AppNavigator.tsx Navigation · HomeScreen.tsx Explore home · index.ts Book model
Components 16
App shell
- App root
App.tsx - Navigation
src/navigation/AppNavigator.tsx - Toast
src/components/Toast.tsx
Book discovery
- Explore home
src/screens/HomeScreen.tsx - Search bar
src/components/SearchBar.tsx - Books service
src/services/googleBooks.ts - Book card
src/components/BookCard.tsx
Reader features
- Book details
src/screens/BookDetailScreen.tsx - Shelf feed
src/screens/FeedScreen.tsx - My shelf
src/screens/MyShelfScreen.tsx - Reader profile
src/screens/ProfileScreen.tsx
Favorites and state
- Favorites state
src/context/FavoritesContext.tsx - Device storage
- Book model
src/types/index.ts
Other components
- Reader
- Google Books
Connections 22
- Reader → App root: opens app
- App root → Favorites state: provides state
App.tsx - App root → Navigation: renders
App.tsx - Navigation → Explore home: routes to
src/navigation/AppNavigator.tsx - Navigation → Book details: routes to
src/navigation/AppNavigator.tsx - Navigation → Shelf feed: routes to
src/navigation/AppNavigator.tsx - Navigation → Reader profile: routes to
src/navigation/AppNavigator.tsx - Navigation → Toast: renders
src/navigation/AppNavigator.tsx - Explore home → Search bar: renders
src/screens/HomeScreen.tsx - Explore home → Books service: requests books
src/screens/HomeScreen.tsx - Books service → Google Books: fetches volumes
src/services/googleBooks.ts - Explore home → Book card: renders results
src/screens/HomeScreen.tsx - Book card → Favorites state: checks and toggles
src/components/BookCard.tsx - Favorites state → Device storage: loads and saves
src/context/FavoritesContext.tsx - Shelf feed → Favorites state: reads shelf
src/screens/FeedScreen.tsx - My shelf → Favorites state: uses shelf
src/screens/MyShelfScreen.tsx - Reader profile → Favorites state: reads shelf
src/screens/ProfileScreen.tsx - Book details → Favorites state: uses favorites
src/screens/BookDetailScreen.tsx - Favorites state → Book model: stores books
src/context/FavoritesContext.tsx - Books service → Book model: maps results
src/services/googleBooks.ts - Explore home → Book model: uses book data
src/screens/HomeScreen.tsx - Shelf feed → Book model: builds feed items
src/screens/FeedScreen.tsx