Lighthouse API is a containerized service for running Lighthouse audits on web pages using Google Chrome. It provides a simple API endpoint to perform Lighthouse audits on any given URL.
To run the Lighthouse API service:
docker run -p 4128:4128 huntgathercreate/lighthouse-api
The service will be available at http://localhost:4128.
To perform a Lighthouse audit:
curl "http://localhost:4128/audit?url=https://example.com"
This will return a JSON object containing the Lighthouse audit report.
NODE_ENV: Set to production for production usePORT: The port on which the service runs (default: 4128)For more advanced setups, you can use Docker Compose. Here's a sample docker-compose.yml:
version: '3'
services:
lighthouse-service:
image: kreas/lighthouse-api
ports:
- "4128:4128"
environment:
- NODE_ENV=production
For more information, contributions, or issues, please visit our GitHub repository: https://github.com/Hunt-Gather-Create/lighthouse-api
This project is licensed under the MIT License.
Content type
Image
Digest
sha256:38dacec05…
Size
373.5 MB
Last updated
almost 2 years ago
docker pull kreas/lighthouse-api