Before installing, ensure your system meets these requirements:
Node.js 22.19.0 or later - Required for native TypeScript support
Redis 7+ or Valkey 8+ - Optional, only if using RedisStorage backend
Platformatic Job Queue uses Node.js 22.19+‘s native TypeScript type stripping feature, which provides zero-overhead type safety without a build step for TypeScript files.
Verify your installation by creating a simple test file:
1
Create a test file
Create a new file called test-queue.ts:
test-queue.ts
import { Queue, MemoryStorage } from '@platformatic/job-queue'const storage = new MemoryStorage()const queue = new Queue({ storage })console.log('Platformatic Job Queue installed successfully!')
2
Run the test
Execute the file with Node.js:
node --experimental-strip-types test-queue.ts
You should see:
Platformatic Job Queue installed successfully!
Node.js 22.19+ requires the --experimental-strip-types flag to run TypeScript files directly. For production, you should compile TypeScript to JavaScript using tsc or your preferred build tool.