Skip to content

feat: add projected API pricing to dashboard#49

Open
newbish wants to merge 1 commit into
mainfrom
feat/projected-api-pricing
Open

feat: add projected API pricing to dashboard#49
newbish wants to merge 1 commit into
mainfrom
feat/projected-api-pricing

Conversation

@newbish

@newbish newbish commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

  • add projected API-priced cost alongside tracked cost in the dashboard
  • refresh public pricing snapshots periodically from a public model pricing catalog and cache the results in D1
  • show tracked vs projected cost in KPI, model breakdown, and cost rollup views

Validation

  • npm run typecheck
  • npm test -- --run src/lib/openai-usage.test.ts src/lib/token-analytics.test.ts src/lib/dashboard-timeframe.test.ts src/lib/dashboard-projects.test.ts src/lib/dashboard-agent-status.test.ts
  • npm run build
  • npm run cf:d1:bootstrap:local
  • browser-verified overview, models, and cost tabs locally on port 3002

@github-actions

Copy link
Copy Markdown

🚀 Cloudflare preview: https://token-usage-analytics-pr-49.tevpro.workers.dev

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.

2 participants