Gathering detailed insights and metrics for @beforeyoubid/serverless-step-functions-offline
Gathering detailed insights and metrics for @beforeyoubid/serverless-step-functions-offline
Gathering detailed insights and metrics for @beforeyoubid/serverless-step-functions-offline
Gathering detailed insights and metrics for @beforeyoubid/serverless-step-functions-offline
Emulate step functions locally when developing your Serverless project
npm install @beforeyoubid/serverless-step-functions-offline
Typescript
Module System
Node Version
NPM Version
TypeScript (99.44%)
JavaScript (0.56%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
230 Commits
2 Forks
1 Watchers
10 Branches
1 Contributors
Updated on Aug 07, 2022
Latest Version
3.0.3
Package Id
@beforeyoubid/serverless-step-functions-offline@3.0.3
Unpacked Size
136.37 kB
Size
41.39 kB
File Count
14
NPM Version
6.14.13
Node Version
14.17.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
22
Using NPM:
1npm install @beforeyoubid/serverless-step-functions-offline --save-dev
or Yarn:
1yarn add @beforeyoubid/serverless-step-functions-offline --dev
Add the plugin to your serverless.yml
:
1# serverless.yml 2 3plugins: 4 - '@beforeyoubid/serverless-step-functions-offline'
To verify that the plugin works, run this in your command line:
1sls step-functions-offline
It should rise an error like that:
Serverless plugin "serverless-step-functions-offline" initialization errored: Please add ENV_VARIABLES to section "custom"
This plugin works only with serverless-step-functions.
You must have this plugin installed and correctly specified statemachine definition using Amazon States Language.
Example of statemachine definition you can see here.
After all steps are done, need to add to section custom in serverless.yml the key stepFunctionsOffline with properties stateName: name of lambda function.
For example:
1service: ServerlessStepPlugin 2frameworkVersion: ">=1.13.0 <2.0.0" 3plugins: 4 - '@beforeyoubid/serverless-step-functions-offline' 5 6# ... 7 8custom: 9 stepFunctionsOffline: 10 FirstLambda: firstLambda #(v2.0) 11 # ... 12 # ... 13 SecondLambda: secondLambda #(v2.0) 14 15functions: 16 firstLambda: 17 handler: firstLambda/index.handler 18 name: TheFirstLambda 19 secondLambda: 20 handler: secondLambda/index.handler 21 name: TheSecondLambda 22stepFunctions: 23 stateMachines: 24 foo: 25 definition: 26 Comment: "An example of the Amazon States Language using wait states" 27 StartAt: FirstLambda 28 States: 29 FirstLambda: 30 Type: Task 31 Resource: arn:aws:lambda:eu-west-1:123456789:function:TheFirstLambda 32 Next: SecondLambda 33 SecondLambda: 34 Type: Task 35 Resource: arn:aws:lambda:eu-west-1:123456789:function:TheSecondLambda 36 End: true
Where:
StepOne
is the name of step in state machinefirstLambda
is the name of function in section functions1sls step-functions-offline --stateMachine={{name}} --event={{path to event file}}
name
: name of state machine in section state functions. In example above it's foo
.event
: input values for execution in JSON format (optional)If you want to know where you are (in offline mode or not) you can use env variable STEP_IS_OFFLINE
.
By default process.env.STEP_IS_OFFLINE = true
.
States | Support |
---|---|
Task | Supports Retry but at this moment does not support fields Catch, TimeoutSeconds, HeartbeatSeconds |
Choice | All comparison operators except: And, Not, Or |
Wait | All following fields: Seconds, SecondsPath, Timestamp, TimestampPath |
Parallel | Only Branches |
Map | Supports Iterator and the following fields: ItemsPath, ResultsPath, Parameters |
Pass | Result, ResultPath |
Fail | Cause, Error |
Succeed |
The plugin integrates very well with serverless-webpack.
Add the plugins serverless-webpack
to your serverless.yml
file and make sure that serverless-webpack
precedes serverless-step-functions-offline
as the order is important:
1 plugins: 2 ... 3 - serverless-webpack 4 ... 5 - '@beforeyoubid/serverless-step-functions-offline' 6 ...
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
SAST tool detected: CodeQL
Details
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
31 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More