Skip to content
Source
Sign inSign up
TanStack/schemas

Show a per-provider price and reasoning score on the homepage #106

Send to my agent
Closedtombeckenham opened this issue 0 comments
tombeckenhamcommented

What

GET /v1/status already returns counts.priced and counts.models. The homepage provider table (src/routes/index.tsx) shows models, endpoints, and schemas, and does not show coverage.

Show a score. Do not add a gaps endpoint, a skip-reason taxonomy, or new model rows.

Status payload

In src/server/status.ts, keep the existing counts and add:

  • counts.reasoning — models whose reasoning column is non-null.
  • counts.chat — models whose activity is chat.

priced / models is the price score. reasoning / chat is the reasoning score. A provider with models = 0 has no price score. A provider with chat = 0 has no reasoning score.

Homepage

On the provider table, add two numeric columns:

  • price — percent priced / models. Providers with zero models show an em dash.
  • reasoning — percent reasoning / chat. Providers with zero chat models show an em dash.

In the live summary strip, add one headline number: the unweighted average of the provider price percents, skipping providers with zero models. Cartesia's voice count must not dominate Anthropic.

Match the existing table styling (num, tabular-nums). No new route.

Tests and contract

  • Extend src/server/status.worker.test.ts for the new counts.
  • Update the OpenAPI status schema in src/server/openapi.ts and regenerate openapi.json if that schema is emitted (bun run openapi:emit). Regenerate the client only if the status type is part of the generated client and CI would fail on drift.

Out of scope

  • serverTools coverage.
  • Listing the unpriced model ids.
  • Classifying nulls as no-parser, parser-missed, or source-silent.
  1. tombeckenham closed this

Sign in to join this conversation.