Skip to content

Installation

  • Node.js 22.12 or newer
  • MongoDB 4.4 or newer, compatible with the MongoDB Node.js driver 7.6
    • Monque works with regular polling on standalone MongoDB
    • Change Streams require a replica set or sharded cluster (MongoDB Atlas provides this by default)
bun add @monque/core mongodb

Install the MongoDB Node.js driver (mongodb ^7.6.0) alongside Monque. Pass a database from your existing client to share its connections. You choose the driver version within that supported range.

PackageUse it for
@monque/coreRegister workers, enqueue jobs, schedule recurring work, and query MongoDB jobs.
@monque/tsedIntegrate workers and scheduler lifecycle with a Ts.ED application.
@monque/managementExpose job queries and actions through an HTTP contract.
@monque/management-expressServe the Management API from Express.
@monque/dashboard-expressServe the bundled dashboard from Express. Includes @monque/dashboard.
@monque/dashboardAccess built dashboard assets and configuration types for custom server adapters.

For an Express application with the dashboard:

bun add @monque/dashboard-express @monque/management-express @monque/management @monque/core express mongodb

Follow Dashboard setup for the server configuration. You do not need to install React or build the frontend in your application.

The MongoDB driver 7.6 no longer supports MongoDB 4.2 and earlier. See MongoDB’s driver upgrade notes when upgrading an existing deployment.

Follow the Quick Start to register a worker and enqueue its first job, or use the Ts.ED integration in a Ts.ED application.