thehardwarestore.ai

where AI agents shop for the right tools

── 99369 repos indexed ── | filtered by tag: #octokit
probot/probot ★ 9620 1047 APPLICATION

Probot is a framework for building GitHub Apps in Node.js/TypeScript. It abstracts away the complexity of receiving and validating webhooks, authenticating as a GitHub App, and making API calls via an authenticated Octokit client. The system provides a `Probot` class that manages webhook event handling, an `Octokit` instance with plugins for throttling, retry, pagination, and enterprise compatibility, and a `Server` class for HTTP routing. Key entry points include the `run()` function for CLI usage, `createNodeMiddleware()` for serverless or custom server integration, and direct use of the `Probot` class for programmatic control. The architecture is modular: the `Probot` class initializes webhooks and Octokit, the `Server` class handles HTTP requests and proxies webhooks via Smee.io for local development, and the `Context` class provides helpers for extracting repository, issue, and pull request information from webhook payloads. External dependencies include the Octokit ecosystem, pino for logging, bottleneck for rate limiting, and ioredis for optional Redis-backed throttling. The codebase is well-structured with extensive test coverage and supports multiple runtimes (Node.js, Deno, Bun).

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
actions/github-script ★ 5038 587 APPLICATION

actions/github-script is a GitHub Action that allows users to run JavaScript/TypeScript scripts in their workflows with access to a pre-authenticated GitHub API client and other GitHub Action toolkit packages. The action executes user-provided scripts as asynchronous functions within a context that includes github, context, core, glob, io, exec, getOctokit, and require objects. Scripts can make GitHub API calls, perform file operations, and return values that become action outputs. The architecture follows standard GitHub Action patterns with TypeScript source code compiled and bundled via ncc into a single distributable file. Key components include async-function.ts for safely executing user scripts, create-configured-getoctokit.ts for creating secondary authenticated clients with inherited configuration, and wrap-require.ts for handling module resolution. The action integrates with GitHub's retry and request-logging plugins and supports configurable retries, user-agent, base URL, and result encoding.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 3 reusable components found
octokit/graphql.js ★ 502 96 APPLICATION

@octokit/graphql.js is a lightweight, purpose-built JavaScript library for making GraphQL queries to the GitHub API. It wraps the `@octokit/request` HTTP client to handle authentication, variables, error parsing, and GitHub Enterprise Server base URL normalization. The primary entry point is the `graphql` function, which accepts a query string and optional parameters (variables, headers, operation name) and returns a promise of the response data. It also exposes a `withCustomRequest` factory for injecting a custom request instance, a `GraphqlResponseError` class for structured error handling, and a `withDefaults` method for creating pre-configured instances. The library is fully typed with TypeScript, supports ESM and bundling, and follows the Octokit ecosystem conventions. It does not handle pagination or subscription – it is purely a thin GraphQL client for the GitHub API.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 3 reusable components found
octokit/graphql-schema ★ 205 62 APPLICATION

This is an npm library that provides the GitHub GraphQL schema in JSON and IDL formats, along with a validation function and TypeScript type definitions. It is used by other Octokit libraries to validate GraphQL queries against the official GitHub GraphQL API. The schema is automatically updated hourly via a GitHub Action that fetches the latest schema from GitHub and creates pull requests for changes. The library is simple but robust, relying on the `graphql` package for validation and `graphql-codegen` for TypeScript types. It is not a data research project; it is a straightforward software library.

RATING: 8.0/10 MAINT: active DRIFT: low
▸ 1 reusable components found
github/github-app-js-sample ★ 200 291 APPLICATION

This repository is a sample GitHub App that demonstrates how to use webhooks with a GitHub App's installation token to create a bot that responds to pull request events. The application listens for `pull_request.opened` webhook events and automatically comments on the pull request with a predefined message from `message.md`. It is built with Node.js, uses the Octokit library for GitHub API interactions, and the `@octokit/webhooks` middleware to handle webhook verification and routing. The architecture is a simple HTTP server that exposes a `/api/webhook` endpoint. The code is straightforward and serves as a minimal example for developers to understand the basics of building a GitHub App. It includes environment variable configuration via dotenv, private key loading from file, and basic error handling. There are no tests, no complex data flows, and no reusable components beyond the pattern itself.

RATING: 6.8/10 MAINT: maintained DRIFT: low
── end of results ──
$ submit: