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 🙏

© 2026 – Pkg Stats / Ryan Hefner

quarkflow-cli

v1.0.2

Published

Quarkflow is a CLI Workflow Manager and Task Runner

Downloads

37

Readme

Quarkflow Command Line Interface (CLI) Documentation

Version: 1.0.0

Introduction

The Quarkflow CLI is a developer-friendly workflow management tool designed to streamline various tasks and workflows. This documentation provides an overview of the CLI commands and their usage.

Installation

To install Quarkflow, follow these steps:

  1. Install Node.js: Ensure you have Node.js installed on your system.

  2. Install Quarkflow: Use npm to install Quarkflow globally:

    npm install -g quarkflow-cli
    
  3. Verify Installation: To verify that Quarkflow is installed correctly, run the following command:

    quarkflow --version

Commands

quarkflow init [options] <dir>

  • Description: Initialize a Quarkflow project in the specified directory.
  • Options:
    • -f, --force: Forcefully create an empty project.

Screenshot: quarkflow init

quarkflow

  • Description: Run Quarkflow interactive mode, invoking the interactive menu.

quarkflow --script <script-name>

  • Description: Run a Quarkflow script non-interactively.

quarkflow --workflow <workflow-name>

  • Description: Run a Quarkflow workflow non-interactively.

quarkflow version

  • Description: Display the version of Quarkflow.

Interactive Menu

Quarkflow provides an interactive menu for managing workflows, scripts, Git-related tasks, and more. To access the menu, simply run the quarkflow command without additional arguments.

Screenshot: Quarkflow Interactive Menu

Menu Structure

The interactive menu allows you to perform various tasks:

  1. Run Workflows: Execute your own workflows.
  2. Run Scripts: Run your custom scripts.
  3. Git Actions: Perform Git operations.
  4. Quit: Exit Quarkflow.

Git Actions

From the interactive menu, you can access the Git module and run Git commands interactively.

Supported Git Commands

  • Branch: View or manipulate branches.
  • Diff: View changes between commits, branches, etc.
  • Log: View commit logs.
  • Checkout: Switch branches or restore working tree files.
  • Clean: Remove untracked files from the working tree.

To use the Git module:

  1. Select Git Actions from the main menu.
  2. Choose a Git command from the menu.
  3. Follow the prompts to execute the selected Git command.

Configuration File

The Quarkflow configuration file (.quarkflow/config.json) serves as the heart of your project's settings, defining workflows, scripts, environment variables, and more. This section provides an overview of the key components of the configuration file and how to use them effectively.

Example Configuration

Here's an example of a Quarkflow configuration file:

{
  "name": "quarkflow_project",
  "version": "0.0.1",
  "sleep": "1000",
  "workflows": {
    "dev": {
      "desc": "Development Workflow",
      "commands": [],
      "pre-run": [],
      "post-run": [],
      "env": {},
      "webhook": ""
    }
  },
  "scripts": {
    "push": "git push -u {origin} {branch}"
  },
  "env": {
    "branch": "master",
    "origin": "[email protected]"
  }
}

Configuration Components

The Quarkflow configuration file consists of the following key components:

  • "name": The name of your Quarkflow project.
  • "version": The version of your project.
  • "sleep": The sleep duration (in milliseconds) between commands.
Workflows

Workflows define sequences of commands and actions to be executed within your project. They include the following properties:

  • desc: A description of the workflow.
  • commands: An array of commands to be executed as part of the workflow.
  • pre-run: An array of commands to run before the main commands of the workflow.
  • post-run: An array of commands to run after the main commands of the workflow.
  • env: Environment variables specific to this workflow.
  • webhook: A webhook URL that will be triggered after the workflow finishes running.
  • concurrent: If Set to true the main commands of the workflow will be run concurrently

Note:

  • Using the concurrent property on a workflow that has alot of commands or multiple commands that require large amounts of processing power may cause the environment to crash.
  • Keep in mind that when concurrent is set to true that sleep will become ineffective.
Scripts

Scripts define custom commands that you can execute within your project. They can include placeholders for dynamic values. For example:

"scripts": {
  "push": "git push -u {origin} {branch}"
}

In this script, {origin} and {branch} are placeholders that will be replaced with values from the global environment variables.

Scripts Can Also be Run as a part of any Workflow as a Pre-Run, Post-Run or a Main Command. For Example:

"workflows": {
  "dev":{
    "pre-run": [
      "lint",
      "set-port",
      "cp {sample} {env}"
    ],
    "commands": [
      "run",
      "echo Server Ran on Port {port}"
    ],
    "post-run":[
      "push"
    ], 
    "env":{
      "sample":".env.sample",
      "env":".env"
    },
  }
},
"scripts": {
  "lint": "eslint .",
  "run": "nodemon app.js",
  "set-port":"export PORT={port}",
  "push": "git push origin master"
},
"env": {
  "port": "3000"
}
Global Environment Variables

Global environment variables provide a convenient way to define variables that can be accessed across all workflows, scripts, and project settings. These variables help streamline your project's configuration and ensure consistency.

For example:

"env": {
  "branch": "master",
  "origin": "[email protected]"
}

Usage

The Quarkflow configuration file allows you to customize and orchestrate various aspects of your project. You can define workflows, scripts, and environment variables to automate tasks, streamline processes, and maintain consistency.

Conclusion

The Quarkflow CLI is a versatile tool for managing workflows, scripts, Git-related tasks, and more. Refer to the provided commands and examples to get started with Quarkflow.