{"library":"flamegraph-middleware","type":"library","category":null,"description":"Flamegraph Middleware provides an HTTP interface for on-demand CPU and heap profiling of Node.js applications, visualizing the results as interactive flamegraphs directly in the browser. It is currently at stable version 1.0.0 and designed to be framework-agnostic, working seamlessly with native `http` servers, Express, Fastify, and other HTTP frameworks. Key differentiators include its non-blocking background profiling, dual CPU and heap profiling capabilities, and temporary in-memory storage of profiles with automatic expiration. This tool is invaluable for identifying performance bottlenecks and memory leaks in production or development environments, offering a user-friendly WebGL-powered visualization for deep analysis of execution paths and memory allocation patterns. The package emphasizes ease of integration and real-time insights.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","profiling","flamegraph","pprof","middleware","performance","cpu","heap","memory"],"last_verified":"Wed May 27","install":[{"cmd":"npm install flamegraph-middleware","imports":["import { createFlamegraphMiddleware } from 'flamegraph-middleware'","import { createFlamegraphMiddleware, type FlamegraphMiddlewareFactoryOptions } from 'flamegraph-middleware'","import http from 'http'"]},{"cmd":"yarn add flamegraph-middleware","imports":[]},{"cmd":"pnpm add flamegraph-middleware","imports":[]}],"homepage":null,"github":"https://github.com/qard/flamegraph-middleware","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/flamegraph-middleware","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/flamegraph-middleware/compatibility"}}