# GitHub REST API Paginator Library

> Provides a typed pagination wrapper for the GitHub REST API using Octokit.js and the @octokit/plugin-paginate-rest plugin. Handles Link header parsing, rate limit detection via X-RateLimit-Remaining, and automatic retry with exponential backoff. Supports listing issues, pull requests, commits, and workflow runs with async iterator patterns.

- Skill: `tomevault-io/github-rest-api-paginator-library` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/github-rest-api-paginator-library`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/github-rest-api-paginator-library/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/github-rest-api-paginator-library

---


# GitHub REST API Paginator Library

Provides a typed pagination wrapper for the GitHub REST API using Octokit.js and the @octokit/plugin-paginate-rest plugin. Handles Link header parsing, rate limit detection via X-RateLimit-Remaining, and automatic retry with exponential backoff. Supports listing issues, pull requests, commits, and workflow runs with async iterator patterns.

## Installation

Requirements and caveats from upstream:
- Node
- If your target runtime environments supports async iterators (such as most modern browsers and Node 10+), you can iterate through each response
- The compose* methods work just like their octokit.* counterparts described above, with the differenct that both methods require an octokit instance to be passed as first argument

Basic usage or getting-started notes:
- <table>
- <tbody valign=top align=left>
- <tr><th>

- Source: https://github.com/octokit/plugin-paginate-rest.js
- Extracted from upstream docs: https://raw.githubusercontent.com/octokit/plugin-paginate-rest.js/HEAD/README.md

## Documentation

- https://github.com/octokit/plugin-paginate-rest.js#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/github-rest-api-paginator-library/)

---
> Source: [agentskillexchange/skills](https://github.com/agentskillexchange/skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-15 -->

