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

@disasterlogic/disasterbot

v0.0.4

Published

A disaster remediation assistant

Downloads

12

Readme

DisasterBot

A disaster remediation assistant

Terminology

  • GIT Flow: https://datasift.github.io/gitflow/IntroducingGitFlow.html
  • Versioning: https://semver.org
  • API: Google Cloud Functions, code lives in functions
  • app: StencilJS app, code lives in src

Getting Started

When you first pull down the repo run the following to get the dependencies installed and open the app in the browser with live reloading.

npm install
npm start

If you wish to work on the API then run the following command:

cd functions
npm install
npm run serve

Working

When you want to work on the front-end run the following command to have it open a livereloading browser instance.

npm start

When you want to work on the back-end run the following command to have it emulate cloud functions on your local machine. (NOTE: Triggers that have to do with Auth, Firestore, and other watchers will only run on a server. HTTP(S) functions will run locally)

npm run api

Build Commands

npm run android

Runs a build with the dev environment with our custom cordova flag on the stencil compiler and then runs the app via Cordova

Read More about Cordova...


npm run api

Runs npm run serve command in functions directory to start the firebase back-end server locally.

Read More about Firebase Functions Emulator...


npm run api:test

Runs Jest test suite on the API Read More about Jest...


npm run api:test:watch

Runs Jest test suite on the API with livereloading / watcher Read More about Jest...


npm run build

Runs a stencil build with no environment

Read More about StencilJS...


npm run build:app

Runs a build with the dev environment with our custom cordova flag on the stencil compiler and then builds an android App via Cordova

Read More about Cordova...


npm run build:prerender

Runs a stencil build with no environment and the prerender flag

Read More about StencilJS Prerendering...


npm run build:stats

Runs a stencil build with no environment and the stats flag

Read More about StencilJS...


npm run copy

Copy files using enjin.copy key in package.json


npm run deploy:api

Lints the API files and auto-fixes what it can, then it runs the test suites, and finally deploys to firebase

Read More about Firebase Deploy...


npm run deploy:api:live

Lints the API files and auto-fixes what it can, then it runs the test suites, and finally deploys to live firebase

Read More about Firebase Deploy...


npm run deploy:app

Lints the app files and auto-fixes what it can, then it runs a build for the dev environment, and finally deploys to firebase

Read More about Firebase Deploy...


npm run deploy:app:live

Lints the app files and auto-fixes what it can, then it runs a build for the dev environment, and finally deploys to live firebase

Read More about Firebase Deploy...


npm run deploy:docs

Builds docs for API with APIDoc and app with TypeDoc and then deploys to firebase


npm run dev

Runs local build and serves it in browser with livesyncing via BrowserSync

Read More about BrowserSync...


npm run dev:android

Runs local build and serves it in mobile device with livereloading


npm run docs

Builds docs for API with APIDoc and app with TypeDoc


npm run docs:api

Builds docs for API with APIDoc Read More about APIDoc...


npm run docs:app

Builds docs for app with TypeDoc Read More about TypeDoc...


npm run env

Copy over proper front-end environment config into src/global/environment.ts


npm run git:prepush

Commands that Husky runs before pushing to GIT remote. Currently runs linting and a build. (NOTE: Should consider running tests in here as well) Read More about Husky...


npm run lint

Runs linting on both the API and the app using TSLint Read More about TSLint...


npm run lint:fix

Runs linting on both the API and the app using TSLint and auto-fixes anything that it can Read More about TSLint...


npm run lint:api

Runs linting on the API using TSLint Read More about TSLint...


npm run lint:api:fix

Runs linting on the API using TSLint and auto-fixes anything that it can Read More about TSLint...


npm run lint:app

Runs linting on the app using TSLint Read More about TSLint...


npm run lint:app:fix

Runs linting on the app using TSLint and auto-fixes anything that it can Read More about TSLint...


npm run serve

Alias for npm run sync


npm run start

Alias for npm run dev


npm run sync

Runs the livereloading server via BrowserSync without running a build or watching for changes. Read More about BrowserSync...


npm run test

Runs Jest test suite on the app Read More about Jest...


npm run test:watch

Runs Jest test suite on the app with livereloading / watcher Read More about Jest...


npm run test:api

Alias for npm run api:test


npm run test:api:watch

Alias for npm run api:test:watch