Skip to main content
@mesadev/rest is the generated TypeScript REST SDK. It mirrors Mesa OpenAPI operations with minimal abstraction and is useful when you want direct operation-level request and response types.

Installation

npm install @mesadev/rest
# or
pnpm add @mesadev/rest
# or
bun add @mesadev/rest

Quick Start

import { Mesa } from '@mesadev/rest';

const mesa = new Mesa({
  apiKey: process.env.MESA_API_KEY,
});

const page = await mesa.repos.list({ org: 'my-org' });
console.log(page.repos.length);

@mesadev/sdk vs @mesadev/rest

  • @mesadev/sdk: ergonomic primary SDK with org inference and mesa.git support.
  • @mesadev/rest: generated REST surface mapped directly to OpenAPI operations.
If you are starting fresh, use @mesadev/sdk.