DEV Community

Jonathan Geiger
Jonathan Geiger

Posted on

Open Source: AWS Lambda + Puppeteer Starter Repo

I recently open-sourced a little repo I’ve been using that makes it easier to run Puppeteer on AWS Lambda. Thought it might help others building serverless scrapers or screenshot tools.

📦 GitHub: https://github.com/geiger01/puppeteer-lambda

It’s a minimal setup with:

  • Puppeteer bundled and ready to run inside Lambda

  • chrome-aws-lambda support

  • Simple example handler for extracting HTML

I use a similar setup in CaptureKit (my scraping/screenshot API), and it’s worked well so far for handling headless Chromium tasks without managing servers.

Let me know if you find it useful, or if you spot anything that could be improved. PRs welcome too :)

Top comments (1)

Collapse
 
sleywill_45 profile image
Alex Serebriakov

exactly right on the memory issue. we had the same — chromium just doesn't release properly without explicit cleanup

now using snapapi.pics for all our screenshot needs. api-based, no browser on our servers