The Top 30 Libraries Claude Opus 4.7 Actually Imports
We parsed imports across every source file in the 9,281-repo Claude Opus 4.7 corpus and counted raw usage. Not declared in package.json — actually imported from source code.
Top 30 by usage count
| Rank | Library | Imports |
|---|---|---|
| 1 | react |
45,938 |
| 2 | lucide-react |
16,221 |
| 3 | __future__ (Python) |
14,070 |
| 4 | typing (Python) |
13,363 |
| 5 | os (Python) |
10,744 |
| 6 | @/lib/utils (shadcn) |
9,382 |
| 7 | json (Python) |
9,064 |
| 8 | pathlib (Python) |
8,962 |
| 9 | time (Python) |
7,875 |
| 10 | datetime (Python) |
7,513 |
| 11 | next/server |
7,071 |
| 12 | @/components/ui/button |
6,828 |
| 13 | next/link |
6,739 |
| 14 | sys (Python) |
6,713 |
| 15 | logging (Python) |
6,013 |
| 16 | next/navigation |
5,926 |
| 17 | path (Node) |
5,133 |
| 18 | re (Python) |
4,933 |
| 19 | dataclasses (Python) |
4,596 |
| 20 | fmt (Go) |
4,385 |
| 21 | fs (Node) |
4,165 |
| 22 | framer-motion |
3,790 |
| 23 | @/components/ui/card |
3,684 |
| 24 | @tanstack/react-query |
3,418 |
| 25 | @/components/ui/badge |
3,371 |
| 26 | react-router-dom |
3,265 |
| 27 | argparse (Python) |
3,248 |
| 28 | numpy |
3,247 |
| 29 | zod |
3,191 |
| 30 | strings (Go) |
3,170 |
What this reveals
React is truly dominant
45,938 react imports across ~9K repos is ~5 imports per repo. Every third file on average imports React. This is fine-tuning gold — the model has effectively infinite positive examples.
Python types are deeply adopted
typing appears 13,363 times — more than os or json. Opus 4.7 writes typed Python by default. __future__ at 14,070 confirms it (imports like from __future__ import annotations).
shadcn is a first-class stack component
@/lib/utils (9,382), @/components/ui/button (6,828), @/components/ui/card (3,684), @/components/ui/badge (3,371) — these four path patterns alone account for ~23K imports. That’s a level of ecosystem buy-in usually reserved for standard library modules.
Next.js App Router > Pages Router
next/server (7,071), next/link (6,739), next/navigation (5,926) are App-Router-era APIs. next/router (Pages Router) barely registers.
Modern Python over legacy Python
pathlib(8,962) >>> manualos.pathstring manipulationdataclasses(4,596) instead of plain classes for data structurestyping(13,363) for type hints
Validation: Zod for TypeScript, Pydantic-equivalent patterns for Python
zod is the clear winner in TS-land. Yup doesn’t appear in the top 30.
What’s notably missing
- Redux / Zustand — never crack the top 30.
@tanstack/react-query(server state) dominates. - Jest — Vitest appears in 394 repos as a framework; Jest only 95. Vitest is default.
- Axios — native
fetch+next/serverhandle HTTP in Next.js repos; explicit HTTP client imports are rare. - Moment.js — date handling is usually inline with
Dateordatetime; Moment barely appears. - Express middleware ecosystem — despite Express being present in 130 repos, middleware libraries don’t crack the top 30, suggesting Opus writes thin Express apps.
Comparison to what Opus 4.7 declares
In workspace package names (pnpm monorepo naming convention):
| Package name | Manager | Repos |
|---|---|---|
| web | pnpm | 29 |
| backend | pip | 24 |
| shared | pnpm | 20 |
| python | pip | 13 |
| ui | pnpm | 12 |
| db | pnpm | 12 |
| core | pnpm | 11 |
| api | pnpm | 11 |
| cli | pnpm | 8 |
| types | pnpm | 8 |
| config | pnpm | 7 |
pnpm workspaces dominate, with an almost-standardized layout: web/, ui/, shared/, api/, db/, core/. This is the Opus 4.7 scaffold signature.
These are live counts. A 30-min-refresh cron updates them whenever new Opus 4.7 repos arrive.