open-index/open-npm huggingface dataset:
npm package: @redredgroup/nestjs-firebase-admin
Description: Firebase Admin integration to a NestJS application
Author: Seihoon Kim
Latest version: 1.2.0

# Nestjs Firebase Admin [![Actions Status][gh-actions-badge]][gh-actions] [![Node Version][node-badge]][npm] [![NPM version][npm-badge]][npm] [![NPM version][npm-download]][npm]

[gh-actions]: https://github.com/REDREDGROUP/nestjs/actions
[npm]: https://www.npmjs.com/package/@redredgroup%2Fnestjs
[gh-actions-badge]: https://github.com/REDREDGROUP/nestjs/workflows/CI/badge.svg
[node-badge]: https://img.shields.io/node/v/@redredgroup%2Fnestjs-firebase-admin.svg
[npm-badge]: https://img.shields.io/npm/v/@redredgroup%2Fnestjs-firebase-admin.svg
[npm-download]: https://img.shields.io/npm/dm/@redredgroup%2Fnestjs-firebase-admin.svg

### Important

Versions **1.0.2** and earlier are deprecated! for older versions, use the (README.md)[deprecated] It is recommended that you use the latest version of package whenever possible.

[deprecated]: https://www.npmjs.com/package/@redredgroup/nestjs-firebase-admin/v/1.0.2

## Support Function

| Function       | Support |
| -------------- | ------- |
| Authentication | ✅      |
| Database       | ✅      |
| Firestore      | ✅      |
| Messaging      | ✅      |
| RemoteConfig   | ✅      |
| Storage        | ✅      |

### Introduction

This package is a module that converts the asynchronous firebase-admin to Nestjs.

## Installation

using npm

```bash
npm install @redredgroup/nestjs-firebase-admin
```

using yarn

```bash
yarn install @redredgroup/nestjs-firebase-admin
```

using pnpm

```bash
pnpm add @redredgroup/nestjs-firebase-admin
```

### Import module

```typescript
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { FirebaseAdminModule } from '@redredgroup/nestjs-firebase-admin';

@Module({
  imports: [
    FirebaseAdminModule.forRoot({
      firebaseAdminOptions: {}, //firebase admin option
    }),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}

//Or the forRootAsync module using @nestjs/Config

import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { FirebaseAdminModule } from '@redredgroup/nestjs-firebase-admin';

@Module({
  imports: [
    FirebaseAdminModule.forRootAsync({
      useFactory: () => ({ firebaseAdminOptions: {} }), //firebase admin option
    }),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
```

## Example

### Sending SMS

```typescript
import { Injectable } from '@nestjs/common';
import { FirebaseAdminService } from '@redredgroup/nestjs-firebase-admin';

@Injectable()
export class AppService {
  constructor(private readonly firebaseAdminService: FirebaseAdminService) {}

  async getFirebaseUsers(): Promise<string> {
    const getFirebaseUsers = await this.firebaseAdminService.Authentication.listUsers();

    console.log(getFirebaseUsers);

    return 'ok';
  }
}
```

## Copyright

© 2025 REDREDGROUP Software. All Right Reserved.

## License

Apache-2.0
npm package: @redredgroup/nestjs-genai
Description: Gemini AI integration to a NestJS application
Author: Seihoon Kim
Latest version: 1.0.0

# Nestjs GenAI [![Actions Status][gh-actions-badge]][gh-actions] [![Node Version][node-badge]][npm] [![NPM version][npm-badge]][npm]

[gh-actions]: https://github.com/REDREDGROUP/nestjs/actions
[npm]: https://www.npmjs.com/package/@redredgroup%2Fnestjs-genai
[gh-actions-badge]: https://github.com/REDREDGROUP/nestjs/workflows/CI/badge.svg
[node-badge]: https://img.shields.io/node/v/@redredgroup%2Fnestjs-genai.svg
[npm-badge]: https://img.shields.io/npm/v/@redredgroup%2Fnestjs-genai.svg

### Introduction

