Source registries are JSON files pointing to source files. They are used to add sources easily to Grabber.
They can be hosted anywhere an can point to sources anywhere. The official source registry is hosted in Github, in the sources-metadata release.
{
"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 registry
slug
: 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 as name
in the source model file)hash
: the SHA256 hash of the model.js
filelastCommit
: the last change to this model file
hash
: the commit hash for this changeauthor
: the author of this changedate
: the date of this change in ISO formatsubject
: the subject of this changedefaultSites
: sites that are automatically added when adding this source (sites.txt
file)supportedSites
: sites that are supported by this source (supported.txt
file)