@casoon/auditmysite
Version:
Professional website analysis suite with robust accessibility testing, Core Web Vitals performance monitoring, SEO analysis, and content optimization insights. Features isolated browser contexts, retry mechanisms, and comprehensive API endpoints for profe
69 lines • 1.76 kB
TypeScript
/**
* 🌍 Geo-Audit Feature
*
* Performs website audits from different geographic locations
* to test regional performance, content variations, and accessibility.
*/
import { Browser } from 'playwright';
export interface GeoLocation {
name: string;
locale: string;
timezone: string;
latitude: number;
longitude: number;
acceptLanguage?: string;
}
export interface GeoAuditOptions {
locations: GeoLocation[];
url: string;
viewport?: {
width: number;
height: number;
};
timeout?: number;
collectMetrics?: boolean;
}
export interface GeoAuditResult {
location: GeoLocation;
url: string;
timestamp: string;
performance: {
loadTime: number;
firstContentfulPaint?: number;
largestContentfulPaint?: number;
timeToInteractive?: number;
};
content: {
language?: string;
currency?: string;
pricing?: string;
contentDifferences?: string[];
};
accessibility: {
errors: number;
warnings: number;
locationSpecificIssues?: string[];
};
seo: {
hreflang?: string[];
localizedMeta?: boolean;
geoTargeting?: string;
};
}
/**
* Pre-defined geographic locations for testing
*/
export declare const COMMON_LOCATIONS: Record<string, GeoLocation>;
/**
* Perform geo-located audit
*/
export declare function performGeoAudit(browser: Browser, options: GeoAuditOptions): Promise<GeoAuditResult[]>;
/**
* Compare results across locations
*/
export declare function compareGeoResults(results: GeoAuditResult[]): {
performanceVariance: number;
contentDifferences: string[];
recommendations: string[];
};
//# sourceMappingURL=geo-audit.d.ts.map