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

@mhlabs/sfn-cli

v1.0.3

Published

Command line interface for inspecting Amazon StepFunctions executions and building state machine definitions

Downloads

44

Readme

sfn-cli

Command line interface for inspecting Amazon StepFunctions executions and building state machine definitions.

Installation

npm i -g @mhlabs/sfn-cli

Usage

Usage: sfn [options] [command]

Options:
  -v, --vers         output the current version
  -h, --help         display help for command

Commands:
  build|b [options]  Creates, explores and extends a StepFunctions ASL definition
  help [command]     display help for command

Create / modify a state machine definition

Command: $ sfn build --definition-file my-definition.yaml

If the my-definition.yaml file doesn't exist, you will be prompted to create it. The tool will then create a skeleton of an ASL definition and guide you through creating the initial state.

demo

Browse and inspect state machines

Command: $ sfn inspect

Options:
  -n, --name-prefix [prefix]          Name prefix of state machine (optional) (default: "")
  -s, --status-filter [statusFilter]  Execution status filter. One of RUNNING | SUCCEEDED | FAILED | TIMED_OUT | ABORTED (optional)
  -p, --profile [profile]             AWS profile to use (default: "default")
  --region [region]                   The AWS region to use. Falls back on AWS_REGION environment variable if not specified

demo

Real time sync your local ASL with the cloud

Prerequisites is that the state machine is already deployed and that the local ASL definition matches the one that's deployed. This command supports SAM's DefinitionSubstitutions and a key/value map between substitution keys and actual values will be compiled at start-up.

Command: $ sfn sync

Usage: sfn sync|s [options]

Syncs a StepFunctions ASL file with the cloud

Options:
  -s, --stack-name [stackName]        The name of the deployed stack (required)
  -t, --template-file [templateFile]  Path to SAM template file (default: "template.yaml")
  -p, --profile [profile]             AWS profile to use (default: "default")
  --region [region]                   The AWS region to use. Falls back on AWS_REGION environment variable if not specified
  -h, --help                          display help for command

demo

Known issues

  • Boolean logic in Choice states is not yet implemented
  • By design, the tool will not guide you through adding ARNs and other parameters to SDK integrations. This is best done in a code editor.