How yash-petkar/agentcart-v2 works
AgentCart is an AI-assisted e-commerce platform for customers, sellers, and administrators. The customer journey runs from natural-language or conventional product discovery through recommendations and comparison, cart, checkout, payment, and order tracking. Seller tools and admin management form separate branches. The excerpts and README establish the principal routes and backend responsibilities; unsampled implementation details are represented only where documented, so some feature-level links are omitted.
Main entry points: server.ts REST API · App.tsx Storefront app · api.ts API client · ProductsPage.tsx Product discovery
Components 24
Customer shopping
- Storefront app
src/App.tsx - Product discovery
src/pages/ProductsPage.tsx - Product details
src/pages/ProductDetailPage.tsx - Product comparison
src/components/CompareModal.tsx - Shopping assistant
src/components/AIAssistantDrawer.tsx - Cart
src/pages/CartPage.tsx - Checkout
src/pages/CheckoutPage.tsx - Orders and tracking
src/pages/OrdersPage.tsx
Commerce backend
- Product catalog
server/catalogData.ts - Additional catalog data
server/moreCatalogData.ts - Payment processing
server/razorpay.ts - Order tracking
server/tracking.ts
AI capabilities
- Shopping agent
server/ai.ts - Recommendations and comparison
server/recommendation.ts
Seller and admin
- Seller dashboard
src/pages/SellerPage.tsx - Seller AI tools
server/sellerAi.ts - Seller AI panels
src/components/seller - Admin management
src/pages/AdminPage.tsx
Platform services
- API client
src/lib/api.ts - REST API
server.ts - Authentication
server/auth.ts - Application database
server/db.ts
Other components
- Customer
- Razorpay
Connections 31
- Customer → Storefront app: uses
README.md - Storefront app → Product discovery: routes to
src/App.tsx - Storefront app → Product details: routes to
src/App.tsx - Storefront app → Shopping assistant: renders
src/App.tsx - Storefront app → Seller dashboard: routes to
src/App.tsx - Storefront app → Admin management: routes to
src/App.tsx - Product discovery → Product comparison: supports comparing
README.md - Product details → Product comparison: supports comparing
README.md - Storefront app → Cart: manages cart
README.md - Cart → Checkout: proceeds to
README.md - Checkout → Orders and tracking: creates order
README.md - Orders and tracking → Order tracking: shows tracking
README.md - Product discovery → API client: requests products
- Product details → API client: requests product
src/pages/ProductDetailPage.tsx - Shopping assistant → API client: sends messages
src/lib/api.ts - Checkout → API client: requests checkout
src/lib/api.ts - Orders and tracking → API client: requests orders
src/lib/api.ts - Seller dashboard → API client: requests seller actions
src/lib/api.ts - API client → REST API: calls REST API
src/lib/api.ts - REST API → Authentication: uses authorization
server.ts - REST API → Application database: reads and writes
server.ts - Application database → Product catalog: loads products
server/db.ts - Product catalog → Additional catalog data: includes products
server/catalogData.ts - REST API → Shopping agent: dispatches chat
server.ts - REST API → Recommendations and comparison: generates comparison
server.ts - REST API → Seller AI tools: dispatches listing tools
server.ts - REST API → Payment processing: creates and verifies payment
server.ts - Payment processing → Razorpay: uses gateway
- REST API → Order tracking: serves tracking
server.ts - Seller dashboard → Seller AI panels: renders panels
src/pages/SellerPage.tsx - Seller AI panels → API client: requests AI tools
src/components/seller/AiReviewIntelligence.tsx