webpack-node-externals
chrome-aws-lambda
webpack-node-externals | chrome-aws-lambda | |
---|---|---|
2 | 12 | |
1,291 | 3,140 | |
- | - | |
0.0 | 0.0 | |
4 months ago | 11 months ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
webpack-node-externals
-
Server-side rendering for any React app on any FaaS provider
The webpack plugin transpile-webpack-plugin collects files directly or indirectly imported by the entry, then gets them compiled and ouputted preserving the directory structure. The webpack helper webpack-node-externals externalizes installed deps to reduce the outputted file count.
-
How we keep our Serverless deploy times short and avoid headaches
By default, Serverless Webpack doesn't support externals, but Webpack can use Webpack Node Externals to exclude all modules from the bundle. All included modules have to be allowlisted, but this plugin doesn't look at subdependencies. When used with custom.webpack.includeModules, the non-allowlisted modules are added to the deployment zip.
chrome-aws-lambda
-
Lambdas vs EC2
Lambda would be my choice for this. You could even stay within the free tier depending how often you run this process. You can orchestrate puppeteer UI flows in lambda using this package https://github.com/alixaxel/chrome-aws-lambda My team does this and it works great.
-
Building a PDF Generator using AWS Lambda
git clone --depth=1 https://github.com/alixaxel/chrome-aws-lambda.git && \ cd chrome-aws-lambda && \ make chrome_aws_lambda.zip
- Best way to scrape header + image from articles on scale?
- Ask HN: What are the best tools for web scraping in 2022?
- Is it possible to use functions requiring a GPU in a serverless google cloud function?
-
Dynamic Open Graph images with Next.js
When requesting the API route, the Next.js serverless function will actually spin up a web browser on the server (a headless instance of Chromium, using chrome-aws-lambda). Next, a webpage will be generated with HTML we can define ourselves. This HTML will be used to construct the image. That means that as a developer we can generate images using HTML and CSS, technologies we are already familiar with!
-
How we keep our Serverless deploy times short and avoid headaches
This plugin is used for all our AWS Lambda deployments, using a wide range of Node modules, some with more quirks than others. We use it together with Lambda Layer Sharp and Chrome AWS Lambda.
-
How to create a chrome profile programmatically in aws lambda?
I was able to successfully to run chrome with puppeteer in AWS Lambda for a similar use case. I used an "optimized" version of chrome packaged as an AWS Lambda Layer.
-
Create PDF documents with AWS Lambda + S3 with NodeJS and Puppeteer
git clone --depth=1 https://github.com/alixaxel/chrome-aws-lambda.git && \ cd chrome-aws-lambda && \ make chrome_aws_lambda.zip
-
chrome binary not found aws lambda
Simplest method use ]Puppeteer](https://blog.risingstack.com/pdf-from-html-node-js-puppeteer/) with chrome-aws-lambda.
What are some alternatives?
serverless-jetpack - A faster JavaScript packager for Serverless applications.
terraform-aws-next-js - Terraform module for building and deploying Next.js apps to AWS. Supports SSR (Lambda), Static (S3) and API (Lambda) pages.
lambda-layer-sharp - An AWS Lambda Layer for the Sharp node module. Automatically published on updates.
puppeteer - Node.js API for Chrome
serverless-plugin-tree-shake - Shake the dependency tree and only package files needed
chrome-aws-lambda-layer - 58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli
serverless-webpack - Serverless plugin to bundle your lambdas with Webpack
serverless-externals-plugin - Package only external modules, and let Rollup bundle all the other modules.
date-fns - ⏳ Modern JavaScript date utility library ⌛️
serverless-graphql - Serverless GraphQL Examples for AWS AppSync and Apollo