Octokit REST

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

SDK
npm
v22.0.1
664 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
80 /100 Excellent
Development Activity 72
Maintenance 76
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
95%
MIT

Actual

Invoicing Finance

29,186

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
73
Dependency
Built with
TypeScript 95%
Updated 5 days ago
TypeScript
96%
Other

Amplication

AI Code Assistants · Automation · Developer Tools

16,015

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
58
Repo Health
84
Technical
60
Dependency
Built with
TypeScript 96%
Updated 3 months ago
TypeScript
54%
MIT

Anarlog

AI Assistants · Note Taking · Productivity

9,404

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
68
Dependency
Built with
TypeScript 54%
Rust 34%
Updated 5 days ago
TypeScript
68%
Apache 2.0

Appsmith

Automation · Developer Tools · No Code Platforms

40,959

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

View details
93
Repo Health
79
Technical
66
Dependency
Built with
TypeScript 68%
Java 21%
Updated 1 weeks ago
Rust
54%
Other

Cap

Team Chat · Video Conferencing

22,884

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
64
Dependency
Built with
Rust 54%
TypeScript 42%
Updated 5 days ago
TypeScript
84%
Apache 2.0

Continue

AI Code Assistants · AI Development · Automation

36,049

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

View details
73
Repo Health
88
Technical
62
Dependency
Built with
TypeScript 84%
Updated 6 days ago
TypeScript
98%
Other

Dokploy

Devops · Hosting Control Panel · Security

37,543

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

View details
88
Repo Health
76
Technical
64
Dependency
Built with
TypeScript 98%
Updated 1 weeks ago
TypeScript
75%
Apache 2.0

Fern

Developer Tools

3,787

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
66
Dependency
Built with
TypeScript 75%
Updated 5 days ago
TypeScript
94%
Apache 2.0

flue

AI Agents · Developer Tools

8,383

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

View details
80
Repo Health
82
Technical
70
Dependency
Built with
TypeScript 94%
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