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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@karanh15/fire-doc

v1.0.1

Published

Firebase schema documenter

Readme

FIRE DOC

Fire-doc is a simple script written in Typescript that runs over your entire cloud firestore database and gives out the a csv file as an output containing a documentation of all the firestore documents in all the collections in your database.

Getting Started

Prerequisites

node.js v14+, npm

Installation

npm install @karanh15/fire-doc

Available Options

Options:
      --help         Show help                                         
      --version      Show version number                               
  -f, --file         firebase config file path(required)
  -c, --collections  List of collections(Unavailable for now)        
  -o, --output       Output format(Unavailable for now)

Examples

fire-doc -f /home/uname/Desktop/src/testProj-firebase-adminsdk-ry873-98g90byb01.json 

Description

This tool is written to help with a problem that arises when using cloud firestore. As you might know when you use firestore, there is no schema at all!! since it is a nosql database. But other nosql databases (e.g mongodb) does give you option to design your schema and then use it while doing crud operations in your database. Since schemas are not required and is not mandatory when it comes to firestore(IDK why?), it may happen that you have a bunch of collections and nested collections in your database with firestore documents containing objects with different fields having different datatypes. So as you can see it can get messy and there is no way of just documenting it. This tool tries to solve that issue. It will select a firestore document from each collection and give you the fields stored in it with it's datatype and path to the document so you can know where & what is stored in your db.

Do share any doubts,queries,feedbacks etc. I faced this issue while working on firestore where I had to sit and document everything and it was a painful process. So I automated it and thought it may help others who might face the same issue.

Create a firebase project and Go to Project Settings > Service Accounts > Create Service Account and download serviceAccountKey.json. This file is required to give access to your database for documentation. The Output will be saved in local file system, in the directory from which script has run.

Upcoming features.

  • Documentation for selected collections.
  • Documenting till a certain nesting level.
  • Output in Json format.
  • Documentation for multiple documents inside each collection.
  • Documentation for nested objects.
  • Firebase emulator suite support.
  • Not a feature, but testing & profiling is pending too.

Authors

  • Karan Hotwani - https://www.linkedin.com/in/karan-hotwani-a9ba73167

Cheers!