orq (Observable Request Queue) v0.3.0 is an HTTP request queue optimized for Web Workers, providing TTL caching, RESTful cache invalidation, cancelable requests, and duplicate request elimination. It uses RxJS Observables and is platform-independent, allowing custom request implementations for Node.js or browser environments. Designed for modern JavaScript applications where caching and request deduplication are critical, particularly in worker-based architectures. Licensed under the MIT License.
npm install orqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a Web Worker with TTL cache and RESTful cache policy, then creates an interface in main thread to make requests.
Pass { cancelable: true } in options to addRequest for GET requests to be cancelable.Use ES module import syntax or configure your bundler to handle ESM.
Implement your own request wrapper using the platform-independent pattern described in the README.
Ensure mkReceiver is called inside a Web Worker with self as context.
Install @types/orq if community provides, or write your own type declarations.
Use import { mkMemCache } from 'orq' with ES modules.Use import { mkReceiver } from 'orq'.Use <script type="module"> or set { type: 'module' } in Worker constructor.Only call mkReceiver from within a Web Worker or provide a mock self object.
No dependency data recorded yet.