npm.io
0.1.0-beta.0 • Published 3d ago

bullwatch-core

Licence
MIT
Version
0.1.0-beta.0
Deps
1
Size
267 kB
Vulns
0
Weekly
0

bullwatch-core

Core server, storage, and framework-agnostic HTTP handler for bullwatch — a deep, local-first dashboard for BullMQ.

Live demo

Most users want a framework adapter or the standalone server, not this package directly:

Direct use

createBullwatch returns an app exposing a standard fetch(request): Promise<Response> handler, so it mounts anywhere the Web Fetch API is available.

import { createBullwatch } from "bullwatch-core";

const app = createBullwatch({
  connection: { host: "localhost", port: 6379 },
  // queues: ["email", "payments"],   // omit to auto-discover
  readOnly: false,
  collectMetrics: true,
  mask: ["**.token", "user.ssn"],     // redacted at render AND before search matching
});

const res = await app.fetch(new Request("http://x/api/queues"));

Payloads are read live from Redis, rendered, and never written to disk; the store boundary is typed so nothing sensitive can be persisted. Shipped bundles make zero external network calls (enforced in CI).

License

MIT

Keywords