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

blazeman

v0.1.6

Published

blazeman - Cloud Firestore CLI <img src=".github/icon.svg" alt="logo" title="logo" width="32"> ========================================

Readme

blazeman - Cloud Firestore CLI

blazeman is a command line interface for Cloud Firestore written in Rescript. blazeman that makes query and update easy.

Installation

To install run

$ npm install -g blazeman

How to Use

Prerequisites

Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the file path of the json file containing the service account key.

Commands overview

bm, show current project name.

$ bm
Active Project: XXXXXXXX

bm list, which lists collections.

$ bm list
[
  "collection1",
  "collection2",
]

bm docs, retrieve docs in the collection.

$ bm docs "/collection1/[enabled == true]/{id, name, description, enabled}"
[
  {
      id: "test",
      name: "name",
      description: "description",
      enabled: true
  }
]

bm set, to add or set an document.

$ bm set "/collection1/docId1" --json='{"field1": 1, "field2": "2"}' --dry-run=false
{
  "field1": 1
  "field2": "2"
}
$ echo '{"field1": 1, "field2": "2"}' | bm set "/collection1/docId1" --dry-run=false
{
  "field1": 1
  "field2": "2"
}

bm update, to update an document.

$ bm update "/collection1/docId1" --json='{"field1": 10}' --dry-run=false
{
  "field1": 10
  "field2": "2"
}
$ echo '{"field1": 10}' | bm update "/collection1/docId1" --dry-run=false
{
  "field1": 10
  "field2": "2"
}

To find more features, bm help or bm [Subcommands] help will show you complete list of available commands.

$ bm help
bm is a command line tool to Firebase firestore.
Usage:
    bm  Show current project id
    bm <Subcommands> [Options]

Subcommands:
    get    Retrieve an doc by specifying collection path.
    docs   Retrieve docs in a collection.
    set    Create a new doc, or replace an existing doc.
    update Update an existing doc.
    delete Delete an existing collection or doc.
    help   Prints this message
$ bm docs help
Get documents from Firestore collection.

Usage:
    bm docs "[Collectiotn path]" [Options]
    bm docs "[Collectiotn path]/[Queries]" [Options]
    bm docs "[Collectiotn path]/[Queries]/[Fields|Order by]" [Options]
    bm docs code "[Collectiotn path]/[Queries]/[Fields|Order by]" [Options]

Collectiotn path:
    /collection
    /collection/docid/subcollection
Queries:
    /[field == 'string value']
    /[field == int value]/
    /[field == true]/
    /[field == false]/
    /[field != value]/
    /[field >= value]/
    /[field > value]/
    /[field < value]/
    /[field <= value]/
    /[map.value == value]/
    /[array contains value]/
Fields:
    /{field1, field2}
Order by:
    /{^field1, _field2}
Options:
    -l, --limit=<limit> defaults to 30
    -s, --offset=<offset> defaults to 0
    -a, --start-at=<startAt>
    -f, --format=<json|table|csv>

License

MIT