How sanketp27/offgridai works
OffgridAI’s checked-in runtime is primarily a Next.js commerce experience: shoppers search a catalog, choose products, and can receive fit guidance or stockout alternatives; associates assess and confirm returns; merchants generate insight briefs. Shared session state ties shopper activity to the merchant view. The README describes a broader AI rescue platform, but the supplied backend entry point is empty and the sampled frontend delegates operations to an API layer, so the graph shows that boundary rather than undocumented backend internals. Edges reflect visible calls and imports; backend capabilities are documented aspirations, not verified implementation here.
Main entry points: StorefrontScreen.tsx Storefront flow · MerchantScreen.tsx Insight workspace · index.ts Commerce API methods · client.ts HTTP client
Components 19
Shopper discovery
- Storefront flow
frontend/src/features/storefront/screens/StorefrontScreen.tsx - Search input
frontend/src/features/discovery/components/DiscoverySearch.tsx - Discovery results
frontend/src/features/discovery/components/DiscoveryResults.tsx - Featured products
frontend/src/features/storefront/components/FeaturedGrid.tsx
Rescue and signals
- Fit guidance
frontend/src/features/fit-check/components/FitCheckPanel.tsx - Stockout rescue
frontend/src/features/rescue/components/StockoutRescuePanel.tsx - Insight workspace
frontend/src/features/insights/screens/MerchantScreen.tsx - Insight brief
frontend/src/features/insights/components/InsightCard.tsx
Associate operations
- Return assessment
frontend/src/features/returns/screens/AssociateScreen.tsx
Shared frontend services
- Session and cart
frontend/src/features/session/SessionProvider.tsx - Cart summary
frontend/src/features/session/components/CartStrip.tsx - Commerce API methods
frontend/src/lib/api/index.ts - HTTP client
frontend/src/lib/api/client.ts - API configuration
frontend/src/config/api.ts - Query cache
frontend/src/providers/QueryProvider.tsx
Other components
- Shopper
- Merchant
- Store associate
- Commerce API
Connections 19
- Shopper → Storefront flow: uses
README.md - Storefront flow → Search input: renders
frontend/src/features/storefront/screens/StorefrontScreen.tsx - Storefront flow → Discovery results: renders
frontend/src/features/storefront/screens/StorefrontScreen.tsx - Storefront flow → Featured products: renders
frontend/src/features/storefront/screens/StorefrontScreen.tsx - Storefront flow → Fit guidance: renders
frontend/src/features/storefront/screens/StorefrontScreen.tsx - Storefront flow → Stockout rescue: renders
frontend/src/features/storefront/screens/StorefrontScreen.tsx - Storefront flow → Commerce API methods: searches catalog
frontend/src/features/storefront/screens/StorefrontScreen.tsx - Storefront flow → Session and cart: updates session
frontend/src/features/storefront/screens/StorefrontScreen.tsx - Storefront flow → Cart summary: renders
frontend/src/features/storefront/screens/StorefrontScreen.tsx - Merchant → Insight workspace: uses
README.md - Insight workspace → Commerce API methods: requests insights
frontend/src/features/insights/screens/MerchantScreen.tsx - Insight workspace → Session and cart: reads activity
frontend/src/features/insights/screens/MerchantScreen.tsx - Insight workspace → Insight brief: renders briefs
frontend/src/features/insights/screens/MerchantScreen.tsx - Store associate → Return assessment: uses
README.md - Return assessment → Commerce API methods: assesses and confirms
frontend/src/features/returns/screens/AssociateScreen.tsx - Commerce API methods → HTTP client: delegates requests
frontend/src/lib/api/client.ts - HTTP client → API configuration: uses base URL
frontend/src/lib/api/client.ts - HTTP client → Commerce API: sends HTTP
frontend/src/lib/api/client.ts - Storefront flow → Query cache: uses queries