How helstore/new-helstore works
HELSTORE is a digital-product storefront with customer browsing, cart and checkout, post-payment delivery, and store administration. The README describes the brand and storefront experience; the source index also reveals operational payment, download, newsletter, and admin capabilities. The principal workflow runs from product browsing through checkout to webhook-driven fulfillment. Some route and admin wiring was not sampled, so those connections are omitted rather than inferred.
Main entry points: index.tsx Checkout Page · webhook.ts Stripe Webhook · catalog.ts Product Catalog · shop Shop Routes
Components 24
Storefront
- Home Page
src/routes/index.tsx - Storefront Sections
src/components/site - Shop Routes
src/routes/shop - Product Page
src/routes/product/$slug.tsx - Product Catalog
src/data/catalog.ts
Commerce
- Cart State
src/lib/cart.tsx - Cart Page
src/routes/cart.tsx - Checkout Page
src/routes/checkout/index.tsx - Stripe Checkout API
src/routes/api/stripe/checkout.ts - Stripe
Order Fulfillment
- Stripe Webhook
src/routes/api/stripe/webhook.ts - Order Store
src/lib/supabase-server.ts - Download Links
src/lib/downloads.server.ts - Order Email
src/lib/email.ts - Download Routes
src/routes/api/downloads/$slug.ts - Newsletter API
src/routes/api/newsletter.ts - Contact API
src/routes/api/contact.ts
Store Administration
- Admin Route
src/routes/admin.tsx - Store Manager
src/components/admin/StoreManager.tsx - Product File Manager
src/components/admin/ProductFilesManager.tsx - Order Manager
src/components/admin/OrderManager.tsx - Catalog Overrides
src/lib/admin-overrides.ts - Product File Service
src/lib/product-files.ts
Other components
- Customer
Connections 28
- Customer → Home Page: browses
src/routes/index.tsx - Home Page → Storefront Sections: renders
src/routes/index.tsx - Customer → Shop Routes: browses
- Shop Routes → Product Catalog: reads
src/routes/shop/index.tsx - Shop Routes → Product Page: opens product
- Product Page → Product Catalog: reads
src/routes/product/$slug.tsx - Product Page → Cart State: adds items
src/routes/product/$slug.tsx - Customer → Cart Page: reviews cart
- Cart Page → Cart State: reads
- Customer → Checkout Page: checks out
- Checkout Page → Cart State: reads
src/routes/checkout/index.tsx - Checkout Page → Product Catalog: reads
src/routes/checkout/index.tsx - Checkout Page → Stripe Checkout API: starts payment
- Stripe Checkout API → Stripe: creates session
- Stripe → Stripe Webhook: sends event
- Stripe Webhook → Order Store: persists order
src/routes/api/stripe/webhook.ts - Stripe Webhook → Download Links: resolves links
src/routes/api/stripe/webhook.ts - Stripe Webhook → Order Email: sends receipt
src/routes/api/stripe/webhook.ts - Customer → Download Routes: downloads
- Admin Route → Store Manager: hosts
- Store Manager → Catalog Overrides: loads and saves
src/components/admin/StoreManager.tsx - Store Manager → Product File Manager: uploads files
- Product File Manager → Product Catalog: builds product list
src/components/admin/ProductFilesManager.tsx - Product File Manager → Product File Service: uploads files
src/components/admin/ProductFilesManager.tsx - Order Manager → Order Store: reads orders
- Customer → Newsletter API: subscribes
- Newsletter API → Order Email: sends email
src/routes/api/newsletter.ts - Customer → Contact API: sends inquiry