How saravanasai1435/nexus-ai-perfect-deplyment-ready works
NEXUS AI combines a React assistant interface and an Express multi-provider AI backend, with Firebase-backed user data. The primary workflow is user input in the app, AI request handling and model routing, then streamed results returned to the interface; users can also save chats and work with documents and presentations. The README documents provider integrations and streaming, while the tree includes creative, slide, and vision workspaces. Some subsystem connections are not shown in the excerpts, so those components are kept separate rather than linked speculatively.
Main entry points: server.ts Chat API and routing · App.tsx Assistant app · ai.ts AI client · firebase.ts Firebase client
Components 18
Assistant interface
- Assistant app
src/App.tsx - React entry
src/main.tsx - Code renderer
src/components/CodeBlock.tsx - Quiz renderer
src/components/QuizRenderer.tsx - Settings modal
src/components/SettingsModal.tsx
AI services
- AI client
src/lib/ai.ts - Chat API and routing
server.ts
Identity and storage
- Firebase client
src/lib/firebase.ts - User data access
src/lib/db.ts
Specialized workspaces
- Creative studio
src/components/modules/CreativeStudio.tsx - Slide composer
src/components/modules/SlideComposer.tsx - Vision lab
src/components/modules/VisionLab.tsx
Other components
- User
- OpenRouter
- NVIDIA services
- Gemini
- Pollinations image service
- Firestore
Connections 14
- User → Assistant app: interacts
README.md - React entry → Assistant app: renders
src/main.tsx - Assistant app → AI client: requests responses
src/App.tsx - AI client → Chat API and routing: posts chat
src/lib/ai.ts - Chat API and routing → OpenRouter: routes requests
README.md - Chat API and routing → NVIDIA services: routes requests
README.md - Chat API and routing → Gemini: routes requests
README.md - AI client → Pollinations image service: requests images
src/lib/ai.ts - Chat API and routing → NVIDIA services: generates images
server.ts - Assistant app → User data access: saves chats
src/App.tsx - User data access → Firebase client: uses client
src/lib/db.ts - Firebase client → Firestore: reads and writes
src/lib/firebase.ts - Quiz renderer → Code renderer: renders code
src/components/QuizRenderer.tsx - Settings modal → Assistant app: changes preferences