I think that the best way to enrich the data would be to integrate the npms.io API which already has some metrics about quality.
This would be better than tracking numbers of stars for sure.
However, it is more work as you say. Shouldn't be hard to do though once you've gone from a one-off db query to a script.