chrome-aws-lambda
next-api-og-image
Our great sponsors
chrome-aws-lambda | next-api-og-image | |
---|---|---|
12 | 4 | |
3,136 | 215 | |
- | - | |
0.0 | 0.0 | |
11 months ago | over 1 year ago | |
TypeScript | 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.
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.
next-api-og-image
-
Dynamic Open Graph images with Next.js
As you see in the code above, we are using the next-api-og-image library with almost no configuration required to generate the images. Super easy! The interesting part however is what the library does under the hood.
-
Seamless Open Graph images generation library for Next.js
Hey! There should not be any problems with that 😇 I've replied to your issue on next-api-og-image repository with example code that works on localhost (haven't tested it being deployed yet). Cheers
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.
next-hcaptcha - 🤖 Robust, dependency free and highly configurable solution for guarding Next.js API Routes through higher order function with HCaptcha
puppeteer - Node.js API for Chrome
og-image - Open Graph Image as a Service - generate cards for Twitter, Facebook, Slack, etc
chrome-aws-lambda-layer - 58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli
nookies - 🍪 A set of cookie helpers for Next.js
serverless-webpack - Serverless plugin to bundle your lambdas with Webpack
trpc - 🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.
lambda-layer-sharp - An AWS Lambda Layer for the Sharp node module. Automatically published on updates.
nextjs-color-mode - ⚡️ A helper for creating non-flickering and accessible themed applications
serverless-graphql - Serverless GraphQL Examples for AWS AppSync and Apollo
nextjs-routes - Type safe routing for Next.js