TypeScript / JS
Zero dependencies, fetch-based. Node 18+, Bun, Deno and edge runtimes.
await pq.createTask("account-42", { path: "/hooks/send-message", jsonBody: { userId: 1 }, delaySeconds: 3600,});
The enterprise-grade, modern queue made for developers. Push tasks from serverless functions and REST APIs. We handle rate limits, retries and scheduling.
Per-queue token-bucket rate limiting and concurrency caps, so a burst never floods a downstream API.
Exponential-then-linear backoff that honors Retry-After on 429 and 503. Override per task.
Exhausted tasks land in a per-queue DLQ. Completed tasks keep their attempt history for a configurable TTL.
Static headers or Standard Webhooks HMAC signing. The id is stable across retries — use it as your idempotency key.
Deliver now or up to a year out. Dedupe with task_id inside a configurable window.
Run two or more replicas on one Postgres. One dispatcher is elected; every completion is fenced by a per-task lease token.
Zero dependencies and fetch-based, so it runs in Node 18+, Bun, Deno and edge runtimes. Queues are idempotent: upsert one on every enqueue if you like.
import { Pushq } from "pushq"; const pq = new Pushq({ apiKey: "pq_..." }); // One queue per user, each with its own rate limit. // Idempotent — safe to call on every enqueue. await pq.upsertQueue(`user-${user.id}`, { rateLimits: { maxDispatchesPerSecond: 10, maxConcurrentDispatches: 5 }, target: { baseUrl: "https://api.example.com", signingSecret: "whsec_..." }, });
// Deliver POST /hooks/send-message in an hour await pq.createTask(`user-${user.id}`, { path: "/hooks/send-message", // resolved against the queue's baseUrl jsonBody: { userId: 1 }, delaySeconds: 3600, // or scheduleTime: new Date(...) taskId: "follow_up_abc", // optional: dedup (409 on collision) retry: { maxAttempts: 3 }, // per-task override of the queue config });
import { verifySignature } from "pushq"; app.post("/hooks/send-message", async (req, res) => { try { // Returns "queue/task_id" — stable across retries, use as an idempotency key. const id = await verifySignature({ secret: "whsec_...", headers: req.headers, payload: rawBody, // the exact raw request body }); } catch (err) { return res.status(401).end(); } // ... });
# What your endpoint receives X-Pushq-Queue: account-42 X-Pushq-Task-Id: follow-up-abc X-Pushq-Attempt: 2 # 1-based X-Pushq-Scheduled-Time: 2026-08-02T17:00:00Z webhook-id: account-42/follow-up-abc # if signing is enabled — webhook-timestamp: 1754154000 # Standard Webhooks compatible, webhook-signature: v1,MEQCIB… # stable id across retries
Official clients for TypeScript, Python, Go, Java and .NET. Each one includes a constant-time signature check for Standard Webhooks deliveries.
Zero dependencies, fetch-based. Node 18+, Bun, Deno and edge runtimes.
await pq.createTask("account-42", { path: "/hooks/send-message", jsonBody: { userId: 1 }, delaySeconds: 3600,});
Sync client plus AsyncPushq with the same surface.
pq.create_task( "account-42", path="/hooks/send-message", json_body={"user_id": 1}, delay_seconds=3600,)
Standard library only. Typed errors with pushq.IsCode.
pq.CreateTask(ctx, "account-42", pushq.TaskCreate{ Path: "/hooks/send-message", JSONBody: map[string]any{"user_id": 1}, DelaySeconds: pushq.Float64(3600),})
Java 11+, thread-safe, one runtime dependency.
client.createTask("emails", TaskCreate.builder() .path("/hooks/send-welcome") .jsonBody(Map.of("user_id", 9182)) .delaySeconds(30) .build());
netstandard2.0 and net10.0. Async, with CancellationToken on every call.
await pushq.CreateTaskAsync("emails", new TaskCreate{ Path = "/send", JsonBody = new { to = "user@example.com" }, Delay = TimeSpan.FromMinutes(5),});
Any other language: plain HTTP, described by an OpenAPI spec.
curl -X POST …/v1/queues/account-42/tasks -d '{ "path": "/hooks/send-message", "json_body": {"user_id": 1}, "delay_seconds": 3600}'
| queue | depth | oldest due | errors | state |
|---|---|---|---|---|
| account-42 | 128 | 0.4s | 0.2% | running |
| emails | 2,041 | 1.8s | 0.0% | running |
| billing | 37 | 42s | 6.1% | retrying |
| reports | 912 | — | — | paused |
One dashboard for every queue across every user, with live stats and the full history of each task.