New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@mohamedhabibwork/memory

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@mohamedhabibwork/memory

In-memory Queue Kit provider for tests, examples and local development. Deterministic with FakeClock.

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@mohamedhabibwork/memory

npm version npm downloads License: MIT GitHub: @mohamedhabibwork Node.js ≥ 20 TypeScript CI Socket

In-memory Queue Kit provider for unit tests, examples and local development. Not durable — never use it in production.

pnpm add @mohamedhabibwork/core @mohamedhabibwork/memory
import { createQueue, FakeClock } from "@mohamedhabibwork/core";
import { memory } from "@mohamedhabibwork/memory";

const clock = new FakeClock();
const queue = createQueue({ name: "emails", provider: memory({ clock }) });

Supported features

Send, batch send, receive, workers (concurrency, pause/resume, graceful shutdown), delays, priorities (native: { priority } — higher first), visibility timeouts with expiry redelivery and auto-extension, ack/nack, portable retries with backoff, dead-lettering, poison-message handling, idempotency-key deduplication (SendResult.deduplication), health/size/purge, and a typed test inspector via queue.native().

Deterministic time

Pass a FakeClock and delays, retries and visibility leases only move when you advance the clock:

await queue.send("job", data, { delay: "5m" });
clock.advance("5m");

Every behaviour above is covered by the contract test-suite in this package, which doubles as the reference for future adapters (BullMQ, SQS, RabbitMQ, …).

Keywords

queue

FAQs

Package last updated on 04 Sep 2026

Related posts