A typed queue registry and lifecycle helper library for pg-boss (^12.15.0), enabling TypeScript types for queue names, payloads, workers, and schedules. Current stable version 0.3.0, released under MIT license. Provides definePgBossQueues, asTypedPgBoss, and setupPgBoss to create typed PgBoss instances and workers with full type safety. Key differentiators: full TypeScript support, framework-agnostic (works with Fastify, Hono, Express, NestJS), typed worker error handling, and lifecycle management (start/stop/graceful shutdown).
npm install pg-boss-registryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines typed queues, creates workers with schedules, sets up PgBoss with full type safety, and demonstrates typed send.
Use runtime validation (e.g., zod) within worker handlers if payload trust is low.
Explicitly pass start: true to setupPgBoss if you need automatic start.
Update pg-boss to version >=12.15.0 in your project.
Do not reassign the returned reference expecting a separate instance.
N/A
Run npm install pg-boss-registry
Ensure you pass a valid PgBoss instance: const boss = new PgBoss(process.env.POSTGRES_URL)
Verify that queues object includes the queue key (e.g., 'email/send') and that worker is called on the correct queues object.
Ensure schedule object contains cron: string and an optional data object matching the queue payload.
No dependency data recorded yet.