How moemenakari/livrelb works
LIVRE is a bilingual, mobile-first personalized-jewelry storefront with a Lebanese Lira collection and an admin panel. The main customer journey is browsing products, personalizing a design, adding it to a cart, and checking out; the repository also includes order tracking and account features. The catalog can read from Supabase or fall back to sample data. The graph preserves documented preview, coin, administration, analytics, and push capabilities. Some routes and actions were not sampled, so unverified workflow links are dashed rather than asserted as source-confirmed calls.
Main entry points: [locale] Storefront pages · catalog Catalog service · product-actions.ts Product actions · product Product browsing
Components 20
Storefront
- Storefront pages
src/app/[locale] - Product browsing
src/app/[locale]/product - Name preview
src/components/preview/name-preview.tsx - Lira coin scene
src/components/coin/coin-scene.tsx
Shopping
- Cart
src/components/cart/cart-contents.tsx - Checkout
src/components/checkout/checkout-form.tsx - Checkout actions
src/lib/checkout/actions.ts - Order tracking
src/lib/checkout/tracking.ts
Administration
- Admin panel
src/app/admin/(panel) - Product actions
src/lib/admin/product-actions.ts - Media manager
src/components/admin/media-manager.tsx
Data and services
- Catalog service
src/lib/catalog - Supabase
- Sample catalog
src/lib/catalog - Cloudflare R2
src/lib/storage/r2.ts - Analytics
src/lib/analytics - Push notifications
src/lib/push/notify.ts - WhatsApp routing
src/app/api/whatsapp/route.ts - Locale routing
src/i18n/routing.ts
Other components
- Shopper
Connections 19
- Shopper → Storefront pages: browses
README.md - Storefront pages → Catalog service: reads catalog
README.md - Catalog service → Supabase: reads data
README.md - Catalog service → Sample catalog: falls back
README.md - Storefront pages → Product browsing: opens products
- Product browsing → Name preview: previews name
- Storefront pages → Lira coin scene: shows coin
README.md - Shopper → Cart: adds items
- Cart → Checkout: starts checkout
- Checkout → Checkout actions: submits order
- Checkout actions → Supabase: persists order
- Shopper → Order tracking: tracks order
- Admin panel → Product actions: manages products
- Media manager → Product actions: requests upload
src/components/admin/media-manager.tsx - Product actions → Cloudflare R2: uses uploads
src/lib/admin/product-actions.ts - Storefront pages → Analytics: reports events
- Storefront pages → Push notifications: uses notifications
- Storefront pages → WhatsApp routing: resolves contact
- Storefront pages → Locale routing: routes locale