The frontend for MetriQ, a web performance analysis and comparison platform. Built with React, Tailwind CSS, and Recharts, it provides a clean UI for visualizing Google PageSpeed Insights results, generating AI analyses, comparing competitor metrics, and exporting reports.
- React 18 with React Router DOM
- Tailwind CSS 4 + Typography plugin
- Vite for fast dev/build
- Recharts for data visualization
- Lucide React icons
- @react-pdf/renderer and html2pdf.js for PDF export
- OpenRouter + DeepSeek for AI analyses (via backend)
- Fully integrated with the MetriQ API backend
/frontend
│
├── assets/ # Static files, images, logos
├── components/ # Reusable UI components
├── config/ # Configs for routes, constants, etc.
├── context/ # Theme & Auth context providers
├── hooks/ # Custom React hooks
├── pages/ # Page-level components and views
├── utils/ # Helper functions and formatting
│
├── api.js # Axios instance and API calls
├── .env # Environment variables
├── README.md # Project documentation
├── vite.config.js # Vite config
└── vercel.json # Vercel deployment config
git clone https://github.com/trace-kadenyi/MetriQ.git
cd MetriQnpm installnpm run devVisit http://localhost:5173 in your browser.
Create a .env file in the root (add it to gitignore) and add:
VITE_API_KEY=vite_api_key- 🔐 OAuth Login via Google or GitHub – Seamless sign-in with your preferred account.
- 🔍 Analyze Any Website – Audit any URL using Google PageSpeed Insights (mobile & desktop).
- 📈 Visual Performance Charts – Instantly see speed, accessibility, SEO, and best practices.
- 🤖 AI-Powered Summaries – Generate smart, readable insights from performance data.
- ⚔️ Competitor Comparison – Compare your site against rivals with side-by-side charts.
- 🧠 AI Competitor Analysis – Auto-generate key takeaways comparing you to competitors.
- 💾 Favourites – Save and organize important reports for quick access.
- 🎨 Theme Toggle – Switch between light and dark modes (persisted in user preferences).
- 🧾 Downloadable Reports – Export detailed performance + AI summaries as PDF files.
npm run dev # Start dev server (Vite)
npm run build # Build for production
npm run preview # Preview production buildThis app works in conjunction with MetriQ API.
Make sure the backend is running locally at the same time during development.
- Tailwind Typography plugin is used to style AI analyses/summaries and markdown.
- Axios is preconfigured with cookies enabled for OAuth sessions.
- Theme and Auth states are managed via React Context.
MIT License. © Tracey Kadenyi 2026.








