chrome-aws-lambda
chrome-aws-lambda-layer
Our great sponsors
chrome-aws-lambda | chrome-aws-lambda-layer | |
---|---|---|
12 | 5 | |
3,135 | 591 | |
- | 1.9% | |
0.0 | 7.7 | |
10 months ago | 15 days ago | |
TypeScript | Shell | |
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.
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.
chrome-aws-lambda-layer
- Lambdas vs EC2
-
Create PDF documents with AWS Lambda + S3 with NodeJS and Puppeteer
This repository hosts a Community Lambda Layer so we can use it directly on our function. At this time the latest version is 24
-
chrome binary not found aws lambda
Have you installed a Chrome / Chromium binary as a Lambda layer (e.g. this layer)? Chrome isn't included by default.
-
Vapor custom Docker image + Browsershot
FROM laravelphp/vapor:php74 RUN apk update && apk add --no-cache curl unzip WORKDIR /opt RUN curl -sSL https://github.com/shelfio/chrome-aws-lambda-layer/raw/master/chrome_aws_lambda.zip --output chrome_aws_lambda.zip RUN unzip chrome_aws_lambda.zip -d /opt RUN rm chrome_aws_lambda.zip RUN curl -sSL https://github.com/lambci/node-custom-lambda/raw/master/v12.x/layer.zip --output node-custom-lambda.zip RUN unzip node-custom-lambda.zip -d /opt/node-custom-lambda RUN cp -avr /opt/node-custom-lambda/bin /opt/bin RUN rm node-custom-lambda.zip && rm -rf node-custom-lambda WORKDIR / COPY . /var/task
-
Using AWS Lambda and Slack to find Xbox Series X stock, so you don't have to
Puppeteer automates Chromium browsers (headless and non-headless), but can Chromium run in a Lambda function? Not without some great work from the community to create a Chrome build for the AWS Lambda runtime. There’s also a Lambda layer solution for this too, although I haven’t tried this approach yet. Another great feature of this package is that it runs headless when running in Lambda and non-headless when running locally - so it’s frictionless to develop, test and run your scripts.
What are some alternatives?
terraform-aws-next-js - Terraform module for building and deploying Next.js apps to AWS. Supports SSR (Lambda), Static (S3) and API (Lambda) pages.
ghostscript-lambda-layer - Ghostscript AWS Lambda layer
puppeteer - Node.js API for Chrome
chromium - Chromium (x86-64) for Serverless Platforms
serverless-webpack - Serverless plugin to bundle your lambdas with Webpack
browsershot - Convert HTML to an image, PDF or string
lambda-layer-sharp - An AWS Lambda Layer for the Sharp node module. Automatically published on updates.
serverless-pdf-generator
serverless-graphql - Serverless GraphQL Examples for AWS AppSync and Apollo
puppeteer-login-demo
next-api-og-image - :bowtie: Easy way to generate open-graph images dynamically in HTML or React using Next.js API Routes. Suitable for serverless environment.
lambda-surf - Automate surfing the web with AWS Lambda and Slack.