Node.js 20+ ESM & TypeScript SDK (Native `fetch` + `FormData`)
Built on native Node.js 20+ `fetch` and `Blob` with full TypeScript types — zero external npm dependencies required. Ideal for Next.js App Router API routes, Express, Fastify, NestJS, and Cloudflare/Node queue workers.
Production Reference Implementation
import { readFile, writeFile } from 'node:fs/promises';
import path from 'node:path';
export interface TuneJobInput {
filePath: string;
ecuBrand: string;
ecuFamily: string;
fuelType?: 'diesel' | 'petrol';
services?: string[];
tuningOptions?: string[];
dtcCodes?: string;
webhookUrl?: string;
}
export class DaVinciCloudSDK {
constructor(
private readonly apiKey: string,
private readonly baseUrl = 'https://www.davincideluxe.fr/api/v1/cloud'
) {}
async createJob(input: TuneJobInput) {
const buf = await readFile(input.filePath);
const fd = new FormData();
fd.append('file', new Blob([buf]), path.basename(input.filePath));
fd.append('ecu_brand', input.ecuBrand);
fd.append('ecu_family', input.ecuFamily);
if (input.fuelType) fd.append('fuel_type', input.fuelType);
if (input.services?.length) fd.append('services', JSON.stringify(input.services));
if (input.tuningOptions?.length) fd.append('tuning_options', JSON.stringify(input.tuningOptions));
if (input.dtcCodes) fd.append('dtc_codes', input.dtcCodes);
if (input.webhookUrl) fd.append('webhook_url', input.webhookUrl);
const res = await fetch(`${this.baseUrl}/jobs`, {
method: 'POST',
headers: { Authorization: `Bearer ${this.apiKey}` },
body: fd
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
return res.json() as Promise<{ ok: boolean; job_id: string; status: string; status_url: string }>;
}
async downloadResult(jobId: string, destPath: string) {
const res = await fetch(`${this.baseUrl}/jobs/${jobId}/result`, {
headers: { Authorization: `Bearer ${this.apiKey}` }
});
if (!res.ok) throw new Error(`Download failed: ${res.status}`);
const bytes = new Uint8Array(await res.arrayBuffer());
await writeFile(destPath, bytes);
return bytes.byteLength;
}
}
Explore All 21 Developer & SDK Guides
🛟 24h/7 Live Engineering Support (365 Days / Including All Holidays): Direct step-by-step diagnostics & calibration engineering in every language (live logs, DTC scans, photos, videos & audio supported) until your car, 24V truck, tractor or marine vessel runs 100% flawlessly.
Frequently Asked Technical Questions
Why does DaVinci Deluxe Cloud Edition (v1.0.44) require a 100% virgin original ECU readout?
Processing an unmodified factory original Bench, Boot, or OBD readout guarantees deterministic calibration of torque, DPF, EGR, AdBlue/SCR, OPF, TCU and checksum structures without inheriting corrupted edits from third-party tools.
Which are the 8 official verified domains of DaVinci Deluxe Cloud Edition?
Always verify official access via www.davincideluxe.fr, www.davincideluxe.org, www.davincideluxe.app, www.davincideluxe.software, www.davincideluxe.es, www.davincideluxe.de, www.davincideluxe.it, or www.aesoftech.eu.
Does DaVinci Deluxe Cloud Edition include 24h/7 live technical support on holidays?
Yes. Every active license across Cars, 24V Trucks & Agriculture, and Marine Boats includes 24h/7 live multilingual engineering support 365 days a year, including weekends and all holidays.