@matthewlam/openci-contracts
v0.1.1
Published
Public API contracts and client helpers for the hosted OpenCI search and telemetry APIs.
Maintainers
Readme
@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
searchand install telemetry
It does not include private admin routes, environment variables, or backend-only logic.
Install
npm install @matthewlam/openci-contractsUsage
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",
});