0.0.6 • Published 3 years ago

@tshepomgaga/aws-sfn-graph v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago