Skip to content

Examples

All examples are self-contained and runnable. Each one demonstrates a single integration or pattern.

Source: examples/

How to connect Queuert to your database using different ORMs and drivers.

ExampleORM / Driver
state-postgres-kyselyKysely
state-postgres-drizzleDrizzle ORM
state-postgres-prismaPrisma
state-postgres-pgpg (node-postgres)
state-postgres-postgres-jspostgres.js
state-postgres-multi-workerMultiple workers sharing one database
ExampleORM / Driver
state-sqlite-nodenode:sqlite
state-sqlite-better-sqlite3better-sqlite3
state-sqlite-kyselyKysely
state-sqlite-drizzleDrizzle ORM
state-sqlite-prismaPrisma

How to set up real-time job notifications between client and workers.

ExampleTransport
notify-redis-redisRedis (node-redis)
notify-redis-ioredisRedis (ioredis)
notify-redis-cluster-node-redisRedis Cluster (node-redis)
notify-redis-cluster-ioredisRedis Cluster (ioredis)
notify-nats-natsNATS
notify-postgres-pgPostgreSQL LISTEN/NOTIFY (pg)
notify-postgres-postgres-jsPostgreSQL LISTEN/NOTIFY (postgres.js)

Job chain patterns, error handling, scheduling, and other core features.

ExampleWhat it demonstrates
showcase-chain-patternsLinear, branched, looped, and go-to chain execution
showcase-error-handlingDiscriminated unions, compensation, rescheduling
showcase-error-recoveryEngine-level recovery: savepoints, post-complete errors, staged retries
showcase-schedulingDelayed and time-scheduled jobs
showcase-blockersCross-chain job dependencies
showcase-chain-awaitingAwaiting chain completion programmatically
showcase-chain-deletionDeleting job chains
showcase-processing-modesAtomic vs staged processing modes
showcase-queriesQuerying jobs and chains
showcase-timeoutsJob and chain timeouts
showcase-slicesFeature slices with merged registries and processors
showcase-cleanupAutomatic cleanup of completed job chains
showcase-workerlessRunning without a worker (polling only)
showcase-multiworker-prioritizationPriority tiers via specialized workers; cross-worker chain handoff
ExampleLogger
log-consoleBuilt-in console logger
log-pinoPino
log-winstonWinston

Input/output validation with different schema libraries.

ExampleLibrary
validation-zodZod
validation-arktypeArkType
validation-valibotValibot
validation-typeboxTypeBox
ExampleWhat it demonstrates
observability-otelOpenTelemetry tracing and metrics
dashboardWeb dashboard UI with SQLite