This project aims to create a web-based platform similar to WebPageTest (WPT) but specifically tailored for testing website performance with an Indonesian focus. It will provide insights into page load times, resource usage, and other key performance metrics, helping developers optimize their websites for Indonesian users. The project leverages a custom backend built with Python and a simple, user-friendly frontend. It uses an API to fetch website performance data (using a GROQ API key).
This project is not a full reproduction of WPT but focuses on delivering a simplified, customizable version for Indonesian web performance analysis.
- Python 3.11+
- A GROQ API key
-
Create and activate virtual environment:
python3 -m venv env_name source env_name/bin/activate
-
Install dependencies:
pip install -r requirements.txt
Note: You will need to create a
requirements.txt
file containing dependencies, see the "Dependencies" section below -
Obtain a GROQ API key and set it as an environment variable or store it securely for use in the
app.py
file.
- Run the server:
GROQ_API_KEY=YOUR_GROQ_API_KEY python3 app.py
Replace YOUR_GROQ_API_KEY with your actual key
To use the application, run the app.py
with your GROQ API KEY and the application will provide a simple interface in your terminal or will be served via a simple framework if implemented.
Example Usage:
GROQ_API_KEY=YOUR_GROQ_API_KEY python3 app.py
- This application requires the
requests
package for fetching data. Create arequirements.txt
as follows:requests
We welcome contributions! If you'd like to contribute, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and ensure your code is well-documented.
- Submit a pull request with a detailed description of your changes.
- Be sure to include your test cases, if applicable.
This project is licensed under the MIT License. See the LICENSE
file for more details.