badges / badges/shields

Badge request: dependents of a npm package

Open
#1,845 6 comments 6 reactions 0 assignees View on GitHub
good first issue service-badge
Dominant language
JavaScript
Stars
27.2k
Forks
5.6k
Avg merge
1d 8h
Merged PRs (30d)
46

Description

Would be nice to have a badge to show off how many npm packages depend on my package. For example, the `1717 Dependents` number at https://www.npmjs.com/package/got.

You could either:
- Use the API. Example: https://github.com/chrisdickinson/npm-get-dependents
- Scrape. Example: https://github.com/astur/check-npm-dependents

Contributor guide

Open the contributing guide

Research direction

The issue does not name implementation files or tests. Start by reviewing how existing Shields badges fetch npm metadata, then inspect the linked npm-get-dependents API and scraping example. Done means a badge can display the number of npm packages depending on a requested package.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.