Socket
Book a DemoInstallSign in
Socket

@crowdstrike/aidr-google-genai

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crowdstrike/aidr-google-genai

A wrapper around the Google GenAI JavaScript SDK

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-88.89%
Maintainers
2
Weekly downloads
 
Created
Source

CrowdStrike AIDR + Google Gen AI SDK

A wrapper around the Google Gen AI SDK that wraps the Gemini API with CrowdStrike AIDR. Supports Node.js v22 and greater.

Installation

npm install @crowdstrike/aidr-google-genai

Usage

import { AidrGoogleGenAI } from "@crowdstrike/aidr-google-genai";

const GEMINI_API_KEY = process.env.GEMINI_API_KEY!;
const CS_AIDR_TOKEN = process.env.CS_AIDR_TOKEN!;
const AIDR_BASE_URL_TEMPLATE = process.env.CS_AIDR_BASE_URL_TEMPLATE!;

const ai = new AidrGoogleGenAI({
  apiKey: GEMINI_API_KEY,
  aidrApiKey: CS_AIDR_TOKEN,
  aidrBaseURLTemplate: AIDR_BASE_URL_TEMPLATE,
});

const response = await ai.models.generateContent({
  model: "gemini-2.0-flash-001",
  contents: "Why is the sky blue?",
});
console.log(response.text);

Note that AI Guard transformations on the LLM response are not applied because the conversion from Gemini API output to CrowdStrike AIDR input is lossy.

FAQs

Package last updated on 16 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts