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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@raydeck/serverless-lambda-builder

v2.5.0

Published

Build lambda definitiosn for serverless

Readme

Usage

npx @raydeck/serverless-lambda-builder [options] [command]

Options

  • -w --workingpath <path> Working directory for project (default: .

Commands

serverless

Update serverless.yml with functions

Usage

npx @raydeck/serverless-lambda-builder serverless [options]

Options

  • -y --yamlfile Path to serverless.yml file
  • -h --handler-file File containing getLambdas export
  • -l --lambdas-export Name of the lambdas export (result of getLambdas)

@raydeck/serverless-lambda-builder - v2.5.0

@raydeck/serverless-lambda-builder - v2.5.0

Index

Interfaces

Type aliases

Variables

Functions

Type aliases

CognitoTriggerType

Ƭ CognitoTriggerType: "CreateAuthChallenge" | "CustomMessage" | "DefineAuthChallenge" | "PostAuthentication" | "PostConfirmation" | "PreAuthentication" | "PreSignUp" | "TokenGeneration" | "UserMigration" | "VerifyAuthChallengeResponse"

Defined in src/index.ts:106

Variables

Let _defaults

_defaults: LambdaArgs

Defined in src/index.ts:34


Let _wrapper

_wrapper: function

Defined in src/index.ts:30

Type declaration:

▸ (...args: any[]): any

Parameters:

Name | Type | ------ | ------ | ...args | any[] |

Functions

buildServerlessFunctionsObj

buildServerlessFunctionsObj(exportsObj: object): object

Defined in src/index.ts:150

Parameters:

Name | Type | ------ | ------ | exportsObj | object |

Returns: object

  • [ key: string]: any

getLambdaExports

getLambdaExports(exports: object): [string, LambdaOutput][]

Defined in src/index.ts:132

Parameters:

Name | Type | ------ | ------ | exports | object |

Returns: [string, LambdaOutput][]


httpSuccess

httpSuccess(body: any): object

Defined in src/index.ts:314

Parameters:

Name | Type | ------ | ------ | body | any |

Returns: object

  • body: string

  • statusCode: number

  • headers: object

    • Access-Control-Allow-Credentials: boolean = true

    • Access-Control-Allow-Headers: string = "Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token"

    • Access-Control-Allow-Methods: string = "OPTIONS,POST, GET"

    • Access-Control-Allow-Origin: string = "*"

    • Content-Type: string = "application/json"

    • X-Requested-With: string = "*"


makeAPIGatewayLambda

makeAPIGatewayLambda(args: object & LambdaOptions): function & function & object

Defined in src/index.ts:54

Parameters:

Name | Type | ------ | ------ | args | object & LambdaOptions |

Returns: function & function & object


makeCognitoLambda

makeCognitoLambdaTEvent, TResult›(args: object): function & object

Defined in src/index.ts:117

Type parameters:

TEvent

TResult

Parameters:

args: object

Name | Type | ------ | ------ | func | Handler‹TEvent, TResult› | pool | string | triggerOrTriggers | CognitoTriggerType | CognitoTriggerType[] |

Returns: function & object


makeDDBLambda

makeDDBLambda(args: object & LambdaOptions): function & function & object

Defined in src/index.ts:75

Parameters:

Name | Type | ------ | ------ | args | object & LambdaOptions |

Returns: function & function & object


makeEventBridgeLambda

makeEventBridgeLambdaTDetail›(args: object): function & object

Defined in src/index.ts:97

Type parameters:

TDetail

Parameters:

args: object

Name | Type | ------ | ------ | detail | object | detailType | string | func | EventBridgeHandler‹string, TDetail, void› | source | string |

Returns: function & object


makeLambda

makeLambda(args: LambdaOptions): function & object

Defined in src/index.ts:38

Parameters:

Name | Type | ------ | ------ | args | LambdaOptions |

Returns: function & object


makeS3Lambda

makeS3Lambda(args: object & LambdaOptions): function & function & object

Defined in src/index.ts:42

Parameters:

Name | Type | ------ | ------ | args | object & LambdaOptions |

Returns: function & function & object


makeSQSLambda

makeSQSLambda(args: object & LambdaOptions): function & function & object

Defined in src/index.ts:88

Parameters:

Name | Type | ------ | ------ | args | object & LambdaOptions |

Returns: function & function & object


sendHttpResult

sendHttpResult(statusCode: number, body: string, headers?: undefined | object): object

Defined in src/index.ts:293

Parameters:

Name | Type | ------ | ------ | statusCode | number | body | string | headers? | undefined | object |

Returns: object

  • body: string

  • statusCode: number

  • headers: object

    • Access-Control-Allow-Credentials: boolean = true

    • Access-Control-Allow-Headers: string = "Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token"

    • Access-Control-Allow-Methods: string = "OPTIONS,POST, GET"

    • Access-Control-Allow-Origin: string = "*"

    • Content-Type: string = "application/json"

    • X-Requested-With: string = "*"


setDefaults

setDefaults(defaults: LambdaArgs): void

Defined in src/index.ts:35

Parameters:

Name | Type | ------ | ------ | defaults | LambdaArgs |

Returns: void


setWrapper

setWrapper(wrapper: typeof _wrapper): void

Defined in src/index.ts:31

Parameters:

Name | Type | ------ | ------ | wrapper | typeof _wrapper |

Returns: void

@raydeck/serverless-lambda-builder - v2.5.0LambdaArgs

Interface: LambdaArgs

Hierarchy

Index

Properties

Properties

Optional description

description? : undefined | string

Defined in src/index.ts:19


Optional layers

layers? : string[]

Defined in src/index.ts:21


Optional memorySize

memorySize? : undefined | number

Defined in src/index.ts:20


Optional name

name? : undefined | string

Defined in src/index.ts:18


Optional reservedConcurrency

reservedConcurrency? : undefined | number

Defined in src/index.ts:16


Optional role

role? : undefined | string

Defined in src/index.ts:14


Optional runtime

runtime? : "node10.x" | "node12.x"

Defined in src/index.ts:17


Optional timeout

timeout? : undefined | number

Defined in src/index.ts:13


Optional tracing

tracing? : undefined | false | true

Defined in src/index.ts:15


Optional warmup

warmup? : undefined | false | true

Defined in src/index.ts:12

@raydeck/serverless-lambda-builder - v2.5.0LambdaOptions

Interface: LambdaOptions

Hierarchy

Index

Properties

Properties

Optional description

description? : undefined | string

Inherited from LambdaArgs.description

Defined in src/index.ts:19


func

func: Handler‹any, any›

Defined in src/index.ts:24


Optional layers

layers? : string[]

Inherited from LambdaArgs.layers

Defined in src/index.ts:21


Optional memorySize

memorySize? : undefined | number

Inherited from LambdaArgs.memorySize

Defined in src/index.ts:20


Optional name

name? : undefined | string

Inherited from LambdaArgs.name

Defined in src/index.ts:18


Optional reservedConcurrency

reservedConcurrency? : undefined | number

Inherited from LambdaArgs.reservedConcurrency

Defined in src/index.ts:16


Optional role

role? : undefined | string

Inherited from LambdaArgs.role

Defined in src/index.ts:14


Optional runtime

runtime? : "node10.x" | "node12.x"

Inherited from LambdaArgs.runtime

Defined in src/index.ts:17


Optional timeout

timeout? : undefined | number

Inherited from LambdaArgs.timeout

Defined in src/index.ts:13


Optional tracing

tracing? : undefined | false | true

Inherited from LambdaArgs.tracing

Defined in src/index.ts:15


Optional warmup

warmup? : undefined | false | true

Inherited from LambdaArgs.warmup

Defined in src/index.ts:12

@raydeck/serverless-lambda-builder - v2.5.0LambdaOutput

Interface: LambdaOutput

Hierarchy

LambdaOptions

LambdaOutput

Callable

▸ (): Handler‹any, any›

Defined in src/index.ts:26

Returns: Handler‹any, any›

Index

Properties

Properties

Optional description

description? : undefined | string

Inherited from LambdaArgs.description

Defined in src/index.ts:19


func

func: Handler‹any, any›

Inherited from LambdaOptions.func

Defined in src/index.ts:24


lambdaType

lambdaType: string

Defined in src/index.ts:28


Optional layers

layers? : string[]

Inherited from LambdaArgs.layers

Defined in src/index.ts:21


Optional memorySize

memorySize? : undefined | number

Inherited from LambdaArgs.memorySize

Defined in src/index.ts:20


Optional name

name? : undefined | string

Inherited from LambdaArgs.name

Defined in src/index.ts:18


Optional reservedConcurrency

reservedConcurrency? : undefined | number

Inherited from LambdaArgs.reservedConcurrency

Defined in src/index.ts:16


Optional role

role? : undefined | string

Inherited from LambdaArgs.role

Defined in src/index.ts:14


Optional runtime

runtime? : "node10.x" | "node12.x"

Inherited from LambdaArgs.runtime

Defined in src/index.ts:17


Optional timeout

timeout? : undefined | number

Inherited from LambdaArgs.timeout

Defined in src/index.ts:13


Optional tracing

tracing? : undefined | false | true

Inherited from LambdaArgs.tracing

Defined in src/index.ts:15


Optional warmup

warmup? : undefined | false | true

Inherited from LambdaArgs.warmup

Defined in src/index.ts:12