How vinilnaik3705/kryonex works
Kryonex is a crypto-market trading simulator. Users enter through the React app, view market and news data, analyze assets, and manage simulated trades and portfolios; authenticated simulation state syncs through the Express API. The backend also provides AI analysis, PayPal checkout, and live WebSocket market feeds. The graph combines excerpted calls and imports with README-documented capabilities; several UI and backend modules were not sampled, so their internal call paths are omitted where evidence is unavailable.
Main entry points: server.js Express API server · App.jsx React app routes · useWalletAndPortfolio.js Wallet and holdings · Trade.jsx Trade
Components 28
Trading interface
- React app routes
frontend/src/App.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Markets
frontend/src/pages/Markets.jsx - Trade
frontend/src/pages/Trade.jsx - Portfolio
frontend/src/pages/Portfolio.jsx - Watchlist
frontend/src/pages/Watchlist.jsx - Heatmap view
frontend/src/components/ui/CryptoHeatmapGrid.jsx - Candlestick chart
frontend/src/components/ui/CandlestickChart.jsx - Payment page
frontend/src/pages/Payment.jsx - Payment client
frontend/src/services/paymentService.js - AI companion
frontend/src/components/CryptoChatbot.jsx
Market intelligence
- Crypto endpoints
backend/routes/cryptoRoutes.js - Crypto data integration
backend/api-integration/cryptoAPI.js - News integration
backend/api-integration/newsAPI.js - News endpoints
backend/routes/newsRoutes.js - AI analysis endpoint
backend/routes/aiRoutes.js - Binance market feed
- WebSocket gateway
backend/services/websocketService.js
Simulation and accounts
- Wallet and holdings
frontend/src/hooks/useWalletAndPortfolio.js - Authentication context
frontend/src/context/AuthContext.jsx - Simulation endpoints
backend/routes/simulationRoutes.js - Simulation state model
backend/models/SimulationState.js
API platform
- Express API server
backend/server.js - Response cache
backend/services/cacheService.js - PostgreSQL
backend/config/db.js - PayPal checkout API
- Groq AI
Other components
- Trader
Connections 31
- Trader → React app routes: uses
README.md - React app routes → Dashboard: routes to
frontend/src/App.jsx - React app routes → Markets: routes to
frontend/src/App.jsx - React app routes → Trade: routes to
frontend/src/App.jsx - React app routes → Portfolio: routes to
frontend/src/App.jsx - React app routes → Watchlist: routes to
frontend/src/App.jsx - React app routes → Payment page: routes to
frontend/src/App.jsx - Markets → Heatmap view: renders
- Trade → Candlestick chart: renders
- Trade → Wallet and holdings: updates
- Portfolio → Wallet and holdings: uses
- Wallet and holdings → Authentication context: reads identity
frontend/src/hooks/useWalletAndPortfolio.js - Wallet and holdings → Express API server: syncs state
frontend/src/hooks/useWalletAndPortfolio.js - Wallet and holdings → Express API server: fetches prices
frontend/src/hooks/useWalletAndPortfolio.js - Payment page → Payment client: uses
- Payment client → Express API server: calls API
frontend/src/services/paymentService.js - Express API server → Crypto endpoints: mounts
backend/server.js - Express API server → News endpoints: mounts
backend/server.js - Express API server → AI analysis endpoint: mounts
backend/server.js - Express API server → Simulation endpoints: mounts
backend/server.js - Express API server → WebSocket gateway: initializes
backend/server.js - Crypto endpoints → Crypto data integration: calls
backend/routes/cryptoRoutes.js - Crypto data integration → Response cache: uses cache
backend/api-integration/cryptoAPI.js - News endpoints → News integration: calls
backend/routes/newsRoutes.js - Simulation endpoints → Simulation state model: reads and writes
backend/routes/simulationRoutes.js - Simulation endpoints → PostgreSQL: checks connection
backend/routes/simulationRoutes.js - Simulation state model → PostgreSQL: persists state
backend/models/SimulationState.js - AI analysis endpoint → Groq AI: requests analysis
backend/routes/aiRoutes.js - AI companion → AI analysis endpoint: requests analysis
- Payment page → PayPal checkout API: checkout flow
- WebSocket gateway → Binance market feed: streams prices
backend/services/websocketService.js