OpenAI vs Google Generative AI
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, OpenAI is a dependency in 287 (5.9%) and Google Generative AI in 172 (3.5%): OpenAI is 1.7× as common. Among repos created in the last 90 days that use a model sdks tool, OpenAI is in 13.8% and Google Generative AI in 20.7%, against 35.5% and 20.8% of older ones. 52 projects list both, often a sign of a migration or of a monorepo with several apps.
Model SDKs npm Updated Nov 17, 2026
| OpenAI | 5.9% | |
|---|---|---|
| Google Generative AI | 3.5% |
Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.
Side by side
| OpenAI | Google Generative AI | |
|---|---|---|
| Agent projects that use it | 287 | 172 |
| Rank in model sdks | #1 | #5 |
| In new repos with a model sdks tool (last 90 days) | 13.8% | 20.7% |
| In older repos with one | 35.5% | 20.8% |
| Downloads, last 7 days | 58.8M | 30.3M |
| GitHub stars | 11.3K | 1,715 |
| Last push to its repo | Nov 16, 2026 | Nov 17, 2026 |
| License | Apache-2.0 | Apache-2.0 |
| Funding | — | — |
| Projects that list both | 52 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | OpenAI | Google Generative AI |
|---|---|---|---|
| Claude Code | 2,617 | 5.8% | 4.4% |
| GitHub Copilot | 2,350 | 4.6% | 3.5% |
| Cursor | 1,990 | 7.2% | 4.2% |
| Gemini CLI | 422 | 5.7% | 6.4% |
| OpenAI Codex | 409 | 2.4% | 3.4% |
| OpenCode | 304 | 2.6% | 4.3% |
| OpenClaw | 241 | 11.2% | 6.2% |
| Devin Desktop | 231 | 12.6% | 6.9% |
| Kiro | 125 | 5.6% | 0% |
| Roo-Code | 90 | 8.9% | 5.6% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
OpenAI
Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings.
Most often used with it:
| dotenv | 57.8% of its projects |
|---|---|
| Zod | 61.0% of its projects |
| TypeScript | 88.9% of its projects |
| tsx | 45.3% of its projects |
| React | 65.2% of its projects |
npm install openai
Google Generative AI
Official SDK for Google Gemini API to build AI-powered applications.
Most often used with it:
| dotenv | 56.4% of its projects |
|---|---|
| Lucide React | 58.1% of its projects |
| React | 72.1% of its projects |
| TypeScript | 89.0% of its projects |
| tsx | 45.9% of its projects |
npm install @google/genai
More matchups
OpenAI vs Anthropic SDKAnthropic SDK vs Google Generative AIOpenAI Python Library vs Anthropic Python SDKAnthropic Python SDK vs Google GenAI Python SDKOpenAI Python Library vs Google GenAI Python SDK
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.