Just sharing in case it helps others - disclaimer, this isn't a solid solution though.
Plus, this was my first attempt at modifying a Flarum extension, and I didn’t do it the right way initially - I ended up modifying the vendor/ version directly 🤦‍♂️.
How it works:
- Parse Nginx access logs
- grep IPs for the current hour
- Deduplicate them
- Exclude bot user agents
- Deduct logged-in users
- Then compute and re-wire the remaining count as guest users