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

fs-indexer

v0.0.7

Published

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io) [![Version](https://img.shields.io/npm/v/fs-indexer.svg)](https://npmjs.org/package/fs-indexer) [![Downloads/week](https://img.shields.io/npm/dw/fs-indexer.svg)](https://

Readme

fs-indexer

oclif Version Downloads/week License

Installation

For the hashing function, you need to install b3sum and xxh128sum. In order to extract exif information from images and videos, you need to install exiftool.

On a Mac, this can be achieved with brew install b3sum xxhash exiftool.

Usage

$ npm install -g fs-indexer
$ fs-indexer COMMAND
running command...
$ fs-indexer (--version)
fs-indexer/0.0.7 darwin-x64 node-v17.3.0
$ fs-indexer --help [COMMAND]
USAGE
  $ fs-indexer COMMAND
...

Commands

fs-indexer crawl PATH

index the folder provided

USAGE
  $ fs-indexer crawl [PATH] [-d <value>] [-a BLAKE3|XXHASH] [--exif] [-l <value>] [-m <value>] [--debug]

FLAGS
  -a, --hashingAlgorithms=<option>...  hashing algorithms to use
                                       <options: BLAKE3|XXHASH>
  -d, --database=<value>               [default: fs-index.db] database file
  -l, --limit=<value>                  stop after indexing n files
  -m, --minutes=<value>                stop after n minutes
  --debug                              enable debug logging
  --exif                               extract exif data

DESCRIPTION
  index the folder provided

See code: dist/commands/crawl.ts

fs-indexer help [COMMAND]

Display help for fs-indexer.

USAGE
  $ fs-indexer help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for fs-indexer.

See code: @oclif/plugin-help

fs-indexer info

prints information about the database

USAGE
  $ fs-indexer info [-d <value>] [--duplicates] [--debug]

FLAGS
  -d, --database=<value>  [default: fs-index.db] database file
  --debug                 enable debug logging
  --duplicates

DESCRIPTION
  prints information about the database

See code: dist/commands/info.ts

fs-indexer lookup PATH

searches for files within the database

USAGE
  $ fs-indexer lookup [PATH] [-d <value>] [--debug] [--remove] [--exif]

FLAGS
  -d, --database=<value>  [default: fs-index.db] database file
  --debug                 enable debug logging
  --exif                  look for files with similar exif date
  --remove                remove files if similar found in the index. Be careful with this flag. Only hashes are
                          compared, not the files content.

DESCRIPTION
  searches for files within the database

See code: dist/commands/lookup.ts

fs-indexer verify PATH

verifies that the content of the database is in sync with the file system

USAGE
  $ fs-indexer verify [PATH] [-d <value>] [-a BLAKE3|XXHASH] [-l <value>] [-m <value>] [-p] [--debug]

FLAGS
  -a, --hashingAlgorithms=<option>...  hashing algorithms to use
                                       <options: BLAKE3|XXHASH>
  -d, --database=<value>               [default: fs-index.db] database file
  -l, --limit=<value>                  stop after indexing n files
  -m, --minutes=<value>                stop after n minutes
  -p, --purge                          deletes files that do not exist anymore from the database
  --debug                              enable debug logging

DESCRIPTION
  verifies that the content of the database is in sync with the file system

See code: dist/commands/verify.ts

Development

Generating migrations

After making changes to entities, you can generate a migration to capture the changes with:

./scripts/generate-migration.sh Name

Do not forget to add it to the list of migrations in src/database/AppDataSource.ts