I suggest providing a data-only API endpoint.
It could use a dedicated route (such as api/top-langs-data) or a query parameter (such as api/top-langs?data_only=true).
These would return the raw json data from the fetchers, rather than SVG.
Users could then build their own renderers to visualize the data.
Furthermore, we could consider refactoring the fetchers into independent package, allowing users to install and use them via npm.
I suggest providing a data-only API endpoint.
It could use a dedicated route (such as
api/top-langs-data) or a query parameter (such asapi/top-langs?data_only=true).These would return the raw json data from the fetchers, rather than SVG.
Users could then build their own renderers to visualize the data.
Furthermore, we could consider refactoring the fetchers into independent package, allowing users to install and use them via npm.