All Projects → RafalWilinski → Serverless Puppeteer Layers

RafalWilinski / Serverless Puppeteer Layers

Serverless Framework + AWS Lambda Layers + Puppeteer = ❤️

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Serverless Puppeteer Layers

Puppeteer Lambda Starter Kit
Starter Kit for running Headless-Chrome by Puppeteer on AWS Lambda.
Stars: ✭ 563 (+127.94%)
Mutual labels:  serverless, aws-lambda, chrome, puppeteer
Puppetron
Puppeteer (Headless Chrome Node API)-based rendering solution.
Stars: ✭ 429 (+73.68%)
Mutual labels:  chrome, puppeteer, headless
Chromda
λ 🖼️ Chromda is an AWS Lambda function for capturing screenshots of websites.
Stars: ✭ 481 (+94.74%)
Mutual labels:  serverless, aws-lambda, puppeteer
Chromeless
🖥 Chrome automation made simple. Runs locally or headless on AWS Lambda.
Stars: ✭ 13,254 (+5265.99%)
Mutual labels:  serverless, chrome, headless
Puppeteer Walker
a puppeteer walker 🕷 🕸
Stars: ✭ 78 (-68.42%)
Mutual labels:  chrome, puppeteer, headless
Sms Boom
利用chrome的headless模式,模拟用户注册进行短信轰炸机
Stars: ✭ 507 (+105.26%)
Mutual labels:  chrome, puppeteer, headless
Serverless Chrome
🌐 Run headless Chrome/Chromium on AWS Lambda
Stars: ✭ 2,625 (+962.75%)
Mutual labels:  serverless, aws-lambda, chrome
Puppeteer Api Zh cn
📖 Puppeteer中文文档(官方指定的中文文档)
Stars: ✭ 697 (+182.19%)
Mutual labels:  chrome, puppeteer, headless
Url To Pdf Api
Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
Stars: ✭ 6,544 (+2549.39%)
Mutual labels:  chrome, puppeteer, headless
Chrome Aws Lambda
Chromium Binary for AWS Lambda and Google Cloud Functions
Stars: ✭ 2,502 (+912.96%)
Mutual labels:  serverless, aws-lambda, puppeteer
Flaresolverr
Proxy server to bypass Cloudflare protection
Stars: ✭ 241 (-2.43%)
Mutual labels:  chrome, puppeteer
Retinal
🏙 Retinal is a Serverless AWS Lambda service for resizing images on-demand or event-triggered
Stars: ✭ 208 (-15.79%)
Mutual labels:  serverless, aws-lambda
Puppeteer Extra
💯 Teach puppeteer new tricks through plugins.
Stars: ✭ 3,397 (+1275.3%)
Mutual labels:  chrome, puppeteer
Element
💦Load test your app using real web browsers
Stars: ✭ 204 (-17.41%)
Mutual labels:  chrome, puppeteer
Bitwarden Serverless
Implementation of the Bitwarden API using an AWS serverless stack
Stars: ✭ 217 (-12.15%)
Mutual labels:  serverless, aws-lambda
Yoyo
A dead simple comment engine built on top of AWS lambda and React, alternative comment service to Disqus.
Stars: ✭ 210 (-14.98%)
Mutual labels:  serverless, aws-lambda
Pychromeless
Python Lambda Chrome Automation (naming pending)
Stars: ✭ 219 (-11.34%)
Mutual labels:  aws-lambda, chrome
Aws Lambda Haskell Runtime
⚡Haskell runtime for AWS Lambda
Stars: ✭ 223 (-9.72%)
Mutual labels:  serverless, aws-lambda
Ffmpeg Aws Lambda Layer
FFmpeg/FFprobe AWS Lambda layer
Stars: ✭ 222 (-10.12%)
Mutual labels:  serverless, aws-lambda
Lambdium
headless chrome + selenium webdriver in AWS Lambda using the serverless application model
Stars: ✭ 246 (-0.4%)
Mutual labels:  serverless, aws-lambda

Serverless Puppeteer using AWS Lambda Layers

Twitter: rafalwilinski

Recently AWS introduced Layers which enables sharing common code between functions and working with large dependencies (such as headless chrome) much easier.

This project example returns a screenshot of page requested via ?address= query parameter.

Demo

Usage

It is very important to tell NPM to skip installing chromium from puppeteer package. To do so, installing dependencies should be done using this command:

PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install

or

PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 yarn

Without this, your function size would be more than 200MB which is way too much.

After that, you can simply deploy your funciton.

sls deploy

curl <DEPLOYED_ENDPOINT>?address=https://google.com

or apply this ARN to your function directly: arn:aws:lambda:us-east-1:085108115628:layer:chrome:6

Bundling latest Chromium on your own

Prerequisites:

  • brotli
./download-latest.sh

Credits for this solution go to San Kumar

Author

👤 Rafal Wilinski

Show your support

Give a ⭐️ if this project helped you!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].