Skip to content

feat: add Antseed AI Credits analytics dashboard - #49

Merged
thalescb merged 1 commit into
masterfrom
feat/antseed-dashboard
Jul 30, 2026
Merged

thalescb merged 1 commit into
masterfrom
feat/antseed-dashboard

Conversation

@thalescb

Copy link
Copy Markdown
Collaborator

What

Self-contained browser dashboard for the GoodDollar x AntSeed AI Credits integration. Fetches daily analytics from the Antseed Worker endpoint and visualizes G$ deposit volume, AI credit usage, and wallet activity.

Live preview (once merged): https://gooddollar.github.io/data-team/antseed-analytics/dashboard/

What it shows

  • Hero scorecards: Total G$ spent (one-time + streamed), AI credits used (USD), current flow rate (G$/day)
  • 3 charts: G$ volume stacked area (deposits + streamed), AI credits/day bar, unique wallets/day line (G$ buyers vs credit users)
  • Paginated daily summary table (10 rows/page, sorted newest first)
  • System info with contract addresses linked to block explorers
  • Live/Demo toggle to preview the layout with sample data while the Worker endpoint is pending

Data source

Fetches from \GET /v1/analytics?days=365\ on the Antseed Worker. The endpoint serves pre-aggregated daily data from Cloudflare KV.

Status: The Worker endpoint is not yet deployed -- waiting on antseed-integration PR #19 to merge. The dashboard shows a graceful fallback with demo data until then. Once the endpoint is live, it works immediately with no code changes.

Metrics coverage

All metrics requested by Hadar in issue #13 are covered:

Requested Status
Daily G$ one-time deposits Covered
Daily G$ streamed Covered
Current total flow rate Covered
Daily AI credits used Covered
Daily unique wallets (G$ buyers) Covered
Daily unique wallets (credit users) Covered
Global aggregated sums Covered

Not in scope (not available in the Worker API response -- would need separate queries or API additions):

  • GoodID verification rate
  • New vs returning depositors breakdown
  • Base operator USDC balance / runway

Files

File Purpose
\projects/antseed-analytics/dashboard/index.html\ HTML structure + CSS
\projects/antseed-analytics/dashboard/app.js\ All application logic (API fetch, BigInt conversions, Chart.js rendering, table pagination, demo data generator)
\README.md\ Updated structure tree + active projects table
\docs/dashboards.md\ Added dashboard entry

Tech

  • Chart.js 4.4.7 from CDN
  • No build step -- opens as a local file or deploys to GitHub Pages
  • Auto-refreshes every 5 minutes
  • Same dark-mode design pattern as the Superfluid campaign dashboard

Self-contained browser dashboard for the GoodDollar x AntSeed integration.
Visualizes G$ deposit volume, AI credit usage, flow rates, and daily wallet
activity from the Antseed Worker analytics endpoint.

- Hero scorecards (total G$ spent, AI credits USD, flow rate G$/day)
- Three Chart.js charts (G$ volume, AI credits/day, unique wallets/day)
- Paginated daily summary table
- Live/Demo toggle to preview layout while Worker endpoint is pending
- Auto-refreshes every 5 minutes
- Graceful fallback when endpoint is not yet deployed (PR antseed-integration#19)
@thalescb
thalescb merged commit 6821eac into master Jul 30, 2026
1 check passed
@thalescb
thalescb deleted the feat/antseed-dashboard branch July 30, 2026 18:36
@thalescb

Copy link
Copy Markdown
Collaborator Author

Dashboard is now deployed to GitHub Pages. Live URL:

https://gooddollar.github.io/data-team/antseed-analytics/

Currently shows demo data (toggle between Live Data and Demo Preview at the top). Once antseed-integration PR #19 merges and the Worker endpoint goes live, real data loads automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant