open-index/open-npm huggingface dataset:
npm package: @matthewlam/openci-contracts
Description: Public API contracts and client helpers for the hosted OpenCI search and telemetry APIs.
Latest version: 0.1.1

# @matthewlam/openci-contracts

Public API contracts and tiny client helpers for the hosted OpenCI APIs.

This package intentionally exports only:

- Zod schemas for public API payloads
- TypeScript types inferred from those schemas
- a minimal API client for `search` and install telemetry

It does not include private admin routes, environment variables, or backend-only logic.

## Install

```bash
npm install @matthewlam/openci-contracts
```

## Usage

```ts
import { createOpenCiApiClient } from "@matthewlam/openci-contracts";

const client = createOpenCiApiClient({ baseUrl: "https://openci.app" });

const results = await client.search("triage");
await client.trackInstall({
  event: "install_success",
  slug: "github/actions/starter-workflows/stale",
  cliVersion: "0.1.0",
  dateBucket: "2026-03-18",
});
```