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

@kianmusser/n8n-nodes-dave-statemachine

v1.0.2

Published

A state machine node that stores state persistently, and uses diagrams generated with StateSmith

Downloads

5

Readme

@kianmusser/n8n-nodes-dave-statemachine

This is an n8n community node for implementing a durable state machine.

The State Machine node allows you to create a state machine that persists across n8n executions by storing states in a PostgreSQL database. It supports generating the state machine code from diagrams drawn using draw.io and stored in GitHub, utilizing a program called StateSmith for code generation.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials
Compatibility
Usage
Resources

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

  • Create and manage state machines
  • Persist state machine states in PostgreSQL
  • Generate state machine code from draw.io diagrams stored in GitHub

Credentials

This node requires PostgreSQL credentials to store and retrieve state machine states. Also, it requires a webhook it can call with the name of the state machine diagram, which should return a JSON object with the following property: code, that is the code that StateSmith generated.

Compatibility

This node has been tested on n8n version 1.45.1. Compatibility with older versions has not been verified.

Usage

To use this node, you need to:

  1. Draw your state machine diagram using draw.io and store it in GitHub.
  2. Setup the StateSmith server.
  3. Configure the node with the URL to fetch the state machine code, the diagram name, and the cache folder path.

Resources