octokit/rest.js
Import the Octokit constructor based on your platform. Now instantiate your octokit API. All options are optional, but authentication is strongly encouraged. You can set auth to a personal access token string. Learn more about authentication. Setting a user agent is required.
https://octokit.github.io/rest.js/v18
Libraries - GitHub Docs
You can use the official Octokit library and other third-party libraries to extend and simplify how you use the GitHub API.
https://docs.github.com/en/rest/overview/libraries

