Public dataset · Web, code and analytics
deps.dev Open Source Dependencies in BigQuery
The deps_dev_v1 dataset is the deps.dev graph of open source packages: versions, resolved dependencies, dependents, advisories and source projects for npm, PyPI, Maven, Go, Cargo, NuGet and RubyGems. It stores a full weekly snapshot in every table, which is why the largest is 324 TiB; filter on one SnapshotAt day.
bigquery-public-data.deps_dev_v1 is open source dependency data from deps.dev, also listed in Analytics Hub. Each table keeps many full snapshots side by side: the Snapshots table lists the timestamps for which a complete snapshot of all other tables exists (236 when these sizes were measured), and every other table is partitioned by day on SnapshotAt. Snapshots arrive weekly; the newest when measured was 2026-11-16.
PackageVersions describes each version of each package. Dependencies holds the resolved dependencies (direct and indirect) of each version, computed as if the package were installed on a generic 64-bit Linux system, and Dependents inverts that relation. DependencyGraphEdges stores the full resolved graph; graphs exist for npm, Go, Maven, PyPI and Cargo. The *Requirements tables hold the declared, unresolved requirements per ecosystem. Advisories covers security advisories, and Projects and PackageVersionToProject link packages to their source repositories.
For each table there is a *Latest view that its description says returns the most recent snapshot. The 15 views are not listed below, which is why the table count is 31.
Tables and sizes
The dataset has 31 tables; the main ones are listed.
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
DependencyGraphEdgesFull resolved dependency graph, one row per edge. | 2,823,268,787,611 | 324 TiB | $2,023.08 | Partitioned: by day on SnapshotAt · Clustered: System, Name, Version |
DependenciesResolved direct and indirect dependencies of each package version. | 1,305,529,190,997 | 105 TiB | $657.25 | Partitioned: by day on SnapshotAt · Clustered: System, Name, Version |
DependentsDependencies inverted: who imports a given package version. | 1,127,691,758,773 | 92.1 TiB | $575.82 | Partitioned: by day on SnapshotAt |
MavenRequirementsDeclared requirements of Maven package versions. | 924,158,191 | 16.0 TiB | $99.89 | Partitioned: by day on SnapshotAt · Clustered: Name, Version |
PackageVersionsOne row per package version, with licenses, links, advisories and hashes. | 23,239,480,160 | 12.3 TiB | $77.01 | Partitioned: by day on SnapshotAt · Clustered: System, Name |
PackageVersionHashesFile hashes mapped to package versions. | 102,336,010,126 | 10.4 TiB | $64.81 | Partitioned: by day on SnapshotAt · Clustered: Hash |
PackageVersionToProjectLinks from package versions to source projects (not verified). | 22,827,534,896 | 2.5 TiB | $15.39 | Partitioned: by day on SnapshotAt · Clustered: System, Name, Version |
GoRequirementsDeclared requirements of Go package versions. | 1,483,233,182 | 1.9 TiB | $11.90 | Partitioned: by day on SnapshotAt · Clustered: Name, Version |
NPMRequirementsDeclared requirements of NPM package versions. | 3,414,602,377 | 1.5 TiB | $9.36 | Partitioned: by day on SnapshotAt · Clustered: Name, Version |
NuGetRequirementsDeclared requirements of NuGet package versions. | 2,053,140,634 | 494 GiB | $3.02 | Partitioned: by day on SnapshotAt · Clustered: Name, Version |
PyPIRequirementsDeclared requirements of PyPI package versions. | 357,734,973 | 105 GiB | $0.64 | Partitioned: by day on SnapshotAt · Clustered: Name, Version |
ProjectsSource repositories with stars, forks, issues and OSS-Fuzz coverage. | 894,013,607 | 96.3 GiB | $0.59 | Partitioned: by day on SnapshotAt · Clustered: Type, Name |
CargoRequirementsDeclared requirements of Cargo package versions. | 100,844,380 | 49.6 GiB | $0.30 | Partitioned: by day on SnapshotAt · Clustered: Name, Version |
RubyGemsRequirementsDeclared requirements of RubyGems package versions. | 142,214,948 | 18.6 GiB | $0.11 | Partitioned: by day on SnapshotAt · Clustered: Name, Version |
AdvisoriesSecurity advisories for npm, Go, Maven, PyPI, Cargo and NuGet packages. | 20,656,772 | 18.2 GiB | $0.11 | Partitioned: by day on SnapshotAt · Clustered: Source, SourceID |
SnapshotsTimestamps for which a full snapshot of all other tables exists. | 236 | 1.8 KiB | under $0.01 | None |
Example queries
Find the latest snapshot
A 1.8 KiB table, billed at the 10 MB minimum. Use the date it returns as a literal in the queries below.
SELECT MAX(Time) AS latest_snapshot
FROM `bigquery-public-data.deps_dev_v1.Snapshots`;Versions of an npm package in one snapshot
DATE(SnapshotAt) = '2026-11-16' keeps the scan to one weekly partition, and the clustering on System and Name narrows it further.
SELECT Version, UpstreamPublishedAt, Licenses
FROM `bigquery-public-data.deps_dev_v1.PackageVersions`
WHERE DATE(SnapshotAt) = '2026-11-16'
AND System = 'NPM'
AND Name = 'react'
ORDER BY UpstreamPublishedAt DESC
LIMIT 20;Dependencies of a PyPI release through the Latest view (expensive)
The *Latest views are convenient, but their definition is not visible and the dry run estimates the cost of many snapshots.
SELECT Dependency.Name, Dependency.Version, MinimumDepth
FROM `bigquery-public-data.deps_dev_v1.DependenciesLatest`
WHERE System = 'PYPI'
AND Name = 'pandas'
AND Version = '2.2.3';The same dependencies from one named snapshot
Same answer from the base table with an explicit snapshot day: about 200 times fewer bytes than the view.
SELECT Dependency.Name, Dependency.Version, MinimumDepth
FROM `bigquery-public-data.deps_dev_v1.Dependencies`
WHERE DATE(SnapshotAt) = '2026-11-16'
AND System = 'PYPI'
AND Name = 'pandas'
AND Version = '2.2.3';Security advisories that affect an npm package
Packages is a repeated record listing every affected package, so unnest it to filter by system and name.
SELECT Source, SourceID, Title, CVSS3Score, Severity, Disclosed
FROM `bigquery-public-data.deps_dev_v1.Advisories`,
UNNEST(Packages) AS pkg
WHERE DATE(SnapshotAt) = '2026-11-16'
AND pkg.System = 'NPM'
AND pkg.Name = 'lodash'
ORDER BY Disclosed DESC;Querying it cheaply
- Every table repeats the full dataset once per weekly snapshot, so always filter
DATE(SnapshotAt)to one day. Without it, the PyPI dependency lookup in the examples reads about 81 GiB; with it, 435 MiB. - Prefer a literal snapshot date over the
*Latestviews. Read the newest date fromSnapshotsfirst (billed at the 10 MB minimum), then pass it into your queries. - Add filters on the clustering columns, usually
System,NameandVersion. They are what keeps a lookup in a 105 TiB table under 1 GiB. DependencyGraphEdges(324 TiB),Dependencies(105 TiB) andDependents(92 TiB) are where expensive mistakes happen. Set a maximum bytes billed before exploring them.
FAQ
How much does it cost to query deps.dev in BigQuery?
A lookup for one package in one snapshot reads tens to hundreds of MiB, inside the free 1 TiB a month. The same lookup through a *Latest view is estimated at about 92 GiB, and an unfiltered scan of Dependencies would read 105 TiB.
Is the deps_dev_v1 dataset free?
Yes for storage: the data sits in the bigquery-public-data project and Google pays to store it. You pay for the queries you run from your own project. On-demand, the first 1 TiB scanned each month is free, then you pay per TiB scanned (see BigQuery pricing).
How often is deps.dev data updated in BigQuery?
Weekly. Each update adds a full snapshot to every table, and the Snapshots table lists them. When these sizes were measured the latest snapshot was dated 2026-11-16 and there were 236 in total.
What package ecosystems does deps_dev_v1 cover?
npm, Go, Maven, PyPI, Cargo and NuGet appear in advisories and package data, and there is a separate requirements table for RubyGems. Resolved dependency graphs and dependents are available for npm, Go, Maven, PyPI and Cargo.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
