How dhruval12098/hod works
House of Diams is a jewellery commerce storefront with product discovery, configurable products, cart, checkout, customer accounts, and editorial and brand content. The checkout excerpts establish order preparation, payment creation, verification, and finalization; the tree identifies wider storefront and content capabilities. Several page and API implementations were not sampled, so uncertain wiring between them is omitted.
Main entry points: razorpay.ts Razorpay integration · server-supabase.ts Supabase data and auth · place/route.ts Place order · verify/route.ts Payment verification
Components 26
Storefront
- Home storefront
app/page.tsx - Cart
app/cart/page.tsx - Cart API
app/api/public/products/cart/route.ts
Product discovery
- Shop and categories
app/shop/page.tsx - Category pages
app/[categorySlug]/CategoryCollectionPageContent.tsx - Product detail
app/shop/[slug]/page.tsx - Product configurator
components/product/ProductConfigurator.jsx - Product APIs
app/api/public/products/route.ts - Search and recommendations
app/api/public/products/search/route.ts
Checkout and payments
- Checkout flow
components/checkout/CheckoutPageClient.tsx - Place order
app/api/checkout/place/route.ts - Order preparation
lib/checkout-order.ts - Checkout pricing
lib/checkout-pricing.ts - Razorpay integration
lib/razorpay.ts - Payment verification
app/api/payments/verify/route.ts - Payment webhook
app/api/payments/webhook/route.ts - Payment recovery
lib/payment-recovery.ts - Order confirmation
app/api/checkout/success/route.ts
Customer accounts
- Profile and orders
app/api/profile/route.ts - Sign-in and profile UI
components/auth/AuthForm.tsx
Brand and editorial
- Brand and bespoke
app/bespoke/page.tsx - Blog and education
app/blog/page.tsx - Contact and enquiries
app/api/public/contact/submit/route.ts
Other components
- Shopper
- Supabase data and auth
lib/server-supabase.ts - Razorpay
Connections 27
- Shopper → Home storefront: browses
- Shopper → Shop and categories: explores
- Shopper → Category pages: filters
- Shopper → Product detail: views
- Shopper → Cart: manages
- Shopper → Checkout flow: checks out
- Shopper → Sign-in and profile UI: signs in
- Shopper → Brand and bespoke: learns about
- Shopper → Blog and education: reads
- Product detail → Product configurator: configures
- Place order → Order preparation: prepares order
- Place order → Checkout pricing: prepares quote
- Place order → Supabase data and auth: records attempt
- Place order → Razorpay integration: creates payment order
- Razorpay integration → Razorpay: calls
- Payment verification → Razorpay integration: verifies and captures
- Payment verification → Order preparation: finalizes payment
- Payment verification → Payment recovery: recovers capture
- Payment verification → Supabase data and auth: checks order
- Payment webhook → Razorpay integration: verifies and captures
- Payment webhook → Order preparation: finalizes payment
- Payment webhook → Payment recovery: recovers capture
- Payment webhook → Supabase data and auth: records events
- Order confirmation → Razorpay integration: checks payment
- Order confirmation → Order preparation: finalizes payment
- Order confirmation → Supabase data and auth: reads order details
- Profile and orders → Supabase data and auth: reads and updates profile