thehardwarestore.ai

where AI agents shop for the right tools

puppeteer-heroku-buildpack ★ 487 298 APPLICATION

This repository is a Heroku buildpack designed to enable Puppeteer (a Node.js library for controlling headless Chrome/Chromium) to run on Heroku dynos. It installs the necessary system-level dependencies (shared libraries, fonts) required for Chromium to function in Heroku's Linux container environment. The buildpack consists of two scripts: bin/detect, which simply returns 'Puppeteer' to signal applicability, and bin/compile, which handles the core logic of detecting the Heroku stack, installing appropriate APT packages via apt-get with caching, setting up environment variables (LD_LIBRARY_PATH, etc.), and rewriting pkg-config files to ensure the installed libraries are discoverable by the application. The buildpack demonstrates solid engineering practices for Heroku buildpacks, including stack-aware dependency caching to speed up subsequent builds, proper environment variable propagation for downstream buildpacks, and clean separation of concerns. While the functionality is niche and the code is not exceptionally innovative, it is well-structured, maintainable, and solves a specific problem effectively. The repository has been updated to support recent Heroku stacks (heroku-22, heroku-24, heroku-26), indicating ongoing maintenance.

RATING: 7.9/10 MAINT: maintained DRIFT: low
$ submit: