[AWS Lambda] Optimizing node_modules in zip files

This page summarizes the projects mentioned and recommended in the original post on /r/aws

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • esbuild

    An extremely fast bundler for the web

  • For nodejs/javascript functions you really should be using esbuild https://github.com/evanw/esbuild

  • serverless-esbuild

    💨 A Serverless framework plugin to bundle JavaScript and TypeScript with extremely fast esbuild

  • Its faster and easier to setup that webpack and drastically reduces the size of the archive. For Serverless framework users there is https://github.com/floydspace/serverless-esbuild and if you use SAM CLI, you already get this for free since they now use esbuild in the build process

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • lambda-build

    Bundle, archive and upload your lambda functions

  • I made a cli tool which I use to bundle all the used dependencies to a single file (it uses esbuild) https://github.com/alexkrkn/lambda-build

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts