New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@modelschemas/client

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modelschemas/client

Typed fetch client for the modelschemas live AI model schema service.

Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

@modelschemas/client

Typed fetch client for modelschemas — live per-endpoint request/response JSON Schemas and model metadata for AI providers (OpenAI, Anthropic, Gemini, xAI Grok, ElevenLabs, OpenRouter, FAL), generated from the service's OpenAPI spec.

Ships built ESM (.js + .d.ts). Node loads it with no TypeScript loader.

bun add @modelschemas/client
import {
  createModelschemasClient,
  listModels,
  getSchema,
  validatePayload,
} from '@modelschemas/client'

const client = createModelschemasClient({
  baseUrl: 'https://modelschemas.com',
})

const models = await listModels({ client, query: { activity: 'chat' } })
const schema = await getSchema({
  client,
  path: { provider: 'anthropic', activity: 'chat', endpointId: 'v1/messages' },
  query: { kind: 'input' },
})

Schema responses are content-addressed (contentHash = ETag = ?version= pin) and carry provenance (upstream sourceUrl, sourceHash, fetchedAt, extractorVersion) so every derivation is independently verifiable.

Docs: modelschemas.com/docs · API spec: /openapi.json · Source: github.com/modelschemas/modelschemas

Keywords

ai

FAQs

Package last updated on 23 Oct 2026

Related posts