3 ms·
Use the couchdb instance at https://skimdb.npmjs.com/registry https://skimdb.npmjs.com/registry to scrape all readmes, parse them for URLs to known donation ser
by aepiepaey 9y ago
Use the couchdb instance at https://skimdb.npmjs.com/registry https://skimdb.npmjs.com/registry to scrape all readmes, parse them for URLs to known donation services, and seed the db using that.
https://skimdb.npmjs.com/registry/_all_docs https://skimdb.npmjs.com/registry/_all_docs will return a list including the project IDs, then you can send a GET to https://skimdb.npmjs.com/registry/<id> https://skimdb.npmjs.com/registry/<id>, which returns a json object which includes the readme.
For projects on Github, you could use OAuth to verify that a user owns a repo, and let them manually submit a donation URL. Not sure if npm provides OAuth, but if it does, use that instead.