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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@d4lton/ignis

v1.1.10

Published

Basic Firestore shell

Downloads

43

Readme

IGNIS

Ignis is a simple Firebase/Firestore command-line tool that allows you to list, view, and copy collections and documents both within a project and between projects.

IMPORTANT: This tool will modify your Firestore database, please be careful and know what you are doing. Always make backups and double-check commands! This tool is intended for power users only.

INSTALLATION

npm install -g @d4lton/ignis

USAGE

Start ignis, optionally selecting the default project:

ignis [--project <project-id>]

COMMANDS

Once running, try help.

EXAMPLES

default > login my_firebase_config.json
<set the Firebase login keys for the current project>

default* > ls
<list of top-level collections in your default project>

default* > cat config/main
<JSON blob representing the contents of this document sent to stdout>

default* > cat config/main > some_file.json --pretty
(dumps contents of "config/main" to a local file named "some_file.json")

default* > $vi some_file.json
(opens vi to allow editing of some_file.json, note that "$" will execute any shell command)

default* > cat some_file.json > config/main
(dumps contents of local file named "some_file.json" to "config/main")

default* > cp config/main config/backup
(copies contents of "config/main" to "config/backup")

default* > use production
(switches project to "production")

production > login production_firebase_config.json

production* > cp default:config/main config/main
(copies "config/main" from the "default" project to "config/main" in the "production" project)

PROJECTS

When you first start ignis, you will be in the "default" project (unless you specified the --project command-line option).

The prompt will show you the current project, and you can switch to a new project with the project <project-id> command. Note that project-id is an arbitrary ID you create. Spaces aren't allowed in the ID, and it probably makes sense to have it match the project ID for your Firebase project.

Before you can do any operations on a project, you will have to log in with the login <firebase-config-json> file. This config will be cached under your ~/.config directory, so you don't have to log in every time you use ignis.

Any place you use a <path>, you can choose to specify a project ID. For example:

production > cp production:config/main staging:config/main

This will copy the config/main document in your production project to config/main in your staging project.

CONFIGURATION SECURITY

The configuration file is stored in ".config/com.basken.ignis/config.json" in your home directory, and is plaintext by default. If you want this file to be encrypted:

  • exit from ignis
  • delete .config/com.basken.ignis/config.json
  • set the IGNIS_ENCRYPTION_KEY environment variable to a 32 character (256 bit) AES-256 key
  • run ignis and set your projects up with use and login as before
  • the .config/com.basken.ignis/config.json config file should be encrypted

WARNING ABOUT CORE-JS

When ignis is installed, you will see a warning about core-js being deprecated. This is a package included by the firebase-admin module, and from what I understand, is harmless. The core-js package, while included in firebase-admin, is not actually used. Hopefully this unused package will be removed in the near future so the warning will go away.