Skip to main content
A collection of type-safe OpenAPI clients automatically generated from their respective OpenAPI specifications. These clients are updated daily to stay in sync with upstream API changes.

Available Clients

PackageDescriptionnpm
vercel-api-jsVercel Platform API clientnpm
v0-apiVercel v0 API clientnpm
cloudflare-api-jsCloudflare API clientnpm
netlify-apiNetlify API clientnpm
zoom-api-jsZoom API clientnpm
keycloak-apiKeycloak Admin & Account API clientnpm
nuki-api-jsNuki Smart Lock API clientnpm
litellm-apiLiteLLM API clientnpm

Installation

npm install vercel-api-js
Replace vercel-api-js with the package name for your desired API client.

Usage

Basic Usage

All clients export typed fetchers for each API endpoint:
import { Fetchers } from "vercel-api-js";

// Configure the client
const client = Fetchers.createClient({
  baseUrl: "https://api.vercel.com",
  headers: {
    Authorization: `Bearer ${process.env.VERCEL_TOKEN}`,
  },
});

// Make type-safe API calls
const projects = await client.listProjects();

Type Exports

Each client exports TypeScript types for all API schemas:
import type { Types, Schemas } from "vercel-api-js";

// Use TypeScript types
type Project = Types.Project;

// Use Zod schemas for validation
const projectSchema = Schemas.project;

Features

  • Type-Safe - Full TypeScript support with auto-generated types
  • Zod Schemas - Runtime validation with Zod schemas for all API types
  • Auto-Updated - Daily regeneration from upstream OpenAPI specs
  • Tree-Shakeable - Only import what you need

How It Works

These clients are generated using Kubb from OpenAPI specifications. The generation process:
  1. Fetches the latest OpenAPI spec from the API provider
  2. Cleans and normalizes operation IDs and schemas
  3. Generates TypeScript types, Zod schemas, and fetch clients Updates are automated via GitHub Actions that run hourly to check for spec changes.