open-index/open-npm huggingface dataset:
npm package: @microfox/github
Description: GitHub SDK for Microfox
Latest version: 2.0.0

# @microfox/github

octokit.js
The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno.

The octokit package integrates the three main Octokit libraries

API client (REST API requests, GraphQL API queries, Authentication)
App client (GitHub App & installations, Webhooks, OAuth)
Action client (Pre-authenticated API client for single repository)

Node
Install with npm/pnpm install octokit, or yarn add octokit

```ts
import { Octokit } from '@microfox/github';
```

standalone minimal Octokit: @octokit/core.

The Octokit client can be used to send requests to GitHub's REST API and queries to GitHub's GraphQL API.

Example: Get the username for the authenticated user.

```ts
// Create a personal access token at https://github.com/settings/tokens/new?scopes=repo
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });

// Compare: https://docs.github.com/en/rest/reference/users#get-the-authenticated-user
const {
  data: { login },
} = await octokit.rest.users.getAuthenticated();
console.log('Hello, %s', login);
```

## REST API

There are two ways of using the GitHub REST API, the octokit.rest._ endpoint methods and octokit.request. Both act the same way, the octokit.rest._ methods are just added for convenience, they use octokit.request internally.

For example

```ts
await octokit.rest.issues.create({
  owner: 'octocat',
  repo: 'hello-world',
  title: 'Hello, world!',
  body: 'I created this issue using Octokit!',
});
```
npm package: @microfox/google-calendar
Description: A TypeScript SDK for interacting with the Google Calendar API.
Latest version: 1.3.0

# Google Calendar

A TypeScript SDK for managing Google Calendar resources, including calendars, events, access control, and settings.

## Installation

```bash
npm install @microfox/google-calendar
```

## Environment Variables

To use this package, you need to set the following environment variables:

- `GOOGLE_CLIENT_ID`: The client ID obtained from the Google API Console for your OAuth2 application. ** (Required)**
- `GOOGLE_CLIENT_SECRET`: The client secret obtained from the Google API Console for your OAuth2 application. ** (Required)**
- `MICROFOX_GOOGLE_CALENDAR_ACCESS_TOKEN`: The access token for Google Calendar API. This token grants access to the user's Google Calendar data. ** (Required)**
- `MICROFOX_GOOGLE_CALENDAR_REFRESH_TOKEN`: The refresh token for Google Calendar API. This token is used to obtain a new access token when the current one expires. ** (Required)**
- `MICROFOX_GOOGLE_CALENDAR_SCOPES`: A space-separated list of scopes required for Google Calendar API access. Defaults to a predefined set of calendar scopes if not provided. Example: 'https://www.googleapis.com/auth/calendar.readonly https://www.googleapis.com/auth/calendar.events' (Optional)

## API Reference

For detailed documentation on the constructor and all available functions, please refer to the following files:

- [**createGoogleCalendarSDK** (Constructor)](./docs/createGoogleCalendarSDK.md): Initializes the client.
- [clearCalendar](./docs/clearCalendar.md)
- [deleteAclRule](./docs/deleteAclRule.md)
- [deleteCalendar](./docs/deleteCalendar.md)
- [deleteCalendarFromList](./docs/deleteCalendarFromList.md)
- [deleteEvent](./docs/deleteEvent.md)
- [getAclRule](./docs/getAclRule.md)
- [getCalendar](./docs/getCalendar.md)
- [getCalendarFromList](./docs/getCalendarFromList.md)
- [getColors](./docs/getColors.md)
- [getEvent](./docs/getEvent.md)
- [getSetting](./docs/getSetting.md)
- [importEvent](./docs/importEvent.md)
- [insertAclRule](./docs/insertAclRule.md)
- [insertCalendarToList](./docs/insertCalendarToList.md)
- [insertEvent](./docs/insertEvent.md)
- [listAclRules](./docs/listAclRules.md)
- [listCalendarList](./docs/listCalendarList.md)
- [listEventInstances](./docs/listEventInstances.md)
- [listEvents](./docs/listEvents.md)
- [listSettings](./docs/listSettings.md)
- [moveEvent](./docs/moveEvent.md)
- [queryFreebusy](./docs/queryFreebusy.md)
- [quickAddEvent](./docs/quickAddEvent.md)
- [stopChannel](./docs/stopChannel.md)
- [updateAclRule](./docs/updateAclRule.md)
- [updateCalendar](./docs/updateCalendar.md)
- [updateCalendarInList](./docs/updateCalendarInList.md)
- [updateEvent](./docs/updateEvent.md)
- [watchAcl](./docs/watchAcl.md)
- [watchCalendarList](./docs/watchCalendarList.md)
- [watchEvents](./docs/watchEvents.md)
- [watchSettings](./docs/watchSettings.md)
npm package: @microfox/google-drive
Description: A TypeScript SDK for interacting with the Google Drive API.
Latest version: 1.3.0

# Google Drive SDK

A TypeScript SDK for interacting with the Google Drive API.

## Installation

```bash
npm install @microfox/google-drive @microfox/google-oauth
```

## Environment Variables

To use this package, you need to set the following environment variables:

