@tshepomgaga/aws-sfn-graph

0.0.6 • Public • Published

AWS Step Functions Graph

React library to visualise the AWS Step Functions ASL JSON.

Install

npm install --save aws-sfn-graph

Usage

import React from 'react'

import AWSSfnGraph from '@tshepomgaga/aws-sfn-graph';
import '@tshepomgaga/aws-sfn-graph/index.css';

const aslData = {
  Comment:
    'A Hello World example of the Amazon States Language using Pass states',
  StartAt: 'Hello',
  States: {
    Hello: {
      Type: 'Pass',
      Result: 'Hello',
      Next: 'World'
    },
    World: {
      Type: 'Pass',
      Result: 'World',
      End: true
    }
  }
}

const App = () => {
  return (
    <AWSSfnGraph
      data={aslData}
      width={500}
      height={500}
      onError={console.log}
    />
  )
}

export default App

Results

alt text

License

MIT © tptshepo

/@tshepomgaga/aws-sfn-graph/

    Package Sidebar

    Install

    npm i @tshepomgaga/aws-sfn-graph

    Weekly Downloads

    320

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    1.23 MB

    Total Files

    6

    Last publish

    Collaborators

    • tshepomgaga