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

codeflow

v1.0.2

Published

Programming platform for the modern cloud

Downloads

1,692

Readme

Codeflow

Codeflow is a visual programming platform built on top of Node.js™ that makes it easy for developers to build high performance, scalable back ends. Codeflow programs are inherently asynchronous and look like a graph, so it's easy to write complex, asynchronous code without any callback hell.

View full documentation on codeflow.co/docs.

Setup

Codeflow programs are designed and tested using Codeflow designer. To download and setup the designer, please visit the Codeflow home.

Codeflow engine is the runtime component of Codeflow. Even though the designer comes with a latest version of the engine embedded to test and debug Codeflow programs, the engine can be also be installed directly and invoked from a command line, which is the typical way for running Codeflow applications in production.

Installing the engine

$ sudo npm install -g codeflow

Running engine

After installing the engine, Codeflow commands can be executed from a command line terminal as below:

codeflow [command] <options> <command params>

Running flows

The run command is used to run a flow or entire project:

codeflow run <options> [path]

Where path can be a path to an individual flow, or the root folder of a Codeflow project. When the folder is passed, the project is started as whole, where all the trigger files inside the project are started by the engine automatically during startup. For more documentation visit the deployment guide.

Examples:

To run a single flow:

codeflow run hello.flw

Run a flow with an input JSON:

codeflow run -i '{"id": 1, "name": "Jack Sparrow"}' update.flw

Run a flow with an input JSON and print the output

codeflow run -i '{"age": 30}' calculate.flw  -o

Start as project from the current directory

codeflow run .

Start as project from a specific path

codeflow run -w /path-to-project .

Installing packages

The install command is used to install a package

codeflow install <namespace/name@version>,<namespace/name@version>...

Example:

To install all the dependent packages, simply run install without any parameters at the project's root directory:

cd <project directory>
codeflow install

To install a specific package, run:

codeflow install codeflow/handlebars 

To install a specific version of the package, append @<version>:

codeflow install codeflow/[email protected]

Uninstalling packages

The uninstall command can be used to remove an unused package from the current project.

codeflow uninstall <namespace/name>,<namespace/name>...

For more details, visit http://codeflow.co/

Releasing

cd <engine directory>
grunt
cd build && npm publish

Building and pushing to Docker

Updating Dockerfile

Open Dockerfile and update engine version to latest in below line:

RUN npm i codeflow@<latest version> -g

Building docker image

cd <engine directory>
rm -rf build
docker build -t codeflowlang/codeflow --no-cache .

Tag docker image with latest version

docker tag codeflowlang/codeflow:latest codeflowlang/codeflow:<version here>

Push latest image to Docker hub

docker push codeflowlang/codeflow
docker push codeflowlang/codeflow:<version here>