Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Serverless Framework + AWS Lambda Layers + Puppeteer = ❤️
| Date | Stars |
|---|---|
| 2026-07-24 | 272 |
| 2026-07-25 | 272 |
| 2026-07-28 | 272 |
| 2026-07-30 | 272 |
| 2026-08-06 | 272 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# Serverless Puppeteer using AWS Lambda Layers
<p>
<img src="https://img.shields.io/badge/version-1.1.0-blue.svg?cacheSeconds=2592000" />
<a href="https://twitter.com/rafalwilinski">
<img alt="Twitter: rafalwilinski" src="https://img.shields.io/twitter/follow/rafalwilinski.svg?style=social" target="_blank" />
</a>
</p>
> Recently AWS introduced [Layers](https://aws.amazon.com/about-aws/whats-new/2018/11/aws-lambda-now-supports-custom-runtimes-and-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.

### 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:
```sh
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install
```
or
```sh
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.
```sh
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`
```sh
./download-latest.sh
```
Credits for this solution go to [San Kumar](https://github.com/san-kumar)
### Author
👤 **Rafal Wilinski**
- Twitter: [@rafalwilinski](https://twitter.com/rafalwilinski)
- Github: [@RafalWilinski](https://github.com/RafalWilinski)
### Show your support
Give a ⭐️ if this project helped you!
Excerpt of 1,723 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:6f67ab00da38d43c, topic:serverless
matched fp:6f67ab00da38d43c, topic:puppeteer