Skip to content

Add provider SLA badge data to catalog responses #72

Description

@emrekayat

Why this matters

Query402 is easiest to evaluate when reviewers can see why one provider is safer or more reliable than another before paying for a query.

Scope

Extend provider catalog data with lightweight SLA badge fields derived from existing static metadata:

  • latencyBand such as fast, standard, slow;
  • reliabilityBand such as demo, fallback, live;
  • paymentMode such as demo, x402, or sponsored when known;
  • short UI-safe copy explaining the badge.

Suggested files:

  • apps/api/src/lib/pricing.ts
  • apps/api/src/routes/public.ts
  • packages/shared/src/schemas.ts
  • apps/web/src/App.tsx or provider card component if split out.

Acceptance criteria

  • /api/catalog or /api/providers exposes the badge metadata consistently.
  • Web provider cards render the badges without changing payment behavior.
  • Unknown providers fall back to a safe Not verified or equivalent badge.
  • Tests cover the catalog shape and at least one provider card rendering path.
  • Existing typecheck and API tests pass.

Wave complexity

High - improves provider diligence and paid-query selection confidence.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssue proposed for the Drips Stellar Wave programarea: apiAPI servicearea: webWeb and wallet experiencecomplexity: highExpected high implementation complexitydrips-candidateCandidate for a Drips Stellar WaveenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions