Simplify and Streamline Lighthouse Performance Testing
The LighthouseCLI Wrapper API is a command-line interface (CLI) tool that simplifies Lighthouse performance testing for web applications. With easy integration and streamlined workflows, developers can initiate Lighthouse tests effortlessly. Customize parameters, generate detailed reports, and automate testing in CI pipelines. Optimize your web app's speed and user experience with LighthouseCLI Wrapper API.
This is a Flask app that returns the JSON report from Lighthouse CLI for the given URL.
- Python 3.6 or higher
- Flask
- Lighthouse CLI
- Install Python 3.6 or higher.
- Install Flask:
pip install Flask
- Install Lighthouse CLI:
npm install lighthouse-ci
- Start the Flask app
python lighthouse-cli-flask-app.py
- Open a web browser and navigate to http://localhost:5000.
- Enter a URL in the input field and click the Submit button.
- The JSON report from Lighthouse CLI for the given URL will be displayed.
- Run the following command
curl http://localhost:5000/?url=https://www.google.com