{"library":"edge-runtime","type":"library","category":null,"description":"edge-runtime is a JavaScript/TypeScript library, currently at version 4.0.1, developed by Vercel. It provides a robust, spec-compliant environment for simulating Vercel Edge Functions or any Web-standard compliant JavaScript code within Node.js or a CLI. This enables local development, testing, and debugging of Edge Functions without requiring actual deployment, significantly streamlining the development workflow. The library aims to faithfully replicate the Edge Function environment, offering Web APIs like `fetch`, `Request`, `Response`, and `URL` as globals within its isolated context. It maintains an active release cadence, with major versions typically aligning with Node.js LTS updates or substantial API enhancements, as demonstrated by the v4.0.0 release which raised the minimum Node.js version requirement. Its core differentiation lies in providing a high-fidelity simulation of the Vercel Edge context.","language":"javascript","status":"active","version":"4.0.1","tags":["javascript","edge","edge-runtime","functions","runtime","standard","web","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install edge-runtime","imports":["import { EdgeRuntime } from 'edge-runtime';","import type { EdgeRuntimeOptions } from 'edge-runtime';","const request = new runtime.Request('https://example.com');"]},{"cmd":"yarn add edge-runtime","imports":[]},{"cmd":"pnpm add edge-runtime","imports":[]}],"homepage":"https://edge-runtime.vercel.app/","github":"https://github.com/vercel/edge-runtime","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/edge-runtime","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/edge-runtime/compatibility"}}