npm-stars
List user's starred npm packages
TLDR
Show all starred packages by the currently logged-in user
Show your starred packages from a specific registry
Show packages starred by a specific user
Show packages starred by a specific user from a specific registry
Display help
SYNOPSIS
npm-stars [options]
PARAMETERS
--user=<username>
View stars for specific username. Default: current npm user
--limit=<number>
Max packages to show. Default: 15
--json
Output as JSON instead of formatted list
--no-truncate
Disable output truncation for full descriptions
DESCRIPTION
npm-stars is a lightweight CLI tool for Node.js developers to quickly view and manage starred packages on the npm registry. It fetches and displays a formatted list of packages you've starred (or any user's), making it easy to revisit favorites without browsing the web interface.
Installation is straightforward via npm: npm install --global npm-stars. Once installed, running npm-stars shows your top starred packages with details like name, description, version, and star count. It's particularly useful for developers tracking useful modules across projects.
The tool supports JSON output for scripting, user-specific queries, and customization like result limits or truncation. Stars are public data from npm's API, so no authentication is needed for public profiles. It's maintained by Sindre Sorhus, ensuring reliability and minimal dependencies.
CAVEATS
Requires Node.js and npm installed. Stars data is public; private profiles unsupported. Rate-limited by npm API.
INSTALLATION
npm install --global npm-stars
Then run npm-stars directly.
API SOURCE
Fetches from npm registry endpoint: registry.npmjs.org/-/v1/users/<user>/stars
HISTORY
Created by Sindre Sorhus in 2014 as part of his CLI ecosystem. Last major update around 2018; stable with occasional maintenance.
SEE ALSO
npm(1)


