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

dronahq-cli

v1.0.1

Published

DronaHQ-Cli to create MicroApp

Readme

What is it good for?

The library allows you to:

  • Create vanilla project of microapp.
  • Package the project in a format which can be uploaded on DronaHQ Admin Console.
  • Keep dronahq.js version upto date.
  • Test created microapp in DronaHQ simulator.
Toolset
  • npm 5 is required.
  • Node 8 LTS is required.
Installing

Switch to dev CLI:

$ dhq

Examples

Basic usage

Executing CLI

Create a new Project :

  1. Run the script with the command
$ dhq
  1. Select 'create a new Project.' ( It will download the dronahq package which has the vanilla version of the project ).
  2. Enter the path where the project needs to be created.
  3. Modify as required inside the project.

image

If you already have created project you dont need to follow this step

Package the Project :

  1. Run the script with the command
$ dhq
  1. Select Build a Zip of the Project.
  2. It will request for path, enter the path till folder which has index.html present inside.
  3. If all the files that are required are present then a zip file will be created by the name of the zippedProject.zip
  4. This file then can be uploaded directly into the website.

image

Check if dronahq.js is upto date (outdated as now this is done during packaging the project):

  1. Run the script with the command
$ dhq
  1. Select 'Check if DronaHQ.js is upto date'.
  2. The CLI tool will request for the path where dronahq.js is present (Enter the path till the javascript folder which has dronahq.js).
  3. The dronahq.js will be compared with the online dronahq.js and if it is a previous version it will ask if you want to update the js if answered with a Y then the dronahq.js will get updated or the same dronahq.js will be present inside the project.

image

Setting up user environment for DronaHQ simulator :

  1. Run the script with the command
$  dhq
  1. Select 'Setup user environment for DronaHQ simulator'.
  2. Fill the details as requested by the tool.
  3. Your environment will be ready.

Run DronaHQ simulator for your micro app:

  1. Run the script with the command
$ dhq
  1. Select 'Run DronaHQ simulator'.
  2. It will request for path, enter the path till folder which has index.html present inside.
  3. Happy debugging your App.

Note: Currently simulator is not supported on MAC.

If the simulator does not run execute the following command in command prompt

  npm install -g electron

Publish package to DronaHQ console:

  1. Run the script with the command
$ dhq
  1. Select 'Upload package to Dronahq console'.
  2. Provide the details as requested.
  3. Your app is successfully available on DronaHQ.

Publish package to DronaHQ Console - Via CLI (new)

You can directly upload and publish a package to an existing app you've already created, using command-line options to provide details you'd have to provide through the interactive interface otherwise.

SYNOPSIS

dhq -a=[APIKEY] -e=[ENVIRONMENT] -u=[UPDATETYPE] -d=[DESCRIPTION] -p=[PATH]
dhq -a=[APIKEY] -e=[ENVIRONMENT] -u=[UPDATETYPE] -d=[DESCRIPTION] -p=[PATH] -o=[OUTPUTFILE]
dhq -f=[INPUTFILE] -o=[OUTPUTFILE]


dhq --apikey=[APIKEY] --environment=[ENVIRONMENT] --updateType=[UPDATETYPE] --description=[DESCRIPTION] --path=[PATH]
dhq --apikey=[APIKEY] --environment=[ENVIRONMENT] --updateType=[UPDATETYPE] --description=[DESCRIPTION] --path=[PATH] --outfile=[OUTPUTFILE]
dhq --file=[INPUTFILE] --outfile=[OUTPUTFILE]

EXAMPLE

dhq -a=xxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -e=prod -u=patch -d=Description -p=path/to/file
dhq -a=xxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -e=prod -u=patch -d=Description -p=path/to/package.zip -o=path/to/output.csv
dhq -f=path/to/inputFile.zip -o=path/to/output.csv

dhq --apikey=xxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --environment=prod --updateType=patch -d=Description -p=path/to/file
dhq --apikey=xxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --environment=prod --updateType=patch --description==Description --path=path/to/package.zip --outfile=path/to/output.csv
dhq --file==path/to/inputFile.zip --outfile=path/to/output.csv

OPTIONS

-a, --apikey
  • -> [Required] The active license key for your created app.
-e, --environment
  • -> [Required] The app environment for your app's new version.

Options: dev, beta, prod

-u, --updateType
  • -> The update type of your new version as per semantic versioning syntax.

Options: major, minor, patch (default: patch)

-d, --description
  • -> [Required] The release notes for your app's new version.
-p, --path
  • -> [Required] The path for your package's zip file for your app's new version.
-o, --outfile
  • -> The path for an output file for publish statuses. The output will be provided in CSV format. If the file doesn't exist, one will be created with a CSV string in the first line to signify headers.
-f, --file
  • -> The path for a JSON file containing values for the above arguments - use the full names of the above arguments as keys and string values. Keys provided here do not need to be provided again as separate CLI arguments. Sample JSON input:-
  {
    "apikey": "<APIKEY>",
    "environment": "<ENVIRONMENT>",
    "updateType": "<UPDATETYPE>",
    "description": "<DESCRIPTION>",
    "path": "<PATH>",
    "outfile": "<OUTFILE>"
  }
Dependencies

adm-zip, chalk,clui, co, co-prompt, commander, compare-versions, electron, figlet, folder-zip-sync, github, inquirer, lodash, minimist, node-storage, preferences, q, rimraf, simple-git, superagent,sync-request, touch, unzip, validator, zip-folder.