Currently, the available providers are listed in a JavaScript object that is defined inline in the source code of leaflet-providers.
It would be really useful to make that information available directly in a JSON file that could be used from other projects. For example, xyzservices extracts that information from leaflet-provider.js to make the same information available to Python. Xyzservices has some adoption in the scientific Python ecosystem (Geopandas, ipyleaflet, contextily, leafmap, bokeh, and others) - meaning that this project has in fact a lot of indirect adoption...
This separate JSON file could even be published independently of the leaflet-providers JS source, which would probably make it valuable for other users.
Currently, the available providers are listed in a JavaScript object that is defined inline in the source code of leaflet-providers.
It would be really useful to make that information available directly in a JSON file that could be used from other projects. For example, xyzservices extracts that information from leaflet-provider.js to make the same information available to Python. Xyzservices has some adoption in the scientific Python ecosystem (Geopandas, ipyleaflet, contextily, leafmap, bokeh, and others) - meaning that this project has in fact a lot of indirect adoption...
This separate JSON file could even be published independently of the leaflet-providers JS source, which would probably make it valuable for other users.