How brianandhikap/accessgo-retail-v2 works
AccessGo Retail is a multi-shop retail platform with WhatsApp/Telegram sales, AI-assisted ordering, QRIS payment, fulfillment, and tenant administration. The customer workflow runs from the public storefront through chat, order and payment processing to shipment tracking; admins manage shops, catalog, staff, promotions, and finances, while Super Admins manage tenants and plans. The graph includes documented capabilities whose route implementations were not sampled. Edges are limited to README statements and source-index references; unsampled route internals are represented at their exact directory path.
Main entry points: App.jsx App routes · orders.js Order lifecycle · routes API routes · channels.js Chat channels
Components 34
Web application
- App routes
src/App.jsx - Session and shop state
src/ctx.jsx - API client
src/api.js - Catalog management
src/pages/Products.jsx - Order management
src/pages/Orders.jsx - Shop operations
src/pages/Shops.jsx - Finance screens
src/pages/Finance.jsx - Platform controls
src/pages/Superadmin.jsx
Sales and fulfillment
- Public storefront
src/pages/Storefront.jsx - Invoice tracking
src/pages/Invoice.jsx - Catalog and promotions
server/services/catalog.js - Order lifecycle
server/services/orders.js - QRIS payments
server/services/singapay.js - Shipping quotes
server/services/kiriminaja.js - Refund handling
server/services/refunds.js
Messaging and assistance
- AI order assistant
server/services/ai.js - Chat channels
server/services/channels.js - WhatsApp connector
server/services/whatsapp.js - Telegram connector
server/services/telegram.js
Platform operations
- API routes
server/routes - Authentication
server/auth.js - Shop wallet
server/services/wallet.js - Plans and access
server/services/plans.js - Subscriptions
server/services/billing.js - Notifications
server/services/notify.js - Account email
server/services/accountMail.js
Persistence
- Retail database
server/db.js
Other components
- Customer
- Shop admin
- Super Admin
- Singapay
- KiriminAja
- Telegram
Connections 48
- Customer → Public storefront: browses and orders
- Public storefront → API client: requests data
src/pages/Storefront.jsx - Public storefront → WhatsApp: orders through
- Public storefront → Telegram: orders through
- WhatsApp → Chat channels: delivers messages
- Telegram → Chat channels: delivers messages
- Chat channels → AI order assistant: handles incoming
server/services/channels.js - AI order assistant → Catalog and promotions: reads catalog
server/services/ai.js - AI order assistant → Order lifecycle: starts orders
server/services/ai.js - AI order assistant → Shipping quotes: gets shipping rates
server/services/ai.js - Order lifecycle → QRIS payments: creates QRIS
server/services/orders.js - Order lifecycle → Shipping quotes: creates shipment
server/services/orders.js - Order lifecycle → Chat channels: sends invoice
server/services/orders.js - QRIS payments → Singapay: requests payment
- Shipping quotes → KiriminAja: requests delivery
- Singapay → API routes: sends payment webhook
- API routes → Order lifecycle: confirms payment
server/routes/webhooks.js - Order lifecycle → Shop wallet: credits shop
server/services/orders.js - Order lifecycle → Notifications: notifies parties
server/services/orders.js - Order lifecycle → Refund handling: coordinates refunds
server/services/orders.js - Order lifecycle → Retail database: reads and writes
server/services/orders.js - Chat channels → WhatsApp connector: dispatches WhatsApp
server/services/channels.js - Chat channels → Telegram connector: dispatches Telegram
server/services/channels.js - WhatsApp connector → WhatsApp: connects
- Telegram connector → Telegram: connects
- Shop admin → App routes: manages shop
- Super Admin → App routes: manages platform
- App routes → Session and shop state: loads providers
src/App.jsx - Session and shop state → API client: fetches session
src/ctx.jsx - App routes → Public storefront: routes to
src/App.jsx - App routes → Invoice tracking: routes to
src/App.jsx - App routes → Catalog management: routes to
src/App.jsx - App routes → Order management: routes to
src/App.jsx - App routes → Shop operations: routes to
src/App.jsx - App routes → Finance screens: routes to
src/App.jsx - App routes → Platform controls: routes to
src/App.jsx - API client → API routes: calls API
- API routes → Authentication: authenticates requests
server/routes/auth.js - API routes → Catalog and promotions: manages catalog
- API routes → Plans and access: checks entitlements
server/routes/auth.js - API routes → Subscriptions: handles subscriptions
server/routes/webhooks.js - API routes → Shop wallet: handles withdrawals
server/routes/superadmin.js - API routes → Account email: queues account email
server/routes/auth.js - Plans and access → Retail database: reads plans
server/services/plans.js - Subscriptions → QRIS payments: creates subscription payments
server/services/billing.js - Subscriptions → Account email: sends account email
server/services/billing.js - Shop wallet → Retail database: records ledger
server/services/wallet.js - Notifications → WhatsApp connector: sends alerts
server/services/notify.js