How vishnuu461-lab/vantara-intelligence-platform works
Vantara is a customer-intelligence platform: users browse customer records and business summaries, then inspect behavior, churn, lifetime value, segments, and combined insights; they can also bulk-import customers. The browser pages call a Flask API, whose route handlers read and update SQLAlchemy customer and purchase data and dispatch analysis to domain services. The README documents capabilities beyond the sampled implementation, including dashboard analytics, segmentation, and CSV cleaning. Several frontend API modules and backend route/service implementations were not excerpted, so those links reflect the source index or README rather than inspected call bodies.
Main entry points: prediction_routes.py Analysis routes · App.jsx Page router · customerApi.js Customer API client · app.py Flask application
Components 34
Web experience
- Page router
frontend/src/App.jsx - Customer pages
frontend/src/pages/Customers.jsx - Customer detail
frontend/src/pages/CustomerDetail.jsx - Dashboard page
frontend/src/pages/Dashboard.jsx - Behavior page
frontend/src/pages/BehaviorPage.jsx - Churn page
frontend/src/pages/ChurnPage.jsx - CLV page
frontend/src/pages/CLVPage.jsx - Segments page
frontend/src/pages/SegmentsPage.jsx - Insights page
frontend/src/pages/InsightsPage.jsx - Upload page
frontend/src/pages/UploadPage.jsx - Customer API client
frontend/src/api/customerApi.js - Dashboard API client
frontend/src/api/dashboardApi.js - Prediction API client
frontend/src/api/predictionApi.js - HTTP client
frontend/src/api/axios.js
API layer
- Flask application
app.py - Customer routes
routes/customer_routes.py - Dashboard route
routes/dashboard_routes.py - Analysis routes
routes/prediction_routes.py - Upload route
routes/upload_routes.py
Customer intelligence
- Behavior analytics
services/analytics_service.py - Churn prediction
services/churn_service.py - Lifetime value
services/clv_service.py - Segmentation
services/segmentation_service.py - Unified insights
services/insights_service.py - Feature engineering
services/feature_engineering.py - Anomaly detection
services/anomaly_service.py - Next purchase
services/next_purchase_service.py - Recommendations
services/recommendation_service.py - Explainability
services/xai_service.py - CSV cleaning
utils/data_cleaning.py
Customer data
- Customer records
models/customer.py - Purchase records
models/purchase.py - ORM extension
extensions.py
Other components
- Business user
Connections 48
- Business user → Page router: uses
frontend/src/App.jsx - Page router → Customer pages: routes to
frontend/src/App.jsx - Page router → Customer detail: routes to
frontend/src/App.jsx - Page router → Dashboard page: routes to
frontend/src/App.jsx - Page router → Behavior page: routes to
frontend/src/App.jsx - Page router → Churn page: routes to
frontend/src/App.jsx - Page router → CLV page: routes to
frontend/src/App.jsx - Page router → Segments page: routes to
frontend/src/App.jsx - Page router → Insights page: routes to
frontend/src/App.jsx - Page router → Upload page: routes to
frontend/src/App.jsx - Customer detail → Customer API client: requests data
frontend/src/pages/CustomerDetail.jsx - Behavior page → Customer API client: requests data
frontend/src/pages/BehaviorPage.jsx - Behavior page → Prediction API client: requests analysis
frontend/src/pages/BehaviorPage.jsx - Insights page → Customer API client: requests insights
frontend/src/pages/InsightsPage.jsx - Upload page → HTTP client: sends upload
frontend/src/pages/UploadPage.jsx - Customer API client → HTTP client: uses
frontend/src/api/customerApi.js - Customer pages → Customer API client: requests records
- Dashboard page → Dashboard API client: requests metrics
- Churn page → Customer API client: requests prediction
- CLV page → Customer API client: requests prediction
frontend/src/pages/CLVPage.jsx - Segments page → Customer API client: requests segments
- Dashboard API client → HTTP client: uses
- Prediction API client → HTTP client: uses
- HTTP client → Flask application: sends HTTP
- Flask application → Customer routes: registers
app.py - Flask application → Dashboard route: registers
app.py - Flask application → Analysis routes: registers
app.py - Flask application → Upload route: registers
app.py - Customer routes → Customer records: reads and writes
routes/customer_routes.py - Customer routes → Purchase records: reads
routes/customer_routes.py - Dashboard route → Customer records: queries
routes/dashboard_routes.py - Dashboard route → Purchase records: queries
routes/dashboard_routes.py - Analysis routes → Behavior analytics: dispatches
routes/prediction_routes.py - Analysis routes → Churn prediction: dispatches
routes/prediction_routes.py - Analysis routes → Lifetime value: dispatches
routes/prediction_routes.py - Analysis routes → Segmentation: dispatches
routes/prediction_routes.py - Analysis routes → Unified insights: dispatches
routes/prediction_routes.py - Analysis routes → Feature engineering: dispatches
routes/prediction_routes.py - Analysis routes → Anomaly detection: dispatches
routes/prediction_routes.py - Analysis routes → Next purchase: dispatches
routes/prediction_routes.py - Analysis routes → Recommendations: dispatches
routes/prediction_routes.py - Analysis routes → Explainability: dispatches
routes/prediction_routes.py - Upload route → CSV cleaning: cleans input
routes/upload_routes.py - Upload route → Customer records: stores customers
routes/upload_routes.py - Unified insights → Behavior analytics: calls
services/insights_service.py - Unified insights → Churn prediction: calls
services/insights_service.py - Unified insights → Lifetime value: calls
services/insights_service.py - Unified insights → Segmentation: calls
services/insights_service.py