npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mybacklinks/cli

v0.1.7

Published

Official CLI for MyBacklinks project, backlink, and domain research workflows

Readme

@mybacklinks/cli

Official CLI for MyBacklinks.

Install

npm install -g @mybacklinks/cli

Login

mybacklinks login
mybacklinks login --api-key mbk_xxxxx

Commands

mybacklinks status
mybacklinks list-projects
mybacklinks create-project --name "Example" --url https://example.com --type website --json
mybacklinks fetch-project-info --project-id <id>
mybacklinks update-project-info --project-id <id> --contact-emails [email protected],[email protected]
mybacklinks fetch-project-backlinks --project-id <id> --status indexed
mybacklinks fetch-project-backlinks --domain example.com --all --json
mybacklinks get-backlink-resource --id <resource-id> --json
mybacklinks discover-backlink-opportunities --project-id <id> --payment-type free --limit 10 --json
mybacklinks fetch-backlinks-by-domain --domain example.com --limit 500
mybacklinks fetch-dr-by-domain --domain example.com
mybacklinks fetch-traffic-by-domain --domain example.com

Create a project

Use create-project to add a project before tracking backlink campaign work. The required fields are --name, --url, and --type (website, app, or other). Optional autofill fields include contact emails, reusable long descriptions, comment templates, social URLs, metadata URLs, --status, --group-name, and --pinned.

mybacklinks create-project \
  --name "Example" \
  --url https://example.com \
  --type website \
  --contact-emails [email protected],[email protected] \
  --social-urls https://x.com/example,https://github.com/example \
  --json

Project backlinks vs. raw domain discovery

Use fetch-project-backlinks when you want tracked MyBacklinks project records: submitted links, statuses, target URLs, resource metadata, and notes.

mybacklinks fetch-project-backlinks --domain example.com --all --json
mybacklinks fetch-project-backlinks --project-id <id> --status pending --json

Use fetch-backlinks-by-domain when you want raw provider-discovered backlinks for any domain, including competitors or domains that are not MyBacklinks projects. This output is labeled semantic: "raw_provider_discovery" so automations do not confuse it with tracked project submissions.

mybacklinks fetch-backlinks-by-domain --domain competitor.com --limit 500 --json

Fetch more domain backlinks

fetch-backlinks-by-domain returns 100 backlinks by default. If the response summary shows hasMore: true, re-run the command with a higher --limit, up to 500 per request:

mybacklinks fetch-backlinks-by-domain --domain example.com --limit 452 --json
mybacklinks fetch-backlinks-by-domain --domain example.com --limit 500 --json

For domains with more than 500 backlinks, use pagination.nextOffset from the previous response, or let the CLI fetch every page. Each page request consumes credits.

mybacklinks fetch-backlinks-by-domain --domain example.com --offset 500 --limit 500 --json
mybacklinks fetch-backlinks-by-domain --domain example.com --all --limit 500 --json

Output

  • Default: JSON output
  • --json: explicitly request JSON output
  • --md: Markdown output for agents and human review
  • --base-url: override API origin

Support

The CLI keeps command output machine-readable. Support hints are written to stderr and help text. File bugs, rough edges, or feature requests at https://github.com/hekmon8/mybacklinks-tools/issues.

Auth storage

Credentials are stored at ~/.config/mybacklinks/credentials.json.

Release automation (GitHub Actions)

  • npm publish trigger: .github/workflows/publish-cli.yml
  • Publish tag pattern: cli-v* (example: cli-v0.2.0)
  • Push a matching tag after bumping mybacklink-cli/package.json

Required repository secrets

  • NPM_TOKEN: npm automation token with permission to publish @mybacklinks/cli