How pranavv-12/cardsense works
CardSense is a credit-card recommendation and wallet-optimization product. Users explore the card catalog or enter spending and income in the browser to see single-card recommendations, wallet combinations, and reward analysis; a Python pipeline also produces segmentation, recommendation, and evaluation outputs used by the dashboard. The README documents real, linked, and synthetic data modes and cohort reporting. Some backend phases and report wiring are documented rather than shown in excerpts, so those relationships cite the README.
Main entry points: App.jsx Dashboard shell · pipeline.py Analytics orchestration · data.js Dashboard data access · Advisor.jsx Wallet advisor UI
Components 20
Dashboard
- Dashboard shell
frontend/src/App.jsx - Single-card recommender
frontend/src/components/Recommender.jsx - Existing-card optimizer
frontend/src/components/Optimizer.jsx - Card catalog
frontend/src/components/CardMarketplace.jsx - Cluster explorer
frontend/src/components/Clusters.jsx - Data methodology
frontend/src/components/Methodology.jsx
Reward Analysis
- Wallet advisor UI
frontend/src/components/Advisor.jsx - Wallet optimizer
frontend/src/advisor.js - Advisor report view
frontend/src/report.js
Analytics Pipeline
- Analytics orchestration
backend/pipeline.py - Real and linked loaders
backend/real_data.py - Synthetic generator
backend/generate_data.py - Linked data preparation
backend/build_fraud_users.py - Batch wallet optimizer
backend/advisor.py - Cohort reports
backend/report.py
Data Sources
- Dashboard data access
frontend/src/data.js - Card catalog data
data/cards.json - Pipeline results
data/pipeline_output.json - Linked-source results
data/pipeline_output_linked.json
Other components
- Card seeker
Connections 24
- Card seeker → Single-card recommender: enters spending
frontend/src/components/Recommender.jsx - Card seeker → Wallet advisor UI: enters profile
frontend/src/components/Advisor.jsx - Dashboard shell → Single-card recommender: renders
frontend/src/App.jsx - Dashboard shell → Existing-card optimizer: renders
frontend/src/App.jsx - Dashboard shell → Wallet advisor UI: renders
frontend/src/App.jsx - Dashboard shell → Card catalog: renders
frontend/src/App.jsx - Dashboard shell → Cluster explorer: renders
frontend/src/App.jsx - Dashboard shell → Data methodology: renders
frontend/src/App.jsx - Single-card recommender → Dashboard data access: scores cards
frontend/src/components/Recommender.jsx - Existing-card optimizer → Dashboard data access: reads card data
frontend/src/components/Optimizer.jsx - Card catalog → Dashboard data access: reads catalog
frontend/src/components/CardMarketplace.jsx - Wallet advisor UI → Wallet optimizer: calculates wallet
frontend/src/components/Advisor.jsx - Wallet advisor UI → Advisor report view: builds report
frontend/src/components/Advisor.jsx - Dashboard data access → Card catalog data: loads
frontend/src/data.js - Dashboard data access → Pipeline results: loads
frontend/src/data.js - Dashboard data access → Linked-source results: loads
frontend/src/data.js - Analytics orchestration → Real and linked loaders: loads real sources
backend/pipeline.py - Analytics orchestration → Synthetic generator: uses fallback
README.md - Linked data preparation → Real and linked loaders: prepares linked input
README.md - Analytics orchestration → Pipeline results: produces real results
README.md - Analytics orchestration → Linked-source results: produces linked results
README.md - Analytics orchestration → Batch wallet optimizer: supports wallet analysis
README.md - Cohort reports → Batch wallet optimizer: uses optimizer
README.md - Cohort reports → Analytics orchestration: uses pipeline results
README.md