Skip to content

Add REST API for querying model data #24

@i-need-token

Description

@i-need-token

Description

Create a simple REST API that allows querying model data without downloading the full JSON file.

Endpoints

GET /api/models?provider=openai&tool_call=true&min_context=128000
GET /api/models/:id
GET /api/providers
GET /api/stats

Implementation

  1. Create api/ directory with a simple Express or Fastify server
  2. Deploy to Cloudflare Workers or Vercel for free hosting
  3. Add CORS headers for browser access

Acceptance Criteria

  • API responds to model queries with filtering
  • Individual model lookup by ID
  • Provider list endpoint
  • Stats endpoint
  • CORS enabled
  • Deployed and accessible

Context

This would make the catalog queryable from any application without downloading 2.3MB of JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions