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

@hyperflow/hyperflow

v1.5.7

Published

Downloads

45

Readme

HyperFlow: a scientific workflow management system

HyperFLow

Description

HyperFlow is a Workflow Management System (WMS) dedicated for scientific workflows.

Browse the wiki pages to learn more about the HyperFlow workflow model.

Getting started

Installation

  • Install Node.js (http://nodejs.org)
  • Install Redis (http://redis.io)
  • Install HyperFlow: npm install https://github.com/hyperflow-wms/hyperflow/archive/{version}.tar.gz (where {version} is for example v1.3.38)
  • For latest features, install from the master branch: npm install https://github.com/hyperflow-wms/hyperflow/archive/master.tar.gz
  • Add <install_root>/node_modules/.bin to your path

Running locally

  • Start the redis server: redis-server
  • Run example workflows using command hflow run <wf_directory>, for example:hflow run ./examples/Sqrsum

Running locally using Docker images

  • Use the latest Docker image for the HyperFlow engine, published in Docker Hub as hyperflowwms/hyperflow
  • You can build the image yourself: make container
  • Start redis container: docker run -d --name redis redis --bind 127.0.0.1
  • Run workflow via HyperFlow container, for example:
docker run -a stdout -a stderr --rm --network container:redis \
       -e HF_VAR_WORKER_CONTAINER="hyperflowwms/soykb-workflow-worker" \ 
       -e HF_VAR_WORK_DIR="$PWD/input" \ 
       -e HF_VAR_HFLOW_IN_CONTAINER="true" \
       -e HF_VAR_function="redisCommand" \
       -e REDIS_URL="redis://127.0.0.1:6379" \
       --name hyperflow \
       -v /var/run/docker.sock:/var/run/docker.sock \
       -v $PWD:/wfdir \
       --entrypoint "/bin/sh" hyperflowwms/hyperflow -c "apk add docker && hflow run /wfdir"

Where

  • hyperflowwms/soykb-workflow-worker is the name of the workflow worker container (Soykb in this case)
  • current directory contains workflow.json
  • subdirectory inputs contains workflow input data

Outputs:

  • Directory inputs will contain files generated by the workflow run
  • Directory inputs/logs-hf will contain logs of all workflow jobs

Running in a Kubernetes cluster

See HyperFlow Kubernetes deployment project for more information.

Running in a distributed infrastructure using the RabbitMQ executor

  • Start the RabbitMQ container: docker run -d --name rabbitmq rabbitmq:3
  • Add option -e AMQP_URL=amqp://rabbitmq
  • More information in the hyperflow-amqp-executor project (warning: currently not maintained and not tested with latest HyperFlow versions)

Local configuration files

You can provide workflow configuration through local configuration files:

  • workflow.config.json -- main configuration file
  • workflow.config.{name}.json -- any number of secondary configuration files

The content from all configuration files will be merged and passed to workflow functions via context.appConfig. For example for files:

workflow.config.json:
{
  "main": "mainValue"
}

workflow.config.foo.json:
{
   "secondary": "secondaryValue"
}

The following will be passed in context.appConfig:

{
  "main": "mainValue",
  "foo": {
     "secondary": "secondaryValue"
  }
}

HyperFlow server

The HyperFlow engine can be started in a server mode using command: hflow start-server

If succesfully started, the server prints its URL:

HyperFlow server started at http://localhost:38775

Workflows can be run through the HyperFlow server as follows:

hflow run --submit=<hyperflow_server_url> <workflow_dir>

Currently <workflow_dir> must be a local directory accessbile by the server. This allows running multiple workflows (concurrently) using the same instance of the HyperFlow engine.