{"library":"crux-api","type":"library","category":null,"description":"A tiny (~500 bytes) CrUX API wrapper supporting both record and history APIs, with TypeScript types, automatic retry on rate limits, and URL normalization. Current stable version: 4.1.0. Release cadence: irregular, with major versions for breaking changes (ESM conversion in v3, dropping effectiveConnectionType in v4). Key differentiators: isomorphic (browser + Node.js), returns null on 404, handles 429 with retries, and provides TypeScript definitions for API responses. Alternatives require manual fetch handling and lack type safety.","language":"javascript","status":"active","version":"4.1.0","tags":["javascript","CrUX","CrUX API","CrUX History API","Chrome User Experience Report","Chrome UX Report","Core Web Vitals","Web Performance","FCP"],"last_verified":"Sat May 09","install":[{"cmd":"npm install crux-api","imports":["import { createQueryRecord } from 'crux-api'","import { createQueryHistoryRecord } from 'crux-api'","import { normalizeUrl } from 'crux-api'"]},{"cmd":"yarn add crux-api","imports":[]},{"cmd":"pnpm add crux-api","imports":[]}],"homepage":null,"github":"https://github.com/treosh/crux-api","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/crux-api","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}