azukijs
v1.0.0
Published
The official Node.js SDK for Azuki background job engine.
Downloads
99
Readme
Azuki SDK
The official Node.js SDK for Azuki background job engine.
Installation
npm install azuki-sdkUsage
Initialize the client
import { Azuki } from "azuki-sdk";
const azuki = new Azuki({
baseUrl: "http://localhost:8787"
});Enqueue a job
const job = await azuki.enqueue("send-email", {
to: "[email protected]",
subject: "Welcome!",
body: "Thanks for joining Azuki."
}, {
maxRetries: 5
});
console.log(`Job enqueued with ID: ${job.id}`);Features
- Simple API: Easy to enqueue jobs with a single call.
- Typed: Full TypeScript support.
- Lightweight: Zero dependencies (uses native
fetch). - Flexible: Configure retries and scheduling per job.
