28 ms·
Suggestion: ability to add metadata about the subdomains, perhaps in a .json/.yaml/... file. It would be useful to have (optional) metadata about the subdomain
by sundarurfriend 10y ago
Suggestion: ability to add metadata about the subdomains, perhaps in a .json/.yaml/... file.
It would be useful to have (optional) metadata about the subdomains such as small descriptions (ta.wikipedia.org: "Tamil Wikipedia"), whether they use http or https by default, whether they redirect to a different URL (eg. alerts.google.com -> https://www.google.com/alerts https://www.google.com/alerts), other more sensible things HN readers might come up with.
The reason I suggest this be put in a JSON/YAML/other-machine-plus-human-readable format is twofold: (a) to keep the original txt files simple and small (b) to not invent an ad-hoc format in the text files for the metadata, and force every user of the repo to write a parser (albeit a small one).
There's pros and cons to doing it as a single json file (with subdomains as keys) vs having a json/ folder with one json each corresponding to the txt files, but that's probably just a bikeshed point to barge through.