How madhav-does/nexxon works
NEXXON is a Next.js marketplace and customer-support application centered on browsing products and starting buyer–seller chats, with a separate messaging center and support-agent dashboard. Shared client providers expose chat state and persistent chat/support UI across pages. The README documents secure server-side token minting and credential setup routes; those routes are represented, though their implementation details beyond the sampled token and config-status handlers were not inspected. Several page and chat components are only partially excerpted, so edges are limited to imports, calls, and documented relationships shown in the evidence.
Main entry points: ChatContext.tsx Chat state and engine · ClientProviders.tsx Shared client shell · mockData.ts Demo catalog data · page.tsx Messaging center
Components 18
Marketplace
- Browse catalog
src/app/page.tsx - Demo catalog data
src/data/mockData.ts - Role switcher
src/components/Navbar.tsx
Messaging
- Messaging center
src/app/messages/page.tsx - Inquiry drawer
src/components/chat/ChatDrawer.tsx - Official ChatUI
src/components/chat/NexconnChatUIProvider.tsx
Customer Support
- Agent dispatch
src/app/support-dashboard/page.tsx - Help widget
src/components/chat/SupportWidget.tsx
Chat Runtime
- Shared client shell
src/components/ClientProviders.tsx - Chat state and engine
src/context/ChatContext.tsx
Credentials
- Credential assistant
src/components/CredentialsModal.tsx - Config status API
src/app/api/nexconn/config-status/route.ts - Save credentials API
src/app/api/nexconn/save-credentials/route.ts - Token minting API
src/app/api/nexconn/token/route.ts
Other components
- Marketplace user
- Support agent
- Nexconn chat services
- Nexconn token service
Connections 27
- Marketplace user → Browse catalog: browses
README.md - Browse catalog → Demo catalog data: reads listings
src/app/page.tsx - Browse catalog → Chat state and engine: starts inquiry
src/app/page.tsx - Role switcher → Chat state and engine: switches identity
src/components/Navbar.tsx - Marketplace user → Messaging center: opens conversations
README.md - Messaging center → Chat state and engine: uses chat state
src/app/messages/page.tsx - Messaging center → Demo catalog data: looks up users
src/app/messages/page.tsx - Messaging center → Official ChatUI: loads UI option
src/app/messages/page.tsx - Inquiry drawer → Chat state and engine: uses chat state
src/components/chat/ChatDrawer.tsx - Inquiry drawer → Demo catalog data: looks up users
src/components/chat/ChatDrawer.tsx - Support agent → Agent dispatch: handles inquiries
README.md - Agent dispatch → Chat state and engine: uses chat state
src/app/support-dashboard/page.tsx - Agent dispatch → Demo catalog data: reads demo records
src/app/support-dashboard/page.tsx - Marketplace user → Help widget: requests help
README.md - Help widget → Chat state and engine: uses chat state
src/components/chat/SupportWidget.tsx - Shared client shell → Chat state and engine: provides context
src/components/ClientProviders.tsx - Shared client shell → Role switcher: renders
src/components/ClientProviders.tsx - Shared client shell → Inquiry drawer: renders
src/components/ClientProviders.tsx - Shared client shell → Help widget: renders
src/components/ClientProviders.tsx - Shared client shell → Credential assistant: renders
src/components/ClientProviders.tsx - Chat state and engine → Demo catalog data: resolves users
src/context/ChatContext.tsx - Chat state and engine → Nexconn chat services: initializes engine
src/context/ChatContext.tsx - Official ChatUI → Nexconn chat services: initializes ChatUI
src/components/chat/NexconnChatUIProvider.tsx - Credential assistant → Config status API: checks setup
- Credential assistant → Save credentials API: updates setup
- Token minting API → Nexconn token service: requests user token
README.md - Marketplace user → Token minting API: authenticates chat