Aggregate helpful information about Julia's package ecosystem that isn't immediately available from the General registry itself.
Every Package in the General registry has a Package.toml in themetadata directory, sharded
into a subdirectory based upon its capitalized first letter (P). This TOML has all the registered
versions as its top-level keys. Each version entry has the following fields:
registered::DateTime. Required. It is the timestamp of the registration commit landing on General'smasterbranch.yanked::DateTime. Optional. If yanked, set to the timestamp of the yanking commit landing on General'smasterbranch.artifact_urls::Vector{String}. Optional (but nearly always set). Every download URL within that version'sArtifacts.toml.artifact_metadata::Vector{<:Dict}. Optional. A collection of tables, each with the fields:artifact_urls::Vector{String}. Optional. When present, must be a subset of the version'sartifact_urls; an empty list applies to no artifacts. When omitted, this entry must be the only entry and it applies to all of the version's artifacts.buildscript::String. Optional. The URL of the buildscriptmetadata::String. Optional. Either a URL or a path in this repository that points to the build metadatametadata_type::String. Optional. An identifier for the type ofmetadata, currently only"BinaryBuilder --meta-json"metadata_version::String. Optional. The version of the metadata schemametadata_source::String. Optional. Information about how the given metadata was obtainedsources::Vector{<:Dict}. Optional. Extracted information from the buildmetadatato describe the sources from which this artifact was created. Each table within has fields:type::String. Optional. One of["file", "archive", "git", "directory", "builddependency"], or missingpackage::String. Required for"builddependency".url::String. Required for alltypes (including missing) except"builddependency"hash::String. Required for alltypes (including missing) except"builddependency"and"directory"upstream::Dict. Optional. A table describing this resource, first identified with Repology.jl'sidentify:project::String. Required. A Repology project URL, likerepology.org/project/expatversion::String. Optional. The exact upstream version number, if knownprovenance::String. Required. Howprojectandversionwere identified, from most to least trustworthy:"override"(hand-verified source),"url-pattern"(curated URL pattern),"repology-url"(exact match in Repology's data),"tag-scheme"(parsed from a forge release/tag URL),"git-tag"(the git commit's tag),"repository"(project known from the repository, but no version),"heuristic"(a guess from the URL) or"manual"(entered or corrected by hand)
If shipped binaries identify an upstream version but build metadata is unavailable, record it under
artifact_metadata.sources.upstream with provenance = "manual" and describe the evidence in metadata_source.
For these entries, omit metadata, metadata_type, and metadata_version; each source contains only its upstream table.
GeneralMetadata.metadata() fills in omitted per-entry lists when the version's artifact_urls is known.
Use GeneralMetadata.metadata(; expand_artifact_urls=false) to read the stored form without expanding it.
To allow for programmatic access in non-Julia environments, this powers a simple JSON-based API server. It currently has the following endpoints:
- GET https://juliaregistries.github.io/GeneralMetadata.jl/api/Example/versions.json
- provides the version numbers and each one's
registereddate along with, optionally:"yanked"date"has_artifacts"boolean"artifact_upstreams"array of tables of upstream project names, versions and provenance (seeupstreamabove)"artifacts_tracked"boolean if all artifacts have upstream information for all their sources
- provides the version numbers and each one's
- GET https://juliaregistries.github.io/GeneralMetadata.jl/api/Example/info.json
- provides the UUID
The domain and prefix here may change in the future.
You can use meta = GeneralMetadata.metadata() to gather all the information into a single nested dictionary, mapping the package names
to a dictionary of their versions and data. Modifications to this dictionary can be serialized back out with GeneralMetadata.save_metadata!(meta).
The goal is for this information to be automatically and regularly updated. All update scripts are non-destructive and
preserve any manually-entered information. Updates only add upstream to sources that don't have one yet; existing entries are
never overwritten. A full recomputation of every upstream entry is a deliberate step (the regenerate_upstream option of the
"Update metadata" workflow) after significant Repology.jl improvements; it keeps "manual" entries, and its diff should be reviewed. All recorded data should
be correct. If you notice something wrong, please open an issue or pull request with the correction.
Additional fields may be added to the TOML data files and web API in the future.
Contributions are very welcome, both to the infrastructure and to the data itself. In particular artifact "upstream" identification is
automatically populated and may be wrong. Correct an entry here directly (setting provenance = "manual"), and if the mistake
comes from a pattern that will recur, also fix it in Repology.jl (see its additional_info.toml). These are only thoroughly reviewed upon publication of a Security Advisory.
One category of metadata that is outstanding and for which contributions would be very welcome is licensing information, both of the packages themselves and their artifacts.
This repository only concerns itself with the General registry; other registries are explicitly out of scope (and in fact the very structure of this repository is only possible due to General's naming restrictions). The additional metadata recorded here should be things that are not easily resolved by the General registry directly.