Closed IonicaBizau closed 6 years ago
I'm open to ideas..
@zeke Maybe run the extract script after installing (a postinstall
script)?
run the extract script after installing
โ๏ธ This is a good technique, and one I use elsewhere for things like all-the-packages
But this package is different. I want users to have access to a dependency-free list of package names that is "accurate enough". If we were to add a postinstall script, it would require a full streaming of the contents of the registry on every install, which would take a long time per user. The hourly re-releasing of the package takes that burden off the user and onto the publisher (a bot).
I wrote about the technique I'm using to automate this at http://zeke.sikelianos.com/npm-and-github-automation-with-heroku/
Also, this module is kind of a :trollface: to illustrate the fact that there's no documented public API for the npm registry. There is an undocumented, unmaintained, and incomplete couch database. There is the npm/public-api repo, but it's been mostly quiet in the 18 months since its inception.
@zeke Makes sense!
What if we set up the bot to override the commits so it won't keep all the world history in this git repo? Because in the end, that's the problem, that the git repo itself gets bigger. ๐
Also, this module is kind of a :trollface: to illustrate the fact that there's no documented public API for the npm registry. There is an undocumented, unmaintained, and incomplete couch database. There is the npm/public-api repo, but it's been mostly quiet in the 18 months since its inception.
^so many feels
yes. many feels.
Here's my current work to share more consumable registry metadata:
https://github.com/zeke/dependent-packages https://github.com/zeke/package-stream https://github.com/zeke/nice-package https://github.com/zeke/all-the-packages https://github.com/zeke/electron-npm-packages
What ARE you building with all these tools? ๐คจ
Working toward an understanding of the most popular and useful userland tools for Electron. Hoping to display this data on Electron's website soon.
Yes this is getting bigger, but so far that hasn't been a problem. We can reopen this when and if the size becomes a problem.
I agree! ๐
@zeke Is there any way to keep the size of the repo the same while time is passing on? This is already pretty big and it will be bigger and bigger.