Liteque is a simple, typesafe SQLite-based job queue for Node.js, built on better-sqlite3. Version 0.8.0 is the latest stable release; the project follows a regular release cadence. It differentiates from other queues (e.g., Bull, Bee-Queue) by using SQLite as the backing store, eliminating the need for Redis or additional infrastructure. Designed for single-process or embedded use cases, it offers TypeScript-first APIs with Zod schema validation for job data, configurable retries, concurrency control, and lifecycle hooks (onComplete, onError).
npm install litequeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setting up a SQLite queue, enqueuing a job, and running a worker with lifecycle hooks.
Always provide a Zod schema or similar validator in the third argument to Runner.
Set 'runMigrations: true' in buildDBClient options, or update database schema manually.
Use a persistent file path for long-lived queues.
Use WAL mode on the database file and tune SQLite's busy timeout.
Replace 'timeoutSecs' with 'jobTimeoutSecs' in the Runner options object.
Install better-sqlite3: npm install better-sqlite3
Use named import: import { buildDBClient } from 'liteque'Provide a validator (Zod schema) in Runner's third argument.
Use a file-based database and enable WAL mode: PRAGMA journal_mode=WAL; or reduce concurrency.