Skip to main content
Head-to-Head NPM Comparison

@google/genaivs@anthropic-ai/sdk

Detailed package comparison for bundle size, weekly downloads, supply chain security, and license obligations.

Weekly Downloads Leader
@anthropic-ai/sdk28.3M/wk
Security Grade Leader
@anthropic-ai/sdk100/100
TypeScript Ready
Both Native
Specification
@google/genaiv2.30.0
@anthropic-ai/sdkv1.1.0
Weekly Downloads14.7M28.3MWinner
Unpacked Size11.56 MB14.22 MB
Security Grade
B(75/100)
A+(100/100)
Lifecycle Scripts Has install scripts Clean (No scripts)
TypeScript Support Built-in Types (.d.ts) Built-in Types (.d.ts)
License TypeApache-2.0PERMISSIVEApache-2.0PERMISSIVE
Direct Dependencies43
Active Maintainers315
Last ReleaseOct 15, 2026Oct 21, 2026
Install Commandnpm i @google/genainpm i @anthropic-ai/sdk
Full Security ReportView @google/genai AuditView @anthropic-ai/sdk Audit
Free Castov VS Code Tool

Compare Dependencies Directly in VS Code

Audit supply chain risks, compare lightweight alternative packages, and catch malicious install scripts straight inside your package.json editor.

Download VS Code Extension

Frequently Asked Questions

Which package is more popular, @google/genai or @anthropic-ai/sdk?
@anthropic-ai/sdk is currently more popular with higher weekly downloads (28.3M/week) compared to @google/genai (14.7M/week).
Which has better supply chain security, @google/genai or @anthropic-ai/sdk?
@google/genai has a security score of 75/100 (Grade B), while @anthropic-ai/sdk holds 100/100 (Grade A+). @anthropic-ai/sdk scores higher for supply chain hygiene.
Do @google/genai and @anthropic-ai/sdk provide TypeScript definitions?
@google/genai includes built-in TypeScript types, while @anthropic-ai/sdk includes native TypeScript definitions.
What licenses do @google/genai and @anthropic-ai/sdk use?
@google/genai is published under the Apache-2.0 license (PERMISSIVE), and @anthropic-ai/sdk is licensed under Apache-2.0 (PERMISSIVE).