Website Performance Checker is a React + Vite application that analyzes the performance metrics of a given URL using the Google PageSpeed Insights API. It provides key metrics such as visual load time, full page load time, page size, and the number of requests in a modern, styled UI.
- Enter a URL to analyze its performance metrics instantly.
- Fetches data from the Google PageSpeed Insights API.
- Displays metrics in a responsive, card-based layout.
- Styled using Tailwind CSS.
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd UrlParser -
Install dependencies:
npm install
-
Create a
.envfile in the root directory and add your Google PageSpeed Insights API key:VITE_API_KEY=your_api_key_here
-
Start the development server:
npm run dev
- Open the application in your browser (default:
http://localhost:5173). - Enter a URL in the input field and click "Analyze".
- View the performance metrics displayed below the input field.
-
Environment Variables Not Loading: Ensure the
.envfile is correctly set up and the API key is valid. -
API Key Restrictions: Verify that your API key has access to the Google PageSpeed Insights API.
-
Vite Cache Issues: Clear the Vite cache by running:
npm run clean
- React
- Vite
- Tailwind CSS
- Google PageSpeed Insights API
This project was developed with the help of AI tools to streamline the coding process and improve efficiency. AI was used for tasks like generating boilerplate code, optimizing UI design, and writing documentation. These tools helped save time and focus on delivering a polished application.
