dashsight / README.md
muhammadhabibna's picture
Add application files - BiteSight Analytics API with KPI endpoints and AI BizConsultant
05c3dcf
|
Raw
History Blame Contribute Delete
1.26 kB
metadata
title: Dashsight
emoji: 🌍
colorFrom: red
colorTo: indigo
sdk: docker
pinned: false

BiteSight Analytics API

Static-CSV-backed analytics service with:

  • 12 deterministic KPI endpoints under /api/* (dashboard data)
  • AI BizConsultant /chat endpoint powered by MiniMax-M2.5 via AkashML + LangChain pandas agent

Endpoints

  • GET / β€” Service info
  • GET /health β€” Health check
  • GET /api/meta β€” Metadata (branches, products, date range)
  • GET /api/kpi/summary β€” KPI summary with sparkline
  • GET /api/kpi/sales-by-day β€” Sales by day of week
  • GET /api/kpi/heatmap β€” Product Γ— Day heatmap
  • GET /api/kpi/peak-hours β€” Peak hours distribution
  • GET /api/kpi/payments β€” Payment method breakdown
  • GET /api/kpi/branch-radar β€” Branch comparison radar
  • GET /api/kpi/bubble-strategy β€” Product strategy bubble chart
  • GET /api/kpi/city-treemap β€” City revenue treemap
  • GET /api/kpi/spend-histogram β€” Spend distribution histogram
  • GET /api/kpi/velocity-trend β€” Revenue velocity trend
  • GET /api/kpi/insights β€” Auto-generated insights
  • POST /chat β€” AI BizConsultant (requires AKASHML_API_KEY secret)

Secrets Required

Set AKASHML_API_KEY in Space Settings β†’ Variables and secrets.