question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURES] add additional information for a package

See original GitHub issue

Hi guys. I’ve got requests for some new additions to the npm-search index. Let’s discuss them here:

  • open issues on gihtub: How many open issues are there.
  • number of gihtub stars: How many people stared this projet.
  • number of gihtub forks: How many people stared this projet.
  • open PR on gihtub: How many open PRs are there.
  • last commit on gihtub: When was the last commit on master.
  • add any other usefull information (here are all the properties returned by Github’s API)

Does this make sense?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
vvocommented, Apr 24, 2018

Those are valid concerns, adding the jsDelivr downloads seems “easy”. As for the GitHub api requests that’s a bit more tricky because of what @Haroenv said. Then you also have the freshness issue, currently rebuild the full index every week. If we provide things like number of opened issues, you might want the data to be a little fresher. That might require a bit more work to optimise the data pipeline (today it takes one day to rebuild completely the index, I am sure we can lower it down but we never investigated it too much)

Still, if you already have ideas on how to do it well, please do contribute, make it faster, anything 😃

2reactions
vvocommented, Apr 25, 2018

Thanks for the nice architecture thoughts!

Alternatively, we could use GraphQL to query github, since one GraphQL call can replace multiple REST calls. A single complex GraphQL call could be the equivalent of thousands of REST requests.

I did try out the GitHub GraphQL API, a bit strange at the beginning (I had to understand the actual GraphQL language), but afterwards feels super nice.

Example: https://github.com/vvo/zorgs/blob/master/src/zorgs/src/queries/repositoriesWithCommits.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

Features On Demand
Features on Demand (FODs) are Windows features that can be added at any time. Common features include language resources like handwriting ...
Read more >
Easily track your packages with new Gmail features
New Gmail features make it easier to track your packages. ... view of your package tracking and delivery information right in your inbox....
Read more >
Features - The Cargo Book
Features. Cargo "features" provide a mechanism to express conditional compilation and optional dependencies. A package defines a set of named features in ...
Read more >
The Ultimate Guide to Product Packaging
Learn how to design beautiful packaging for your products that builds customer loyalty and drives retention in your online store.
Read more >
Buy additional app features with in-app purchases and ...
What is a consumable in-app purchase? · Game currency, such as coins or gems · Extra health points in a game · A...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found