Dynamic View and Simulation Distances is a lightweight server-side mod that adjusts view distance and simulation distance based on the server's long-term average TPS. With few players online the distances grow; at peak hours, when lag builds up, they shrink.
It runs on Forge, Fabric and NeoForge across Minecraft 1.12 - 26.3. The config lets you set min and max chunk distances, the target tick time and the update frequency, and clients don't need it installed.
If TPS drops are hurting your Minecraft server, this one installs from the panel in a single click.