[AWS Lambda] Optimizing node_modules in zip files

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

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • JetBrains - Developer Ecosystem Survey 2022
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • esbuild

    An extremely fast JavaScript and CSS bundler and minifier

    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

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • 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