NestJS module that wraps the official `@google/genai` SDK so you can share a configured Gemini client via dependency injection.

## Installation

using npm

```bash
npm install @redredgroup/nestjs-genai
```

using yarn

```bash
yarn install @redredgroup/nestjs-genai
```

using pnpm

```bash
pnpm add @redredgroup/nestjs-genai
```

### Import module

```typescript
import { Module } from '@nestjs/common';
import { GenAIModule } from '@redredgroup/nestjs-genai';

@Module({
  imports: [
    GenAIModule.forRoot({
      options: {
        apiKey: 'GOOGLE_API_KEY',
      },
    }),
  ],
})
export class AppModule {}

// Or the forRootAsync module using @nestjs/Config

import { Module } from '@nestjs/common';
import { GenAIModule } from '@redredgroup/nestjs-genai';
import { ConfigModule, ConfigService } from '@nestjs/config';

@Module({
  imports: [
    GenAIModule.forRootAsync({
      imports: [ConfigModule],
      inject: [ConfigService],
      useFactory: (configService: ConfigService) => ({
        options: {
          apiKey: configService.get('GOOGLE_API_KEY'),
        },
      }),
    }),
  ],
})
export class AppModule {}
```

## Output 4 nicknames similar to the injected nickname

```typescript
import { Injectable } from '@nestjs/common';
import { GenAIService } from '@redredgroup/nestjs-genai';
import type { GenerateContentResponse } from '@google/genai';

@Injectable()
export class AppService {
  constructor(private readonly genAiService: GenAIService) {}

  async generateRandomNickname(nickname: string): Promise<GenerateContentResponse> {
    const response = await this.genAiService.models.generateContent({
      model: 'gemini-1.5-flash',
      contents: `You are a helpful assistant that generates nicknames. Provide 4 nicknames similar to "${nickname}".`,
    });

    return response;
  }
}
```

## Copyright

© 2025 REDREDGROUP Software. All Right Reserved.

## License

Apache-2.0
npm package: @redredgroup/nestjs-google-auth
Description: Google Authentication integration to a NestJS application
Author: Seihoon Kim
Latest version: 1.0.0

# Nestjs Google Auth [![Actions Status][gh-actions-badge]][gh-actions] [![Node Version][node-badge]][npm] [![NPM version][npm-badge]][npm]

[gh-actions]: https://github.com/REDREDGROUP/nestjs/actions
[npm]: https://www.npmjs.com/package/@redredgroup%2Fnestjs-google-auth
[gh-actions-badge]: https://github.com/REDREDGROUP/nestjs/workflows/CI/badge.svg
[node-badge]: https://img.shields.io/node/v/@redredgroup%2Fnestjs-google-auth.svg
[npm-badge]: https://img.shields.io/npm/v/@redredgroup%2Fnestjs-google-auth.svg

### Introduction

This package is a module that integrates Google Authentication to NestJS application.

## Installation

using npm

```bash
npm install @redredgroup/nestjs-google-auth
```

using yarn

```bash
yarn add @redredgroup/nestjs-google-auth
```

using pnpm

```bash
pnpm add @redredgroup/nestjs-google-auth
```

### Import module

```typescript
import { Module } from '@nestjs/common';
import { GoogleAuthModule } from '@redredgroup/nestjs-google-auth';

@Module({
  imports: [
    GoogleAuthModule.forRoot({
      clientId: 'YOUR_GOOGLE_CLIENT_ID',
      clientSecret: 'YOUR_GOOGLE_CLIENT_SECRET',
      redirectUri: 'YOUR_REDIRECT_URI',
    }),
  ],
})
export class AppModule {}

//Or the forRootAsync module using @nestjs/Config

import { Module } from '@nestjs/common';
import { GoogleAuthModule } from '@redredgroup/nestjs-google-auth';
import { ConfigModule, ConfigService } from '@nestjs/config';

@Module({
  imports: [
    GoogleAuthModule.forRootAsync({
      useFactory: (configService: ConfigService) => ({
        clientId: configService.get('GOOGLE_CLIENT_ID'),
        clientSecret: configService.get('GOOGLE_CLIENT_SECRET'),
        redirectUri: configService.get('GOOGLE_REDIRECT_URI'),
      }),
      inject: [ConfigService],
    }),
  ],
})
export class AppModule {}
```

