@reqray/store-memory
v0.1.1
Published
Reqray in-memory store: the ring buffer the panel reads from, and the transport that fills it.
Maintainers
Readme
@reqray/store-memory
The default store of Reqray: a ring buffer in process memory that holds the most recent requests and answers the panel's queries.
Part of Reqray — a dev panel and request inspector for Node.js. It instruments HTTP, SQL, outgoing calls and cache on its own, shows every request as a waterfall, and finds N+1 down to the file and the line.
You do not normally install this yourself — the adapters depend on it and use it when no other transport is given. It keeps the last 500 requests and forgets them when the process restarts.
import { memoryTransport } from '@reqray/store-memory';
const store = memoryTransport({ capacity: 2000 });Pinned requests survive the ring, up to 50 of them: pinning suspends the promise that memory is bounded, so it gets a bound of its own.
For a history that survives a restart, use
@reqray/store-sqlite.
More
Everything else — the detectors, security defaults, measured overhead and a demo that runs with one command — is in the main README.
