Fetch Docs for RAG based on package.json

Wouldn’t it be possible to have a library / database of documentation for npm packages that can then be ragged in a reasonable way? Do you add docs manually all the time?

I’ve googled this but didn’t find anything.