How prodromos522-bot/kkkkkk works
SERVERA is a Greek-language beauty and fragrance storefront. Shoppers discover products through the home, category, search, and product pages, manage a cart or wishlist, then check out; account features cover sign-in, addresses, and order history. The checkout server workflow coordinates pricing, stock, payment, order persistence, shipping, and notifications. The source index documents these modules and imports, but several routes and services were not sampled, so some capability links are shown as unverified rather than asserted.
Main entry points: routeTree.gen.ts Route table · orders.functions.ts Order workflow · products.ts Product catalog · checkout.tsx Checkout page
Components 27
Application
- Router
src/router.tsx - Route table
src/routeTree.gen.ts - Shared layout
src/routes/__root.tsx
Storefront
- Home page
src/routes/index.tsx - Category page
src/routes/category.$slug.tsx - Search page
src/routes/search.tsx - Product page
src/routes/product.$id.tsx - Product catalog
src/lib/products.ts - Catalog search
src/lib/catalog.ts
Cart and checkout
- Cart and wishlist
src/lib/cart.tsx - Cart drawer
src/components/shop/CartSheet.tsx - Checkout page
src/routes/checkout.tsx - Payment options
src/lib/payments.ts - PayPal button
src/components/shop/PaypalButton.tsx
Order operations
- PayPal integration
src/lib/paypal.server.ts - Order workflow
src/lib/orders.functions.ts - Order records
src/lib/orders.ts - Payment service
src/lib/payment.service.ts - Inventory service
src/lib/inventory.service.ts - Shipping rules
src/lib/shipping.ts - Notifications
src/lib/notification.service.ts - Supabase store
src/lib/supabase.server.ts
Customer account
- Account page
src/routes/account.tsx - Authentication
src/lib/auth.service.ts - Address service
src/lib/addresses.ts
Other components
- Shopper
- Supabase Auth
Connections 40
- Shopper → Router: opens store
src/router.tsx - Router → Route table: loads routes
src/router.tsx - Route table → Shared layout: registers route
src/routeTree.gen.ts - Route table → Home page: registers route
src/routeTree.gen.ts - Route table → Category page: registers route
src/routeTree.gen.ts - Route table → Search page: registers route
src/routeTree.gen.ts - Route table → Product page: registers route
src/routeTree.gen.ts - Route table → Checkout page: registers route
src/routeTree.gen.ts - Route table → Account page: registers route
src/routeTree.gen.ts - Shared layout → Shopper: renders storefront
- Home page → Product catalog: reads products
src/routes/index.tsx - Search page → Catalog search: queries catalog
src/routes/search.tsx - Catalog search → Product catalog: filters products
src/lib/catalog.ts - Category page → Product catalog: lists products
- Product page → Product catalog: loads product
src/routes/product.$id.tsx - Home page → Shopper: shows products
src/routes/index.tsx - Cart drawer → Cart and wishlist: reads and updates
src/components/shop/CartSheet.tsx - Shared layout → Cart and wishlist: provides cart
src/routes/__root.tsx - Product page → Cart and wishlist: updates cart
src/routes/product.$id.tsx - Checkout page → Cart and wishlist: reads cart
src/routes/checkout.tsx - Cart and wishlist → Product catalog: resolves items
src/lib/cart.tsx - Cart drawer → Checkout page: links checkout
src/components/shop/CartSheet.tsx - Checkout page → Payment options: loads options
src/routes/checkout.tsx - Checkout page → Order workflow: submits order
src/routes/checkout.tsx - Checkout page → PayPal button: renders payment
src/routes/checkout.tsx - PayPal button → PayPal integration: starts payment
- Order workflow → Product catalog: checks products
src/lib/orders.functions.ts - Order workflow → Inventory service: reserves stock
src/lib/orders.functions.ts - Order workflow → Payment service: processes payment
src/lib/orders.functions.ts - Order workflow → Shipping rules: calculates shipping
src/lib/orders.functions.ts - Order workflow → Notifications: sends notices
src/lib/orders.functions.ts - Order workflow → Supabase store: persists order
src/lib/orders.functions.ts - Payment service → PayPal integration: uses provider
src/lib/payment.service.ts - Payment service → Product catalog: validates prices
src/lib/payment.service.ts - Account page → Authentication: authenticates user
src/routes/account.tsx - Authentication → Supabase Auth: uses auth API
src/lib/auth.service.ts - Account page → Address service: manages addresses
src/routes/account.tsx - Account page → Order records: loads order history
src/routes/account.tsx - Address service → Supabase store: accesses data
src/lib/addresses.ts - Notifications → Supabase store: uses server client
src/lib/notification.service.ts