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

findbrokenurl

v1.0.0

Published

This is a command line tool designed to report broken link and their status, such as good, bad, redirect, unknown and not exist.

Readme

fbl(find-broken-link)

This is a command line tool designed to report broken link and their status, such as good, bad, redirect, unknown and not exist.

Feature

fbl

  • Identify different types of URL with status code in colour coded:
    • Good link - status code 200
    • Redirect link - status code 301, 307, 308
    • Bad link - status code 400, 404
    • Unknown link - status code except above ones
    • Not exist link - status code with timeout and DNS issues
  • Find broken links for one or more file
  • Find broken links for one or more file in one or more directory
  • Find broken links directly from one or more URL
  • Find archvied version of link directly from one or more URL
  • Accepts configuration file for customizing result (good, bad, all links) and report format (JSON)
  • Check the links in the last 10 posts indexed by your local Telescope

Usage

fbl [options] <argument>

To check broken links in one or more files:

$ fbl -f [path to file1] [path to file2]...

To check broken link for one or more file in one or more directories:

$ fbl -d [path to directory1] [path to other directory2]...

To check broken link directy for one or more URL:

 $ fbl -u [url1] [url2]...

To find an archived version of one or more URL:

$ fbl -a [url1] [url2]...

To print specific type of URL(good/bad/all):

$ fbl -c [path to Config file] <another option>

The Config file must be a valid json with following structure:

{
    "resultType" : "[type]",
    "isJsonFormat" : boolean
}

where type can be good or bad or all and isJsonFormat is boolean : true or false. You can change the resultType and isJsonFormat while testing.

Options

  • -f, --fileName: path to one or more files you want to check for broken link
  • -d, --dir : path to one or more directories you want to check for broken link
  • -u, --url: one or more URL you want to check for broken link
  • -a, --archived: one or more URL you want to check for archived version
  • -c, --config: uses the configuartion from specified file
  • -t, --telescope : Check the links in the last 10 posts indexed by your local Telescope
  • -v, --version: prints current version number of the CLI with tool name
  • -h, --help: prints the options available for the CLI with the example of how to use it

Testing

For testing purposes, two test files(test.txt, test2.html), one test directory, and a Config file have been provided.

Improvement

I am actively working on this project and hoping to add more improved features in future. Any suggestion will be appriciated. Please do a pull request or open an issue with any suggestions you want to share.

For contribution information, please check the contributiors documentation.

License

https://www.apache.org/licenses/LICENSE-2.0