
Ghub is a Ruby gem designed to serve as a client for the GitHub API. It employs a design that leverages function composition and monads to process HTTP requests and responses. Built on top of the HTTP gem, Ghub offers an alternative to other clients that use different underlying libraries, such as Faraday. The tool aims to provide a more streamlined Object API for interacting with GitHub’s services.
Among its features, Ghub delivers a partial implementation of GitHub’s API, allowing users to interact with endpoints related to branch protection, branch signatures, organization members, pull requests, repositories, search, and users. HTTP request and response verification are handled using Dry Schema, and the use of function composition coupled with Pipeable enables structured and modular request processing. All interactions with the API are managed through the Ghub::Client class, which can be initialized with default settings or customized using configuration blocks.
Ghub is intended for developers working with Ruby who need to programmatically access or manage resources via the GitHub API. The setup process involves running a provided setup script, and the environment requires both Ruby and access to GitHub.
As a tool, Ghub fits within the class of API client libraries, specifically targeting the GitHub API for Ruby developers. Its design choices emphasize functional programming concepts and HTTP schema validation to facilitate reliable integrations.
In the API design, testing & docs space, Ghub takes a focused approach. It focuses on simplifying and enhancing GitHub API integration for Ruby developers with a functional programming approach. It is built as an open-source project for ruby developers working with GitHub APIs. Ghub is open source under the Open Source license. It runs on the web and API.
Behind Ghub is Alchemists, and the product first shipped in 2022. Development happens publicly on GitHub with 16 commits in the last 90 days. Key capabilities include GitHub API client, function composition, and HTTP request verification. It exposes integrations via a public API.
Latest indexed changes and source events
Other apps tracked under the same category.