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 🙏

© 2025 – Pkg Stats / Ryan Hefner

serverless-cdk-plugin

v0.1.0

Published

A Serverless plugin to add aws-cdk stacks to your serverless projects

Downloads

5

Readme

Serverless CDK Plugin

Currently, It's very hard to describe complex AWS Resources/Infrastructure in your serverless.yml. This plugin allows you to combine your serverless.yml with complex infrastructure stacks you define using the AWS Cloud Development Kit.

Installing

Add this package to your project's development dependencies:

$ yarn add --dev serverless-cdk-plugin
$ npm install --save-dev serverless-cdk-plugin

After installing, add this plugin to your serverless.yml:

plugins:
  - serverless-cdk-plugin

Usage

This plugin works by spawning the cdk synthesize command in the current working directory to synthesize your cdk application. The synthesized cloudformation stack is then merged into the serverless cloudformation stack before it is deployed.

CDK Application Definition

There are currently two restrictions on how you define your aws-cdk stack so that it can be used with this plugin:

  1. you must define the cdk app in the cdk.json file
  2. your cdk app must only create one stack.

Passing runtime context to your aws-cdk stack

You can pass any amount of runtime context to your aws-cdk stack by adding the following to your serverless.yml:

...
custom:
  CdkResources:
     context:
      stage: ${self:provider.stage}
      myContext: someContextValue

Examples

Check out the examples directory to see example usage patterns.

Current Known Limitations

  1. This plugin assumes that your cdk-app only defines one cloudformation stack

  2. This plugin will not build/bundle any artifacts with the serverless project to be deployed (for example, you cannot specify a lambda function in your cdk stack)

  3. This plugin will not attempt to resolve Resource Logical Id Naming conflicts