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

fire-station

v0.4.3

Published

easy environments for firebase & firestore

Downloads

3

Readme

FireStation

Preview

The philosophy behind the CLI is to make it as user-friendly as possible. You won't need to run any commands or pass any arguments to this tool. You just have to run it :)

The tool aims to make it extremely painless to manage environments for your firebase projects from everything to creating cloud functions to deploying your site.

The only thing you will need is a firebase project per environment.

Requirements

The tool requires that firebase-tools installed globally
npm i -g firebase-tools

Installation

npm i fire-station // locally
or
npm i fire-station -g //globally

Usage

The following command will bring up the CLI which is designed to be user-friendly and helpful.

// if installed globally
fire-station 

// if installed locally (use the npx module)
fire-station

// or you could directly path to the cli
./node_modules/.bin/fire-station

Current features in the CLI

The Cli should abstract away the firebase cli in most use cases and provide some additional goodies.

  1. Initialize

    Use this command to initialize fire-station in your project.
    
    Allows you to choose multiple firebase projects you own or have editor permissions on and mark them as 
    "environments".
    Allows you to setup deployments for the following:
    
    1. firebase cloud functions
    2. hosting
    3. realtime database rules
    4. firestore database rules
    5. storage rules
    6. create boilerplate cloud function (Realtime Trigger, Firestore Trigger, HTTP, Auth, Pub Sub Scheduled Function)
    
    Creates a function in the "cloud-functions" directory in your project root and sets up typescript/javascript.
    Creates files to store secrets and environment vars (and passes them to each created function).
  2. Deploy

    Allows you to deploy any piece of your configuration across multiple environments.
  3. Copy Auth and Realtime database from one environment to another

    Copy an environment on top of another. You can choose to copy over:
    1. Auth
    2. Realtime Database
    3. Firestore
  4. Create a backup

     Lets you create named backups of your environment. You can backup the following:
     1. Auth
     2. Realtime Database
     3. Firestore
  5. Restore a backup

     Lets you restore one of the named backups you created to an environment. You can restore the following:
     1. Auth
     2. Realtime Database
     3. Firestore
  6. Delete secrets

     This option will delete the .fire-station-secrets folder.
    
     Fire-station asks you for service-accounts & auth hashing config and give you clickable links of how to get them.
     The secrets are stored in the .fire-station-secrets folder in the root of your project and are automatically
     marked in your .gitignore file.
    
     fire-station will only ask for secrets when necessary:
     1) hash_configs when copying auth
     2) service-accounts when backing up or restoring firestore

*** Known Bugs *** If you have no functions, the deploy command will fail. If you deploy to multiple environments at once, the deploy command will fail.

These will be addressed sometime in the future.