I was wondering if there are any plans to make this data available through some kind of REST/GraphQL API so that services are able to request the data on demand and can be sure they always have the latest data.
Since the npm package already provides all the JSON I'd say that's probably the best way to pull in the data. Being out of date by a few weeks shouldn't matter that much except for very specific use cases where you _need_ the most recent data. Once it stabilizes, the dataset probably won't drastically change as often as it does now.
I've considered adding this sort of functionality to my Explorer web app, but it probably wouldn't be very fast and definitely wouldn't be updated as often as this repo. It'd also be community-supported rather than an official MDN thing.
FWIW I think the previous iteration of this project was an API, but that ended up being shut down before it was finished.
Hey! Yeah I figured. The explorer looks awesome also! If anyone comes looking for functionality like this here's a very simple implementation that makes the data available through an API type format. It has a separate task that could be used as a CRON job to e.g. daily pull in the latest data.
Most helpful comment
Hey! Yeah I figured. The explorer looks awesome also! If anyone comes looking for functionality like this here's a very simple implementation that makes the data available through an API type format. It has a separate task that could be used as a CRON job to e.g. daily pull in the latest data.
https://github.com/kvendrik/mdn-compat-data-api