How raazkhnl/nepsai works
NepsAi is a NEPSE market terminal with an automated end-of-day collection pipeline. The user-facing path is market data into the terminal, then search, charts, movers, sector views, comparison and quantitative/AI analysis. Admin tools expose authentication and pipeline management. The README documents five-provider reconciliation and historical backfill. Some UI data-fetch wiring and unsampled subsystems are not visible in the excerpts, so uncertain links are omitted; documented but unsampled capabilities are included with directory paths where supported.
Main entry points: App.tsx Terminal shell · nepseCollector.ts EOD reconciliation · aiPrompt.ts AI prompt providers · NepseAdminPortal.tsx Admin portal
Components 25
Market terminal
- Terminal shell
src/App.tsx - Market catalog
src/data/nepseStocks.ts - Scrip search
src/components/QuickSearchModal.tsx - Market ticker
src/components/MarketTickerBar.tsx - TradingView charts
src/components/TradingViewChart.tsx - Stock details
src/components/StockDetailsSidebar.tsx - Market movers
src/components/MarketMoversView.tsx
Analysis tools
- Sector heatmap
src/components/SectorHeatmap.tsx - Stock comparison
src/components/StockComparison.tsx - Visual analytics
src/components/VisualAnalyticsView.tsx - Institutional metrics
src/components/InstitutionalAnalyticsPanel.tsx - Technical indicators
src/utils/technicalIndicators.ts - Market analytics
src/utils/nepseAnalytics.ts - AI analysis
src/components/AIAnalyticsView.tsx - AI prompt providers
src/utils/aiPrompt.ts
Data collection
- EOD reconciliation
src/server/nepseCollector.ts - Market providers
- Historical backfill
src/server - Published market data
data/eod - NPT time utilities
src/utils/nepalTime.ts
Admin operations
- Admin portal
src/components/NepseAdminPortal.tsx - Application API
server.ts
Other components
- Market user
- Gemini service
- Other AI providers
Connections 27
- Market user → Terminal shell: uses
README.md - Terminal shell → Market catalog: loads data
src/App.tsx - Terminal shell → Scrip search: renders
src/App.tsx - Terminal shell → Market ticker: renders
src/App.tsx - Terminal shell → TradingView charts: renders
src/App.tsx - Terminal shell → Stock details: renders
src/App.tsx - Terminal shell → Market movers: renders
src/App.tsx - Terminal shell → Sector heatmap: renders
src/App.tsx - Terminal shell → Stock comparison: renders
src/App.tsx - Terminal shell → Visual analytics: renders
src/App.tsx - Terminal shell → Institutional metrics: renders
src/App.tsx - Terminal shell → AI analysis: renders
src/App.tsx - Terminal shell → Admin portal: renders
src/App.tsx - TradingView charts → Technical indicators: calculates
src/components/TradingViewChart.tsx - Institutional metrics → Market analytics: uses metrics
src/components/InstitutionalAnalyticsPanel.tsx - AI analysis → AI prompt providers: requests analysis
src/components/AIAnalyticsView.tsx - AI prompt providers → Gemini service: calls provider
README.md - AI prompt providers → Other AI providers: calls providers
src/utils/aiPrompt.ts - Sector heatmap → AI prompt providers: requests analysis
src/components/SectorHeatmap.tsx - Market providers → EOD reconciliation: supplies quotes
README.md - EOD reconciliation → Market catalog: uses fallback bars
src/server/nepseCollector.ts - EOD reconciliation → NPT time utilities: formats timestamps
src/server/nepseCollector.ts - EOD reconciliation → Published market data: exports EOD data
README.md - Historical backfill → Market providers: fetches historical bars
README.md - Admin portal → Application API: manages pipeline
README.md - Application API → EOD reconciliation: invokes collector
server.ts - Admin portal → NPT time utilities: formats timestamps
src/components/NepseAdminPortal.tsx