# Trendsandvibe — Core Web Vitals Optimization & High-Performance CMS

Canonical page: https://taharafi.com/work/trendsandvibe/
Author: Taha Rafi

Full-scale performance overhaul: slashed image weights by 85% and achieved perfect 100/100 Lighthouse score.

## Overview
Engineered a comprehensive performance and security overhaul of an e-commerce deals platform. Replaced client-side hydration waterfalls with native SSR, created an automated batch WebP conversion pipeline, and remediated 39 security vulnerabilities.

## Technologies
PHP 8.3, Native PDO, MySQL, Vanilla ES6+, Pillow/GD WebP Engine, Apache Optimization

## Engineering
- Native SSR Migration: Eliminated client-side API waterfall delays, reducing Cumulative Layout Shift by 87.6%.
- Automated WebP Conversion: Built `ImageService.php` to automatically resize and convert media to WebP, slashing payloads by 85.4%.
- Security Hardening: Remediated 39 findings, enforcing strict CSP, HSTS, COOP, and SQL injection protections.
- AI Search Optimization: Configured structured JSON-LD schemas and `llms.txt` for AI crawlers.

## Deliverables
- Performance Overhaul
- Automated WebP Conversion Engine
- Security Hardening Suite
- 100/100 Benchmark Audit

## Sources
Website or package: https://trendsandvibe.com
Contact: connect@taharafi.com
