Skip to content
pushqdocs
Get started

pushq dev runs the real queue locally: delays, retries and rate limits behave exactly as they do in production, instead of being faked with synchronous calls.

Terminal window
pushq dev

That gives you SQLite in a temp file, no authentication, fast timers, and the dashboard at http://localhost:8080/. Install pushq first if you don’t have the binary.

SDKs default to the hosted API, so pass your local server’s URL. pushq dev doesn’t check API keys.

import { Pushq } from "pushq";
const pq = new Pushq({ baseUrl: "http://localhost:8080" });
Terminal window
# Create a queue that delivers to a receiver on port 9000
curl -X PUT localhost:8080/v1/queues/emails -d '{
"rate_limits": {"max_dispatches_per_second": 5},
"retry": {"max_attempts": 5, "min_backoff_seconds": 1, "max_backoff_seconds": 60},
"target": {"base_url": "http://localhost:9000"}
}'
# Deliver now
curl -X POST localhost:8080/v1/queues/emails/tasks -d '{
"path": "/send", "json_body": {"to": "a@example.com"}}'
# In 2 hours, deduplicated, with a per-task retry override
curl -X POST localhost:8080/v1/queues/emails/tasks -d '{
"path": "/send",
"json_body": {"to": "b@example.com"},
"delay_seconds": 7200,
"task_id": "welcome-user-42",
"retry": {"max_attempts": 1}
}'

A second create with the same task_id returns 409 already_exists; that’s your deduplication.

For a receiver, the repository has an Express example and a FastAPI example, both of which verify signatures.

Terminal window
curl localhost:8080/v1/queues/emails/stats
curl "localhost:8080/v1/queues/emails/tasks?state=succeeded"
curl localhost:8080/v1/queues/emails/tasks/welcome-user-42/attempts
curl -X POST localhost:8080/v1/queues/emails:pause
curl -X POST localhost:8080/v1/queues/emails:resume
curl -X POST localhost:8080/v1/queues/emails:purge
curl -X POST localhost:8080/v1/queues/emails/tasks/welcome-user-42:run # dispatch now

Every server also serves its interactive API reference at /docs (http://localhost:8080/docs) and the OpenAPI spec at /openapi.json.