{"repo":"Fzgt/Performance-SDK","free":true,"listed":false,"github":"https://github.com/Fzgt/Performance-SDK","clone":"git clone https://github.com/Fzgt/Performance-SDK.git","description":"A TypeScript performance monitoring SDK — Web Vitals, navigation timing, and error capture with priority-based reporting.","language":"TypeScript","stars":12,"topics":["frontend","monitoring","performance","sdk","typescript","web-vitals"],"license":"ISC","category":"api-integrations-sdks","readme_excerpt":"performance-sdk Written in TypeScript. Captures Web Vitals and page-load timing breakdowns with device/network context, and reports data to a configurable backend based on priority. Usage The constructor is the entry point — instantiating with new starts collection immediately, no separate start() call needed. What it captures Web Vitals — all based on PerformanceObserver : Metric Description Threshold source -------- ----------------------------------------------- ----------------- FP / FCP First Paint / First Contentful Paint 1000 / 2500ms LCP Largest Contentful Paint 2500 / 4000ms FID First Input Delay 100 / 300ms CLS Cumulative Layout Shift 0.1 / 0.25 TBT Total Blocking Time (includes 5s / 10s / final segments) 300 / 600ms Each metric is scored good / needsImprovement / poor via helpers/vitalsScore.ts , with thresholds sourced from web.dev/vitals. NavigationTiming — DNS lookup, TCP connection, TTFB, time to first paint, DOM parsing, load completion, and other stage-by-stage timings. Runtime environment context — this is where the SDK gets more interesting: it doesn't just report numbers, it also reports the conditions under which those numbers were measured : - Network: downlink / effectiveType / rtt / saveData from navigator.connection - Device: deviceMemory , hardwareConcurrency , low-end device detection ( isLowEnd.ts ) - Storage: offline cache usage via navigator.storage.estimate() Error monitoring (enabled via captureError: true ) — captures sync/async errors via win","default_branch":null,"files":null,"tree":[],"storefront":"/r/Fzgt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Fzgt/Performance-SDK/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}