Google Generative AI
Official SDK for Google Gemini API to build AI-powered applications.
Model SDKs npm Apache-2.0
Used in agent projects
258
2.0% of 12,697 public repos built with AI coding agents
Rank in model sdks
#3 of 15
by use in those projects
Downloads
25.3M
npm, last 7 days, @google/genai
GitHub stars
1,686
last push Oct 10, 2026
How Google Generative AI is used
Google Generative AI is a dependency in 258 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (2.0%), #3 of 15 in model sdks. The most used alternative there is OpenAI. Projects that use it most often also use Lucide React (61.6%), React (82.6%), dotenv (45.0%). It is more common in projects set up for Gemini CLI (6.4%) than for GitHub Copilot (2.4%).
Often used with Google Generative AI
| Lucide React | 61.6% of Google Generative AI projects · 3.1× more than average |
|---|---|
| React | 82.6% of Google Generative AI projects · 1.9× more than average |
| dotenv | 45.0% of Google Generative AI projects · 2.9× more than average |
| TypeScript | 85.7% of Google Generative AI projects · 1.5× more than average |
| Tailwind CSS | 67.1% of Google Generative AI projects · 1.9× more than average |
| Supabase JS | 31.0% of Google Generative AI projects · 4.2× more than average |
| Tailwind Merge | 45.7% of Google Generative AI projects · 2.7× more than average |
| tsx | 33.3% of Google Generative AI projects · 3.4× more than average |
By coding agent
| Claude Code | 3.4% of projects set up for it |
|---|---|
| Cursor | 3.4% of projects set up for it |
| GitHub Copilot | 2.4% of projects set up for it |
| Gemini CLI | 6.4% of projects set up for it |
| Devin Desktop | 5.5% of projects set up for it |
| OpenAI Codex | 2.9% of projects set up for it |
| OpenCode | 3.4% of projects set up for it |
| Kiro | 3.4% of projects set up for it |
Share of public repos configured for each agent that list Google Generative AI as a dependency.
Install
| Package | npm install @google/genai |
|---|---|
| Packages counted | @google/genai, @google/generative-ai |
| Main stacks | TypeScript / JavaScript (129), Next.js (115), Python (5), React Native / Expo (4) |
| Example projects | 5pyj29s7cm-tech/LumiCore, bebechien/AIventure, kupzed/catatz, IgorGanapolsky/ThumbGate, nullxnothing/daemon |
Alternatives to Google Generative AI
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| OpenAI npm Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings. |
362 (2.9%) | 43.2M | 11.2K | Apache-2.0 |
| AI SDK npm Vercel's unified SDK for building AI apps with OpenAI, Anthropic, Google and more. |
328 (2.6%) | 29.8M | 27.2K | Apache-2.0 |
| OpenAI Python Library pypi Official Python SDK to call OpenAI APIs including GPT models and embeddings. |
244 (1.9%) | 75.1M | 31.8K | — |
| Anthropic SDK npm Official TypeScript SDK for calling Claude API and building agent applications. |
211 (1.7%) | 46.5M | 2,136 | MIT |
| Anthropic Python SDK pypi Official Python library for calling Claude via the Anthropic API. |
115 (0.9%) | 40.9M | 3,954 | MIT |
| Google GenAI Python SDK pypi Official Python SDK for Google's generative AI models including Gemini. |
111 (0.9%) | 34.1M | 4,013 | — |
| Hugging Face Hub pypi Python client library for downloading and publishing models and datasets on Hugging Face. |
59 (0.5%) | 60M | 3,974 | Apache-2.0 |
| Transformers.js npm Run Hugging Face transformer models directly in browser without servers. |
34 (0.3%) | 3.9M | 16.3K | Apache-2.0 |