A lightweight proxy service that uses Puppeteer to make HTTP requests through a headless Chrome browser.
# Clone the repository
git clone [your-repo-url]
cd PuppeteerProxy
# Install dependencies
./install.sh
# OR
bun install
bun start
The server will start on port 8000 by default, or you can set a custom port using the PORT
environment variable.
GET /
Returns "Ready" if the server is up and running.
POST /
Headers:
x-api-key
: Your API key for authentication (set via API_KEY environment variable)
Request Body:
{
"url": "https://example.com",
"method": "GET",
"headers": {
"User-Agent": "Custom User Agent"
},
"data": {},
"timeout": 10000
}
Response:
{
"status": 200,
"headers": {
"content-type": "text/html; charset=utf-8",
...
},
"text": "<html>..."
}
# Build the Docker image
docker build -t puppeteerproxy .
# Run the container
docker run -p 8000:8000 -e API_KEY=your_api_key puppeteerproxy
PORT
: Server port (default: 8000)API_KEY
: API key for authentication