Amazing stuff, I was writingsomething like this but using client side XHR, but I think this is a bad idea because that means you're stressing the neocities API a lot.(At least if you do it on page load, instead of just a "query stats" button for demonstration purposes)
I don't know, there could be some way to lower the load on Neocities. I suppose it would be possible to "cache" information for a maybe 12-hour or 1 day maximum, or maybe a little more so if someone puts multiple hit counters on every page, it wouldn't keep accessing Neocities servers as they go from page to page. I was using the API before but right now I'm only using it for Last Updated dates since it doesn't say
"n hours ago" or "n years ago". Right now I'm scraping the site profile page with may not be the best way to do things, but if you could get all of the information from the API that's solely what I'd use.
Yes, you could (probably) do this using the Fetch API. I meant that doing such a request on a home page on page load would be a bad idea since it would probably overstress the neocities API. But for just diagnostic/test/demonstration page with a input field and a button and a warning would probably be OK.
naw I was checking to see if it was included in the rss feed and for some reason it isn't so I've been cobbling a scraper together
Fancy lookin UI I see...