{WEATHER_MODIFIER} {TOPBAR}

# Stats

Welcome to the stats page! This page is now "deprecated"... sorta.
Feel free to read more about it at the bottom of the page.

#

Stats

- Page generation time: {LOAD_TIME}
- Pregeneration time: {PREGEN_TIME}ms
- Total Pregen time (all pages): {PREGEN_TOTAL}ms
- Uptime: {UPTIME}
- Last Lanyard update: {LAST_LANYARD}
- Last Pregeneration: {LAST_PREGEN}
- Server connected to API: {API_CONNECTED}
- Javascript Loaded/Enabled: false
- Client connected to API: false

##

Why does this page exist?

Originally, the stats page served the purpose of putting heavy load on the server for testing page generation times. This had a number of problems, though:

1. Anyone could freely use this page and put the server under heavy load, with no limits, including malicious actors.
2. The page itself failed to serve its original function, as it was not an accurate display of what kind of loads or processing would be caused by a real page on the site, as it did not contain things such as page embeds, and otherwise had a lack of content.
3. It didn't provide any information the main page did not.

The list could probably go on and on, but by now I suspect you begin to get the idea. So, overall, this page is pretty useless :3

##

Why does it still exist then?

Mainly for the aforementioned page embeds. The main page, and others, can embed the stats page on themselves to easily collect statistics! Currently, this is only used on the main page but, the code is still more organized and much more modular than if I had smacked the code into the main page and called it a day.

##

The future of the stats page

I have a few different ideas at the moment, one of them being an actual stats monitor. E.G, I could record stats such as:

- Programs connected to the api (This would includes sites AND users)
- Average CPU, RAM, etc loads
- Uptime monitor (Would probably pull from something like Uptime Kuma)

But, only time can tell :)