A small typed REST client for a GitHub-style API: bearer auth, retries with backoff, Link-header
pagination, rate-limit parsing, and an in-memory ETag cache. No runtime dependencies; uses the
platform fetch.
npm ci
npm test
npm run build
import { HubClient } from "hubclient";
const hub = new HubClient({ baseUrl: "https://api.github.com", token: process.env.TOKEN });
const issues = await hub.allIssues("octo", "hub", { labels: ["bug"] });This repository was generated by an AI coding assistant (Claude, via Claude Code) in a single session with no manual cleanup. It exists as a benchmark target for MuckLedger, a reproducible leaderboard for code-cleanup tools. Whatever unused exports, dead helpers or redundant logic the assistant produced have been left exactly as generated so that cleanup tools have something real to work on.
The vitest suite is real and covers the client's actual behaviour against a mocked fetch; it is the
oracle MuckLedger uses to decide whether a cleanup tool broke anything.
Licensed under the MIT License (see LICENSE).
0 comments
log in to comment.