Log all javascript messages to the Drupal log. This module extends native javascript methods, so there's no need to implement anything on the front end.
The JSON:API Links module makes it possible to remove the "links" attributes from Drupal's JSON:API responses. This saves bandwidth by making responses more compact.