How shivanshu24-code/stocklite works
StockLite combines a React stock-intelligence dashboard, a Node API, and a Python AI service. The main analysis path resolves a stock, obtains market data, computes a technical recommendation, gathers news context, and returns an AI explanation; the Opportunity Engine separately ranks candidates. Portfolio analysis and authentication are additional product branches. Some links are supported only by README descriptions or the SOURCE INDEX; unsampled internals are not inferred beyond those references.
Main entry points: app.py AI service API · PortfolioAnalysis.controller.js Portfolio analysis controller · DashboardPage.jsx Dashboard · rag_service.py RAG retrieval
Components 27
Client
- Dashboard
Frontend/src/Pages/DashboardPage.jsx - AI chat
Frontend/src/Components/Dashboard/AiChatView.jsx - Login and signup
Frontend/src/Pages/LoginPage.jsx
Backend API
- User authentication
Backend/User/User.controller.js - User records
Backend/User/User.model.js - Opportunity routes
Backend/OpportunityEngine/Routes/opportunity.routes.js - Opportunity controller
Backend/OpportunityEngine/Controllers/opportunity.controllers.js - Opportunity ranking
Backend/OpportunityEngine/Services/opportunity.services.js
AI analysis
- AI service API
AI service/app.py - Stock data service
AI service/Services/stock_service.py - Top stocks
AI service/Services/top_stock.py - Technical indicators
AI service/Indicators/technical_indicators.py - Trade decision
AI service/Models/decision_engine.py
News intelligence
- News fetching
AI service/Rag_pipeline/Services/news_service.py - News chunking
AI service/Rag_pipeline/Utils/chunking.py - Company resolver
AI service/Rag_pipeline/Utils/company_resolver.py - RAG retrieval
AI service/Rag_pipeline/Services/rag_service.py - Embeddings
AI service/Rag_pipeline/Services/embedding_service.py - Chroma store
AI service/Rag_pipeline/Db/chroma_client.py - Explanation generation
AI service/Rag_pipeline/Services/llm_service.py
Portfolio
- Portfolio routes
Backend/Portfolio/Routes/Portfolio.routes.js - Portfolio analysis controller
Backend/Portfolio/Controller/PortfolioAnalysis.controller.js - Portfolio records
Backend/Portfolio/Models/Portfolio.js - Portfolio snapshot
Backend/Portfolio/Services/portfolioSnapshot.service.js - Portfolio decisions
Backend/Portfolio/DecisionEngine/decision.engine.js
Other components
- Investor
- Market and news providers
Connections 25
- Investor → Dashboard: uses
README.md - Investor → Login and signup: signs in
README.md - Dashboard → AI chat: opens
- Login and signup → User authentication: authenticates
- User authentication → User records: reads and writes
Backend/User/User.controller.js - Dashboard → Opportunity routes: requests opportunities
- Opportunity routes → Opportunity controller: routes to
Backend/OpportunityEngine/Routes/opportunity.routes.js - Opportunity controller → Opportunity ranking: requests rankings
Backend/OpportunityEngine/Controllers/opportunity.controllers.js - AI chat → AI service API: sends query
README.md - AI service API → Stock data service: fetches data
AI service/app.py - AI service API → Top stocks: requests candidates
AI service/app.py - AI service API → Trade decision: calculates signal
AI service/app.py - AI service API → RAG retrieval: gets context
AI service/app.py - AI service API → News fetching: fetches news
AI service/app.py - AI service API → News chunking: chunks news
AI service/app.py - AI service API → Explanation generation: generates explanation
AI service/app.py - Market and news providers → Stock data service: provides prices
- Market and news providers → News fetching: provides news
README.md - News fetching → Company resolver: resolves company
AI service/Rag_pipeline/Services/news_service.py - RAG retrieval → Embeddings: embeds text
AI service/Rag_pipeline/Services/rag_service.py - RAG retrieval → Chroma store: stores and retrieves
AI service/Rag_pipeline/Services/rag_service.py - Portfolio routes → Portfolio analysis controller: routes to
Backend/Portfolio/Routes/Portfolio.routes.js - Portfolio analysis controller → Portfolio records: loads portfolio
Backend/Portfolio/Controller/PortfolioAnalysis.controller.js - Portfolio analysis controller → Portfolio snapshot: builds snapshot
Backend/Portfolio/Controller/PortfolioAnalysis.controller.js - Portfolio analysis controller → Portfolio decisions: analyzes holdings
Backend/Portfolio/Controller/PortfolioAnalysis.controller.js