## Example

### OAuth2 Client

```typescript
import { Injectable } from '@nestjs/common';
import { GoogleAuthService } from '@redredgroup/nestjs-google-auth';

@Injectable()
export class AppService {
  constructor(private readonly googleAuthService: GoogleAuthService) {}

  async getAuthUrl(): string {
    const authUrl = this.googleAuthService.generateAuthUrl({
      scope: ['https://www.googleapis.com/auth/userinfo.email'],
    });

    return authUrl;
  }

  async getUserInfo(code: string) {
    const { tokens } = await this.googleAuthService.getToken(code);
    const userInfo = await this.googleAuthService.getUserInfo(tokens.access_token);

    return userInfo;
  }
}
```

## Copyright

© 2025 REDREDGROUP Software. All Right Reserved.

## License

Apache-2.0
npm package: @redredgroup/nestjs-openai
Description: OpenAI integration to a NestJS application
Author: Seihoon Kim
Latest version: 1.1.0

# Nestjs OpenAI [![Actions Status][gh-actions-badge]][gh-actions] [![Node Version][node-badge]][npm] [![NPM version][npm-badge]][npm]

[gh-actions]: https://github.com/REDREDGROUP/nestjs/actions
[npm]: https://www.npmjs.com/package/@redredgroup%2Fnestjs
[gh-actions-badge]: https://github.com/REDREDGROUP/nestjs/workflows/CI/badge.svg
[node-badge]: https://img.shields.io/node/v/@redredgroup%2Fnestjs-openai.svg
[npm-badge]: https://img.shields.io/npm/v/@redredgroup%2Fnestjs-openai.svg

### Introduction

This package is a module that converts the asynchronous OpenAI to Nestjs.

## Installation

using npm

```bash
npm install @redredgroup/nestjs-openai
```

using yarn

```bash
yarn install @redredgroup/nestjs-openai
```

using pnpm

```bash
pnpm add @redredgroup/nestjs-openai
```

### Import module

```typescript
import { Module } from '@nestjs/common';
import { OpenAIModule } from '@redredgroup/nestjs-openai';

@Module({
  imports: [
    OpenAIModule.forRoot({
      options: {
        apiKey: 'OPENAI_API_KEY',
        //other openai Options
      },
    }),
  ],
})
export class AppModule {}

//Or the forRootAsync module using @nestjs/Config

import { Module } from '@nestjs/common';
import { OpenAIModule } from '@redredgroup/nestjs-openai';
import { ConfigModule, ConfigService } from '@nestjs/config';

@Module({
  imports: [
    OpenAIModule.forRootAsync({
      imports: [ConfigModule],
      inject: [ConfigService],
      useFactory: (configService: ConfigService) => ({
        options: {
          apiKey: configService.get('OPENAI_API_KEY'),
          //other openai Options
        },
      }),
    }),
  ],
})
export class AppModule {}
```

## Output 4 nicknames similar to the injected nickname

###

```typescript
import { Injectable } from '@nestjs/common';
import { OpenAIService } from '@redredgroup/nestjs-openai';
import { ChatCompletion } from 'openai/resources';

@Injectable()
export class AppService {
  constructor(private readonly openAiService: OpenAIService) {}

  async generateRandomNickname(nickname: string): Promise<ChatCompletion> {
    const chatCompletion = await this.openAiService.chat.completions.create({
      messages: [
        {
          role: 'system',
          content: 'You are a helpful assistant that generates nicknames.',
        },
        {
          role: 'user',
          content: `Generate 4 nicknames similar to "${nickname}"`,
        },
      ],
      model: 'gpt-3.5-turbo',
    });

    return chatCompletion;
  }
}
```

## Copyright

© 2025 REDREDGROUP Software. All Right Reserved.

## License

Apache-2.0