How kiranwnr98/sliverhub works
This repository is a React jewellery storefront: shoppers browse collections and products, save favourites, manage a cart, and see a live silver-rate widget on the home page. The graph follows the routed app through its shared layout to the main shopping stages, then shows product data and cart/wishlist state. It also preserves the standalone product-detail and checkout pages present in the tree, though the sampled router does not register them and checkout is only a placeholder. Source excerpts establish the main calls; unsampled subsystem links are omitted.
Main entry points: App.tsx App Router · Home.tsx Home Page · ProductCard.tsx Product Card · Wishlist.tsx Wishlist Page
Components 23
Application Shell
- React Entry
src/main.tsx - App Router
src/App.tsx - Main Layout
src/layouts/MainLayout.tsx
Storefront Browsing
- Home Page
src/pages/Home.tsx - Shop Page
src/pages/Shop.tsx - Collections Page
src/pages/Collections.tsx - New Arrivals
src/pages/NewArrivals.tsx - About Page
src/pages/About.tsx - Product Details
src/pages/ProductDetails.tsx - Product Card
src/components/ProductCard.tsx - Category Card
src/components/CategoryCard.tsx - Product Data
src/data/products.ts - Collection Data
src/data/collections.ts - Category Data
src/data/categories.ts
Shopping State
- Cart Page
src/pages/Cart.tsx - Wishlist Page
src/pages/Wishlist.tsx - Cart State
src/context/CartContext.tsx - Wishlist State
src/context/WishlistContext.tsx - Checkout Placeholder
src/pages/Checkout.tsx
Market Rate
- Silver Rate Hook
src/hooks/useSilverRate.ts - Silver Rate Widget
src/components/SilverRateWidget.tsx - Rate Function
netlify/functions/silver-rate.mjs
Other components
- Shopper
Connections 31
- Shopper → React Entry: opens storefront
- React Entry → App Router: renders app
src/main.tsx - App Router → Main Layout: wraps routes
src/App.tsx - App Router → Home Page: routes to
src/App.tsx - App Router → Shop Page: routes to
src/App.tsx - App Router → Collections Page: routes to
src/App.tsx - App Router → New Arrivals: routes to
src/App.tsx - App Router → About Page: routes to
src/App.tsx - App Router → Cart Page: routes to
src/App.tsx - App Router → Wishlist Page: routes to
src/App.tsx - Home Page → Product Card: renders products
src/pages/Home.tsx - Shop Page → Product Card: renders products
src/pages/Shop.tsx - New Arrivals → Product Card: renders products
src/pages/NewArrivals.tsx - Wishlist Page → Product Card: renders products
src/pages/Wishlist.tsx - Collections Page → Category Card: renders categories
src/pages/Collections.tsx - Home Page → Product Data: reads products
src/pages/Home.tsx - Home Page → Collection Data: reads arrivals
src/pages/Home.tsx - Shop Page → Product Data: reads products
src/pages/Shop.tsx - New Arrivals → Collection Data: reads arrivals
src/pages/NewArrivals.tsx - Collections Page → Category Data: reads categories
src/pages/Collections.tsx - Wishlist Page → Product Data: reads products
src/pages/Wishlist.tsx - Wishlist Page → Collection Data: reads arrivals
src/pages/Wishlist.tsx - Product Details → Cart State: updates cart
src/pages/ProductDetails.tsx - Product Details → Wishlist State: updates wishlist
src/pages/ProductDetails.tsx - Product Card → Cart State: updates cart
src/components/ProductCard.tsx - Product Card → Wishlist State: updates wishlist
src/components/ProductCard.tsx - Cart Page → Cart State: reads and updates
src/pages/Cart.tsx - Wishlist Page → Wishlist State: reads wishlist
src/pages/Wishlist.tsx - Home Page → Silver Rate Hook: fetches rate
src/pages/Home.tsx - Home Page → Silver Rate Widget: renders rate
- Silver Rate Hook → Rate Function: fetches endpoint
src/hooks/useSilverRate.ts