Source registries
Introduction¶
Source registries are JSON files pointing to source files. They are used to add sources easily to Grabber.
They can be hosted anywhere and can point to sources anywhere. The official source registry is hosted in GitHub, in the sources-metadata release.
Format¶
{
"name": "...",
"home": "https://...",
"url": "https://...",
"sources": [{
"slug": "...",
"name": "...",
"hash": "...",
"lastCommit": {
"hash": "...",
"author": "...",
"date": "...",
"subject": "..."
},
"defaultSites": ["..."],
"supportedSites": ["..."]
}]
}
name
: the name of the source registryhome
: the URL for the homepageurl
: the base URL used when loading sources, such as$url/$slug.zip
returns the source ZIPsources
: the list of sources managed by this registryslug
: the machine name of this source (will be the name used to load the ZIP file), usually without spaces or special charactersname
: the name of this source (same asname
in the source model file)hash
: the SHA256 hash of themodel.js
filelastCommit
: the last change to this model filehash
: the commit hash for this changeauthor
: the author of this changedate
: the date of this change in ISO formatsubject
: the subject of this change
defaultSites
: sites that are automatically added when adding this source (sites.txt
file)supportedSites
: sites that are supported by this source (supported.txt
file)