- `GOOGLE_DRIVE_CLIENT_ID`: Client ID for your Google Cloud project OAuth 2.0 credentials. Obtain this from the Google Cloud Console. ** (Required)**
- `GOOGLE_DRIVE_CLIENT_SECRET`: Client Secret for your Google Cloud project OAuth 2.0 credentials. Obtain this from the Google Cloud Console. ** (Required)**
- `GOOGLE_DRIVE_REDIRECT_URI`: The redirect URI registered in your Google Cloud project for the OAuth 2.0 client. This URI is where Google will redirect the user after they authorize the application. ** (Required)**
- `GOOGLE_DRIVE_SCOPES`: A space-separated string of OAuth 2.0 scopes required for Google Drive API access. These scopes define the permissions your application requests. For example: 'https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive.metadata.readonly'. The SDK expects this as an array of strings, so your application will need to split this environment variable. ** (Required)**
- `GOOGLE_DRIVE_ACCESS_TOKEN`: Optional. An OAuth 2.0 access token for Google Drive API. If not provided, the SDK may attempt to use a refresh token or require an OAuth flow. (Optional)
- `GOOGLE_DRIVE_REFRESH_TOKEN`: Optional. An OAuth 2.0 refresh token for Google Drive API. Used to obtain new access tokens without requiring user re-authentication. (Optional)

## API Reference

For detailed documentation on the constructor and all available functions, please refer to the following files:

- [**GoogleDriveSdk** (Constructor)](./docs/GoogleDriveSdk.md): Initializes the client.
- [createGoogleDriveSDK](./docs/createGoogleDriveSDK.md)
- [deleteDrive](./docs/deleteDrive.md)
- [getAbout](./docs/getAbout.md)
- [getAccessProposal](./docs/getAccessProposal.md)
- [getApp](./docs/getApp.md)
- [getDrive](./docs/getDrive.md)
- [getStartPageToken](./docs/getStartPageToken.md)
- [hideDrive](./docs/hideDrive.md)
- [listAccessProposals](./docs/listAccessProposals.md)
- [listApps](./docs/listApps.md)
- [listChanges](./docs/listChanges.md)
- [listDrives](./docs/listDrives.md)
- [resolveAccessProposal](./docs/resolveAccessProposal.md)
- [unhideDrive](./docs/unhideDrive.md)
- [updateDrive](./docs/updateDrive.md)
- [watchChanges](./docs/watchChanges.md)
npm package: @microfox/google-seo
Description: A TypeScript SDK for interacting with the Google Search Console API.
Latest version: 1.4.0

# Google Search Console

A TypeScript SDK for interacting with the Google Search Console API.

## Installation

```bash
npm install @microfox/google-seo
```

## Environment Variables

The following environment variables are used by this SDK:

- `GOOGLE_CLIENT_ID`: Your Google OAuth 2.0 client ID. Obtain this value from the Google Cloud Console. (Required)
- `GOOGLE_CLIENT_SECRET`: Your Google OAuth 2.0 client secret. Obtain this value from the Google Cloud Console. (Required)
- `GOOGLE_REDIRECT_URI`: The redirect URI you specified in your Google Cloud Console. (Required)
- `GOOGLE_ACCESS_TOKEN`: Your Google OAuth 2.0 access token. Obtain this value through the OAuth 2.0 flow. (Required)

## Additional Information

To use this SDK, you need to obtain Google OAuth 2.0 credentials (client ID and client secret) from the Google Cloud Console (https://console.cloud.google.com/).

Enable the Google Search Console API in your Google Cloud project.

Set up the following environment variables:

- GOOGLE_CLIENT_ID: Your Google OAuth 2.0 client ID

- GOOGLE_CLIENT_SECRET: Your Google OAuth 2.0 client secret

- GOOGLE_REDIRECT_URI: The redirect URI you specified in your Google Cloud Console

- GOOGLE_ACCESS_TOKEN: Your Google OAuth 2.0 access token

To obtain an access token, you need to go through the OAuth 2.0 flow. You can use the @microfox/google-oauth package to handle this process.

This SDK requires the following OAuth 2.0 scopes: https://www.googleapis.com/auth/webmasters and https://www.googleapis.com/auth/webmasters.readonly

Make sure to handle token refresh when the access token expires. You can use the refreshAccessToken method provided by the SDK.

The Google Search Console API has usage quotas and limits. Please refer to the official documentation for the most up-to-date information on rate limits: https://developers.google.com/webmaster-tools/search-console-api-original/v3/limits

## API Reference

For detailed documentation on the constructor and all available functions, see:

- [GoogleSearchConsoleSDK](./docs/GoogleSearchConsoleSDK.md)
- [validateAccessToken](./docs/validateAccessToken.md)
- [refreshAccessToken](./docs/refreshAccessToken.md)
- [listSites](./docs/listSites.md)
- [getSite](./docs/getSite.md)
- [addSite](./docs/addSite.md)
- [deleteSite](./docs/deleteSite.md)
- [listSitemaps](./docs/listSitemaps.md)
- [getSitemap](./docs/getSitemap.md)
- [submitSitemap](./docs/submitSitemap.md)
- [deleteSitemap](./docs/deleteSitemap.md)
- [querySearchAnalytics](./docs/querySearchAnalytics.md)
- [inspectUrl](./docs/inspectUrl.md)