https://www.openpuppeteer.com/
OpenPuppeteer is a free service for running Puppeteer scripts. It's designed to simplify the process of using Puppeteer, a Node.js library for browser automation, and allows you to run Puppeteer as a service.
- Node.js (latest stable version recommended)
- Vercel Account (for deployment)
-
Clone this repository:
git clone https://github.com/naeemudheenp/open-puppeteer.git
-
Install dependencies:
cd openpuppeteer npm install
-
Set up your
.env.local
file in the project root with the following environment variables:NEXT_PUBLIC_APP_DOMAIN=http://localhost:3000/ NEXT_PUBLIC_VERCEL_ENVIRONMENT=development
NEXT_PUBLIC_APP_DOMAIN
: Set to the base URL of your application (e.g.,http://localhost:3000/
for local development).NEXT_PUBLIC_VERCEL_ENVIRONMENT
: Set todevelopment
during local development orproduction
when deployed.
To start the application locally:
npm run dev
The application should be running at http://localhost:3000.
You can deploy this application on Vercel. Remember to add the environment variables to your Vercel project settings in the Environment Variables section.
If you encounter a 504 Gateway Timeout error, it may be due to Vercel's function timeout limit. To increase the function timeout:
- Go to Settings > Functions in your Vercel project.
- Adjust the Function Timeout value to increase the time allowed for long-running Puppeteer operations.
We welcome contributions! If you'd like to contribute to OpenPuppeteer, please fork the repository, make your changes, and submit a pull request.