11DESCRIPTION >
2- - `packages ` contains Tier-2 package metadata for tracked OSS packages across multiple ecosystems.
2+ - `ossPackages ` contains Tier-2 package metadata for tracked OSS packages across multiple ecosystems.
33 - Replicated from Postgres packages-db — seeded from deps.dev BigQuery, enriched by registry-specific workers (npm, Maven, etc.).
44 - Used to power package search, vulnerability overlays, criticality scoring, and ecosystem health analytics.
55 - `id` is the internal primary key.
@@ -28,6 +28,9 @@ DESCRIPTION >
2828 - `impact` is the composite criticality impact score from the ranking function (0 if not yet ranked).
2929 - `isCritical` is 1 if this package ranks in the top N by ecosystem in the most recent ranking pass, 0 otherwise.
3030 - `lastRankPassAt` is when the criticality ranking worker last processed this package (NULL if never ranked).
31+ - `downloadsLast30d` is the 30-day npm download count cached for ranking (0 if not yet populated).
32+ - `centralityScore` is the PageRank-based centrality score stored for future ranking formula use ('0' if not yet computed).
33+ - `rankInEcosystem` is the ordinal rank within the ecosystem from the most recent ranking pass (NULL if not yet ranked).
3134 - `ingestionSource` identifies which worker last wrote the row: 'npm-registry', 'deps_dev', etc. (empty string if unknown).
3235 - `lastSyncedAt` is when the row was last written by any worker — serves as the updated_at watermark for sync.
3336 - `createdAt` is the row-insert timestamp — set once on first insert, never updated.
@@ -36,32 +39,35 @@ SCHEMA >
3639 `id` UInt64 `json:$.record.id`,
3740 `purl` String `json:$.record.purl`,
3841 `ecosystem` String `json:$.record.ecosystem`,
39- `namespace` String `json:$.record.namespace` DEFAULT '' ,
42+ `namespace` Nullable( String) `json:$.record.namespace`,
4043 `name` String `json:$.record.name`,
41- `registryUrl` String `json:$.record.registry_url` DEFAULT '' ,
42- `status` String `json:$.record.status` DEFAULT '' ,
43- `description` String `json:$.record.description` DEFAULT '' ,
44- `homepage` String `json:$.record.homepage` DEFAULT '' ,
45- `declaredRepositoryUrl` String `json:$.record.declared_repository_url` DEFAULT '' ,
46- `repositoryUrl` String `json:$.record.repository_url` DEFAULT '' ,
44+ `registryUrl` Nullable( String) `json:$.record.registry_url`,
45+ `status` Nullable( String) `json:$.record.status`,
46+ `description` Nullable( String) `json:$.record.description`,
47+ `homepage` Nullable( String) `json:$.record.homepage`,
48+ `declaredRepositoryUrl` Nullable( String) `json:$.record.declared_repository_url`,
49+ `repositoryUrl` Nullable( String) `json:$.record.repository_url`,
4750 `licenses` Array(String) `json:$.record.licenses[:]` DEFAULT [],
48- `licensesRaw` String `json:$.record.licenses_raw` DEFAULT '' ,
51+ `licensesRaw` Nullable( String) `json:$.record.licenses_raw`,
4952 `keywords` Array(String) `json:$.record.keywords[:]` DEFAULT [],
50- `distTagsLatest` String `json:$.record.dist_tags_latest` DEFAULT '' ,
51- `distTagsNext` String `json:$.record.dist_tags_next` DEFAULT '' ,
52- `distTagsBeta` String `json:$.record.dist_tags_beta` DEFAULT '' ,
53- `versionsCount` UInt32 `json:$.record.versions_count` DEFAULT 0 ,
54- `latestVersion` String `json:$.record.latest_version` DEFAULT '' ,
53+ `distTagsLatest` Nullable( String) `json:$.record.dist_tags_latest`,
54+ `distTagsNext` Nullable( String) `json:$.record.dist_tags_next`,
55+ `distTagsBeta` Nullable( String) `json:$.record.dist_tags_beta`,
56+ `versionsCount` Nullable( UInt32) `json:$.record.versions_count`,
57+ `latestVersion` Nullable( String) `json:$.record.latest_version`,
5558 `firstReleaseAt` Nullable(DateTime64(3)) `json:$.record.first_release_at`,
5659 `latestReleaseAt` Nullable(DateTime64(3)) `json:$.record.latest_release_at`,
57- `dependentCount` UInt32 `json:$.record.dependent_count` DEFAULT 0 ,
58- `transitiveDependentCount` UInt64 `json:$.record.transitive_dependent_count` DEFAULT 0 ,
59- `dependentReposCount` UInt32 `json:$.record.dependent_repos_count` DEFAULT 0 ,
60+ `dependentCount` Nullable( UInt32) `json:$.record.dependent_count`,
61+ `transitiveDependentCount` Nullable( UInt64) `json:$.record.transitive_dependent_count`,
62+ `dependentReposCount` Nullable( UInt32) `json:$.record.dependent_repos_count`,
6063 `hasCriticalVulnerability` UInt8 `json:$.record.has_critical_vulnerability` DEFAULT 0,
61- `impact` Float32 `json:$.record.impact` DEFAULT 0 ,
64+ `impact` Nullable(String) `json:$.record.impact`,
6265 `isCritical` UInt8 `json:$.record.is_critical` DEFAULT 0,
6366 `lastRankPassAt` Nullable(DateTime64(3)) `json:$.record.last_rank_pass_at`,
64- `ingestionSource` String `json:$.record.ingestion_source` DEFAULT '',
67+ `downloadsLast30d` Nullable(UInt64) `json:$.record.downloads_last_30d`,
68+ `centralityScore` Nullable(String) `json:$.record.centrality_score`,
69+ `rankInEcosystem` Nullable(UInt32) `json:$.record.rank_in_ecosystem`,
70+ `ingestionSource` Nullable(String) `json:$.record.ingestion_source`,
6571 `lastSyncedAt` DateTime64(3) `json:$.record.last_synced_at`,
6672 `createdAt` DateTime64(3) `json:$.record.created_at`
6773
0 commit comments