Clients
Typed HTTP clients for popular third-party APIs, published independently to npm. Every client wraps @theholocron/http-client, a thin fetch-based layer that handles base URL construction, and normalised error responses. They share one version line and release together from the clients/ folder, with tags clients-v<version>.
Packages
Section titled “Packages”| Package | Description |
|---|---|
@theholocron/axiom-client |
A TypeScript client for the Axiom API. |
@theholocron/checkly-client |
A TypeScript client for the Checkly monitoring API. |
@theholocron/clerk-client |
A TypeScript client for the Clerk Backend API. |
@theholocron/cloudflare-client |
A TypeScript client for the Cloudflare API. |
@theholocron/codecov-client |
A TypeScript client for the Codecov REST API. |
@theholocron/confluence-client |
A TypeScript client for the Confluence API. |
@theholocron/discord-client |
A TypeScript client for the Discord webhooks API. |
@theholocron/doppler-client |
A TypeScript client for the Doppler API. |
@theholocron/github-client |
A TypeScript client for the GitHub REST API. |
@theholocron/google-client |
A TypeScript client for Google Workspace APIs (Docs, Sheets). |
@theholocron/http-client |
Shared HTTP primitives for theholocron — REST client factory, retry events, and error types. |
@theholocron/infisical-client |
A TypeScript client for the Infisical API. |
@theholocron/jira-client |
A TypeScript client for the Jira REST API. |
@theholocron/neon-client |
A TypeScript client for the Neon API. |
@theholocron/netlify-client |
A TypeScript client for the Netlify API. |
@theholocron/npm-client |
A TypeScript client for the npm registry. |
@theholocron/posthog-client |
A TypeScript client for the PostHog management API. |
@theholocron/postman-client |
A TypeScript client for the Postman API. |
@theholocron/linear-client |
A TypeScript client for the Linear GraphQL API. |
@theholocron/sentry-client |
A TypeScript client for the Sentry management API. |
@theholocron/slack-client |
A TypeScript client for the Slack Web API. |
@theholocron/turbo-client |
A TypeScript client for Turborepo’s Remote Cache API. |
@theholocron/vercel-client |
A TypeScript client for the Vercel API. |
@theholocron/zendesk-client |
A TypeScript client for the Zendesk API. |
Installation
Section titled “Installation”Each package is installed on its own:
pnpm add @theholocron/github-clientSee the CHANGELOG for the current version.
Authentication
Section titled “Authentication”Every client is initialised with a token obtained from the service’s API settings page. The token is sent as a Bearer authorization header on every request:
const client = createGitHubClient({ token: process.env.GITHUB_TOKEN });A few clients require a different token format — see each client’s page for details.
Configuration
Section titled “Configuration”All createXxxClient() factories accept the same base options:
| Option | Required | Description |
|---|---|---|
token |
Yes | API token from the service’s developer settings |
baseUrl |
No | Override the default API base URL (self-hosted instances, proxies) |
fetch |
No | Custom fetch implementation — see Testing below |
Error handling
Section titled “Error handling”All clients throw ProviderApiError (from @theholocron/http-client) on non-2xx responses. The error exposes the HTTP status code and the parsed response body.
import { ProviderApiError } from "@theholocron/http-client";
try { const issue = await client.issues.get("PROJ-1");} catch (err) { if (err instanceof ProviderApiError) { console.error(err.status, err.message); }}Testing
Section titled “Testing”Every client accepts a fetch option so you can inject a stub without patching the global. This keeps tests hermetic and avoids vi.stubGlobal / jest.spyOn:
import { createGitHubClient } from "@theholocron/github-client";
const calls: Request[] = [];const fetch = async (req: Request) => { calls.push(req); return new Response(JSON.stringify({ id: 1 }), { status: 200 });};
const client = createGitHubClient({ token: "test", fetch });