Octokit REST

The official GitHub REST API client for JavaScript and TypeScript, with a typed method for every endpoint.

SDK
npm
v22.0.1
666 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
87 /100 Excellent
Development Activity 84
Maintenance 92
Community 72
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
87 /100 Excellent
Architecture 86
Code Quality 85
Innovation 90
Learning Curve 85

Octokit REST (@octokit/rest) is GitHub’s official REST API client for JavaScript and TypeScript, exposing a fully typed method for every endpoint in the GitHub REST API, such as octokit.rest.repos.listForOrg(). It bundles the core request pipeline together with plugins for automatic pagination, request logging, and endpoint methods, so you get authentication, retries, and response typing out of the box.

Built on the modular @octokit/core, it works in Node.js, browsers, Deno, and serverless runtimes. Whether you are automating pull requests, building a GitHub App, or wiring up CI tooling, Octokit REST gives you a consistent, well-documented, TypeScript-first way to talk to the GitHub API without hand-writing HTTP requests.

What You Get

  • A typed method for every GitHub REST API endpoint (e.g. octokit.rest.pulls.create)
  • Automatic pagination via octokit.paginate for list endpoints
  • Built-in request logging and configurable retry/throttling through the Octokit plugin ecosystem
  • Full TypeScript type definitions for parameters and response payloads
  • Cross-runtime support for Node.js, browsers, Deno, and serverless environments

Common Use Cases

  • Automating repository, issue, and pull-request workflows from scripts or bots
  • Building GitHub Apps and OAuth integrations that call the REST API
  • Powering CI/CD tooling and GitHub Actions that manage releases, checks, and comments
  • Fetching and aggregating org, repo, or user data for dashboards and reporting

Under The Hood

Architecture - The package is intentionally tiny: src/index.ts takes @octokit/core’s Octokit class and calls Core.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults(…) to produce the exported Octokit constructor, setting a userAgent default from src/version.ts. All real behavior lives in composable plugins, so @octokit/rest is essentially a curated bundle of the core request pipeline plus endpoint methods, pagination, and logging.

Tech Stack - Written in TypeScript with strict typing, it depends on @octokit/core, @octokit/plugin-paginate-rest, @octokit/plugin-request-log, and @octokit/plugin-rest-endpoint-methods. It ships as ESM with conditional exports, is built with esbuild, tested with Vitest (using nock/fetch-mock and undici), and requires node16 module resolution for consumers.

Code Quality - The repo has a substantial test suite under test/ (integration tests, scenario tests, a memory.test.ts, and a typescript-validate.ts type-level check), plus Prettier formatting and semantic-release automation. The codebase is small and cohesive, favoring composition over inheritance and delegating complexity to well-tested plugins.

API Design - The developer experience is the project’s standout: every REST endpoint maps to a discoverable, fully typed method (e.g. octokit.rest.repos.listForOrg), octokit.paginate abstracts away paging, and extensive docs at octokit.github.io/rest.js plus a HOW_IT_WORKS guide make onboarding straightforward with minimal boilerplate.

Used by 36 apps in this directory

TypeScript
92%
MIT

GB Studio

Design Tools · Developer Tools · Game Development

9,434

Drag-and-drop retro Game Boy game creator that compiles real ROMs — no coding required.

View details
88
Repo Health
83
Technical
72
Dependency
Built with
TypeScript 92%
Updated 1 weeks ago
TypeScript
63%
MIT

Ghost

Blogging · CMS

55,598

Open source headless Node.js CMS for professional publishing, paid memberships, and newsletters with a fully owned audience.

View details
96
Repo Health
85
Technical
64
Dependency
Built with
TypeScript 63%
JavaScript 35%
Updated 1 weeks ago
TypeScript
96%
Other

Infisical

Devops · Security

29,961

The open-source platform for secrets, certificates, privileged access, and AI agent security — all in one self-hostable system.

View details
91
Repo Health
84
Technical
64
Dependency
Built with
TypeScript 96%
Updated 6 days ago
TypeScript
98%
Other

Kibana

Analytics · Monitoring

21,338

Your open source window into the Elastic Stack — query, visualize, and act on data stored in Elasticsearch with real-time dashboards, AI-assisted search, and automated alerting.

View details
98
Repo Health
87
Technical
63
Dependency
Built with
TypeScript 98%
Updated 6 days ago
TypeScript
96%
AGPL 3.0

Libra AI

AI Development · No Code Platforms

1,695

Open-source AI-powered platform that generates and deploys full-stack web applications from natural language prompts, built natively for Cloudflare Workers.

View details
31
Repo Health
71
Technical
68
Dependency
Built with
TypeScript 96%
Updated 1 years ago
TypeScript
97%
Other

Lightdash

Analytics · Data Engineering

6,196

The open-source Looker alternative that turns your dbt project's metrics and dimensions into governed, self-serve charts and dashboards — no license key required.

View details
93
Repo Health
84
Technical
64
Dependency
Built with
TypeScript 97%
Updated 6 days ago
TypeScript
99%
Apache 2.0

Mastra Code

AI Code Assistants

29,041

"A coding agent that never compacts" — a terminal-based AI coding agent built on the Mastra framework, with Observational Memory instead of context compaction, multi-model support, and OAuth login for Claude Max or ChatGPT Plus.

View details
90
Repo Health
73
Technical
65
Dependency
Built with
TypeScript 99%
Updated 6 days ago
TypeScript
95%
MIT

melty

AI Code Assistants · Code Editors · Developer Tools

5,462

The AI code editor where every chat message is a git commit you can revert, branch, or squash

View details
35
Repo Health
75
Technical
67
Dependency
Built with
TypeScript 95%
Updated 1 years ago
TypeScript
53%
MIT

MentraOS

AI Development · Developer Tools

2,391

The open source operating system and SDK that lets developers build one app and run it across smart glasses from Even Realities, Vuzix, Mentra Live, and more.

View details
92
Repo Health
77
Technical
66
Dependency
Built with
TypeScript 53%
Java 16%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers