I’m going to implement wiki template list API this week, I’d like to get some input on this.
My current design will be just setup a wiki like https://tw-cpl.netlify.app/ to collect tiddlers about templates , and use a a render template to aggregate these tiddlers into a JSON like this in Choosing starting Template · Issue #31 · donmor/Tiddloid · GitHub
{
"locales":{ // all regions and languages available in TW
"zh-Hans":{ // Take Jane Chinese as an example
"name": "Chinese - China", // the name in this language
"alias":[ // alias, corresponding to the locale string obtained under various systems
"zh-rCN", // Android
"zh-CN", // standard
"zh-CN.UTF-8" // Linux/Unix
]
}
},
"versions":[ // all versions
"5.1.21",
"5.1.22"
],
"templates":[ // list of templates
{
"name": "TiddlyWiki", // name
"locale":[ // all compatible locales, filtered by one
"*-*" // wildcard, for all languages in all locales
],
"desc": "Official release", // description, with length limit
"icon": "uri/base64", // icon, recommended size 48x48
"homepage": "https://tiddlywiki.com/", // homepage
"uri": "https://tiddlywiki.com/empty.html", // empty.html file URL
"lastUpdate":1234567890, // Unix timestamp, action pulls the file and gets the timestamp based on the uri field, one of the filtering bases
"version": "5.1.22", // trial run to pull the HTML file and get the kernel version, one of the filtering bases
"size":3000000, // file size, one of the filtering bases
"valid":true, // set to false when no version information is available, client automatically blocks this template
}
}
}
Translated with www.DeepL.com/Translator (free version)
Then TidGi and Tiddloid and TiddlyDesktop may fetch this JSON and display available list for new user.