Octokit REST

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

SDK
npm
v22.0.1
661stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
85/100Excellent
Development Activity80
Maintenance88
Community72
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
87/100Excellent
Architecture86
Code Quality85
Innovation90
Learning Curve85

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 35 apps in this directory

TypeScript
94%
MIT

Actual

Invoicing Finance

28,224

Local-first personal finance with envelope budgeting, end-to-end encryption, and multi-device sync — no subscription required.

View details
93
Repo Health
85
Technical
77
Dependency
Built with
TypeScript94%
Updated yesterday
TypeScript
96%
Other

Amplication

Developer Tools · AI Code Assistants · Automation

16,010

Create production-ready backend services with your organization's standards baked in — generating NestJS, Prisma, and GraphQL code that you own and control.

View details
61
Repo Health
84
Technical
60
Dependency
Built with
TypeScript96%
Updated 1 months ago
TypeScript
51%
MIT

Anarlog

Note Taking · AI Assistants · Productivity

9,087

Anarlog is an open-source, local-first AI meeting notetaker that records, transcribes, and summarizes meetings entirely on your device — no cloud lock-in, no mandatory account, and every note saved as a plain markdown file you own forever.

View details
86
Repo Health
77
Technical
69
Dependency
Built with
TypeScript51%
Rust38%
Updated today
TypeScript
66%
Apache 2.0

Appsmith

Developer Tools · Automation · No Code Platforms

40,707

Open-source low-code platform to build admin panels, dashboards, and internal tools connected to any database or API.

View details
94
Repo Health
79
Technical
68
Dependency
Built with
TypeScript66%
Java22%
Updated today
TypeScript
55%
Other

Cap

Team Chat · Video Conferencing

20,986

Open source Loom alternative with GPU-accelerated recording, instant share links, AI summaries, and full self-hosting via Docker Compose.

View details
89
Repo Health
81
Technical
65
Dependency
Built with
TypeScript55%
Rust40%
Updated yesterday
TypeScript
84%
Apache 2.0

Continue

Developer Tools · AI Development · AI Code Assistants

35,532

Open-source coding agent for VS Code, JetBrains, and CLI with support for 30+ LLM providers.

View details
87
Repo Health
88
Technical
65
Dependency
Built with
TypeScript84%
Updated today
TypeScript
99%
Other

Dokploy

Devops · Hosting Control Panel · Security

36,702

Self-hosted PaaS that deploys apps and databases on your own VPS using Docker, Traefik, and multi-build-system orchestration

View details
89
Repo Health
76
Technical
65
Dependency
Built with
TypeScript99%
Updated yesterday
TypeScript
75%
Apache 2.0

Fern

Developer Tools

3,761

Fern turns a single OpenAPI, AsyncAPI, or Protobuf definition into type-safe SDKs for nine languages and a hosted API documentation site, all from one CLI and one source of truth.

View details
90
Repo Health
86
Technical
67
Dependency
Built with
TypeScript75%
Updated today
TypeScript
93%
Apache 2.0

flue

AI Agents · Developer Tools

7,953

Build autonomous AI agents and powerful workflows with a programmable TypeScript harness that gives any model sessions, tools, sandboxes, and durable execution.

View details
67
Repo Health
82
Technical
75
Dependency
Built with
TypeScript93%
Updated 1 weeks 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

Search