A cutting-edge browser extension for real-time web performance analysis. VelocityRay pinpoints bottlenecks, suggests actionable optimizations, and integrates seamlessly with browser DevTools to monitor Core Web Vitals, ensuring a lightning-fast user experience.
Star β this Repo to Support Future Development!
VelocityRay is engineered to empower developers and website owners with deep insights into their web application's performance. By leveraging advanced browser APIs and analytical techniques, it provides immediate feedback on critical performance metrics, making it easier than ever to diagnose and resolve speed-related issues.
ascii . βββ src/ β βββ background/ # Background service worker for extension logic β β βββ index.ts β βββ content/ # Injected scripts for page interaction β β βββ devtools.ts # DevTools panel integration β β βββ page.ts # Page script for performance metrics β βββ popup/ # User interface for the extension popup β β βββ main.ts β βββ store/ # State management (e.g., using Signals or Zustand) β β βββ index.ts β βββ utils/ # Utility functions β β βββ metrics.ts β βββ main.ts # Extension entry point βββ static/ # Static assets (icons, manifest.json) β βββ icons/ β βββ manifest.json βββ .env # Environment variables βββ biome.json # Biome configuration βββ package.json # Project dependencies and scripts βββ tsconfig.json # TypeScript configuration βββ vite.config.ts # Vite build configuration βββ README.md # This file
- π Project Overview
- π³ Architecture
- π€ AI Agent Directives
- π οΈ Development Standards
- π License
View Agent Directives
This repository is managed by the Apex Technical Authority AI Agent, operating under the December 2025 Edition protocols.
- Role: Senior Principal Software Architect, Master Technical Copywriter, DevOps Strategist (40+ years elite experience).
- Output Standard: EXECUTION-ONLY. Enforce FAANG-level standards and "Managing the Unmanageable."
- Philosophy: "Zero-Defect, High-Velocity, Future-Proof."
- Project Type: Browser Extension / Web App.
- Language: TypeScript 6.x (Strict Mode enforced).
- Bundler/Build Tool: Vite 7 (utilizing Rolldown).
- Native Integration (Optional): Tauri v2.x for potential desktop packaging.
- Extension Framework: WXT (Web Extension Tooling) or Vite's native extension support.
- State Management: Signals (Standardized), or Zustand for simplicity if Signals are overkill.
- Styling: TailwindCSS v4.
- Tool: Biome (v1.7.0+). Ensures ultra-fast, unified code quality checks and formatting.
- Configuration: Managed via
biome.json, enforcing strict rules.
- Unit Testing: Vitest (v2.x+). Leverages Vite's ecosystem for rapid unit tests.
- End-to-End (E2E) Testing: Playwright (v1.x+). For comprehensive browser automation and E2E scenario validation.
- Coverage: Codecov.io integration via CI/CD pipeline.
- Core Principles: SOLID, DRY, YAGNI.
- Frontend Structure: Feature-Sliced Design (FSD) for modularity and scalability.
- Extension Structure: Adheres to standard browser extension architecture (background scripts, content scripts, popup UI).
- Platform: GitHub Actions.
- Workflow:
ci.ymlorchestrates linting, testing, building, and deployment tasks.
- Lint & Format:
npm run lint -- --fixorbiome check --apply - Unit Tests:
npm run test:unitorvitest run - E2E Tests:
npm run test:e2eornpx playwright test - Build:
npm run build
- Node.js (v20.x LTS or higher recommended)
- npm (v10.x+) or Yarn (v4.x+)
-
Clone the repository: bash git clone https://github.com/chirag127/VelocityRay-Web-Performance-Analyzer-Browser-Extension.git cd VelocityRay-Web-Performance-Analyzer-Browser-Extension
-
Install dependencies using npm: bash npm install
| Command | Description |
|---|---|
npm run dev |
Starts the Vite development server for the extension. |
npm run build |
Builds the extension for production. |
npm run lint |
Runs Biome to check code style and quality. |
npm run lint:fix |
Fixes linting and formatting issues automatically. |
npm run test:unit |
Executes unit tests using Vitest. |
npm run test:e2e |
Runs end-to-end tests using Playwright. |
- SOLID: Adhere to the Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles.
- DRY (Don't Repeat Yourself): Minimize code duplication.
- YAGNI (You Ain't Gonna Need It): Implement only what is currently required.
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0). See the LICENSE file for more details.