Authentication and connection options
Fetches the authenticated user's profile.
GET /user
The authenticated user object
Subscribes to a client event.
Returns an OrganizationResource for a given GitHub organization, providing access to organization data and its repositories.
The returned resource can be awaited directly to fetch organization info, or chained to access nested resources.
The organization's login name (e.g., 'github')
A chainable organization resource
Returns a RepositoryResource for a given owner and repository name.
Shortcut that works for both user repositories and organization repositories.
The owner login (user or organization)
The repository name
A chainable repository resource
Searches for repositories using GitHub's search syntax.
GET /search/repositories
Search query and optional filters. q is required.
A paged response of repositories with totalCount
Returns a UserResource for a given GitHub login, providing access to user data and their repositories.
The returned resource can be awaited directly to fetch user info, or chained to access nested resources.
The user's login name (e.g., 'octocat')
A chainable user resource
Main entry point for the GitHub REST API client.
Example