Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

doppio-nodejs

Latest version: v0.10.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: renaudl
4 Stars
0 Forks
1 Versions
43 Downloads
TypeScript Repo language

Scan summary

doppio-nodejs was last scanned on 27 Nov 2026 at version 0.10.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 27 Nov 2026.
  • Findings: No rules fired in version 0.10.0.
  • Downloads: 43 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.10.0 LATEST 27 Nov 2026 No rules fired

No rules fired in 0.10.0

Findings

Findings for v0.10.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.10.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Doppio.sh Node.js SDK

npm version CI license

The official TypeScript SDK for Doppio. Render PDFs and screenshots from HTML or URLs, and render your stored templates.

  • No dependencies. It relies on the platform fetch, so it runs on Node.js, Bun, Deno and edge runtimes.
  • ESM and CommonJS builds, with TypeScript types.
  • Typed errors, timeouts, cancellation and opt-in retries.

Install

npm install doppio-nodejs

Requires Node.js 18 or later. Node.js 22 or later is recommended, because older versions no longer get security updates.

Quick start

import { writeFile } from 'node:fs/promises';
import { Doppio } from 'doppio-nodejs';

const doppio = new Doppio(process.env.DOPPIO_API_KEY);

const pdf = await doppio.renderPdfDirect({
  goto: {
    url: 'https://example.com',
    options: { waitUntil: ['networkidle0'] },
  },
  pdf: { format: 'A4', printBackground: true },
});

await writeFile('example.pdf', new Uint8Array(pdf));

const { Doppio } = require('doppio-nodejs') works too.

Render methods

Method Resolves with
renderPdfDirect(page, options?) the PDF, as an ArrayBuffer
renderScreenshotDirect(page, options?) the image, as an ArrayBuffer
renderPdfSync(page, options?) a DoppioResponse whose documentUrl points to the PDF
renderScreenshotSync(page, options?) a DoppioResponse whose documentUrl points to the image
renderPdfAsync(page, options?) { requestId, jobId }, then Doppio calls your webhook
renderScreenshotAsync(page, options?) { requestId, jobId }, then Doppio calls your webhook
renderTemplateDirect(template, options?) the document, as an ArrayBuffer
renderTemplateSync(template, options?) a DoppioResponse
renderTemplateAsync(template, options?) { requestId, jobId }
getStatistics(options?) the render counts of your organization for the current month

A page comes either from a URL (goto) or from HTML (setContent), never both. The API expects the HTML in base64, which encodeBase64() produces for any Unicode text:

import { Doppio, encodeBase64 } from 'doppio-nodejs';

const doppio = new Doppio(process.env.DOPPIO_API_KEY);

const image = await doppio.renderScreenshotDirect({
  setContent: { html: encodeBase64('<h1>Hello from Doppio</h1>') },
  screenshot: { type: 'png', fullPage: true },
});

The API documentation describes every page, PDF and screenshot option.

A template render takes the templateId of a stored template, and optional templateData:

const invoice = await doppio.renderTemplateSync({
  templateId: '80d89528-5d3d-4310-be1a-efc349389841',
  templateData: { DOP_name: 'Ada' },
});

console.log(invoice.documentUrl);

Configuration

Client-wide settings go to the constructor:

import { Doppio } from 'doppio-nodejs';

const doppio = new Doppio({
  apiKey: process.env.DOPPIO_API_KEY,
  timeout: 60_000, // milliseconds, retries included
  maxRetries: 2, // after a 429, 502 or 503 response
  doppio: { contentDisposition: 'inline' },
  launch: { defaultViewport: { width: 1280, height: 800 } },
});

Each method also accepts these settings for a single call. The doppio and launch configs are merged over the client ones:

const controller = new AbortController();

await doppio.renderPdfSync(page, {
  signal: controller.signal,
  timeout: 10_000,
  doppio: {
    presignedUrl:
      'https://my-bucket.s3.amazonaws.com/report.pdf?X-Amz-Signature=…',
  },
});

Retries only apply to 429, 502 and 503 responses, because the API did not process those requests. The client waits for the Retry-After delay when the API sends one, up to 30 seconds.

Errors

Every method rejects with a subclass of DoppioError:

Error Thrown when Useful properties
DoppioAPIError the API answers with an error status status, code, messages, body, headers
DoppioTimeoutError the call takes longer than its timeout timeout
DoppioConnectionError the API cannot be reached cause
DoppioError the input is invalid, such as goto and setContent together

Aborting a call through its signal rejects with the signal's reason instead.

Messages are meant for humans and can change, so branch on code, listed in the API documentation:

import { DoppioAPIError } from 'doppio-nodejs';

try {
  await doppio.renderPdfSync(page);
} catch (error) {
  if (
    error instanceof DoppioAPIError &&
    error.code === 'MONTHLY_QUOTA_REACHED'
  ) {
    showUpgradeBanner();
  } else {
    throw error;
  }
}

Async renders and webhooks

An async render needs a webhook, which Doppio calls once the document is ready:

const { requestId } = await doppio.renderPdfAsync(page, {
  doppio: {
    webhook: { url: 'https://example.com/doppio-webhook', method: 'POST' },
  },
});

Doppio signs each webhook call. Check the signature against the raw body before trusting the payload. This handler uses the standard Request and Response objects of Next.js, Hono, Bun, Deno and Cloudflare Workers:

import {
  type DoppioWebhookPayload,
  verifyWebhookSignature,
} from 'doppio-nodejs';

export async function POST(request: Request): Promise<Response> {
  const body = await request.text();
  const valid = await verifyWebhookSignature({
    payload: body,
    signature: request.headers.get('x-doppio-payload-signature'),
    secret: process.env.DOPPIO_WEBHOOK_SECRET,
  });
  if (!valid) return new Response('Invalid signature', { status: 401 });

  const result: DoppioWebhookPayload = JSON.parse(body);
  // result.doppioRequestId is the requestId returned by renderPdfAsync
  return new Response(null, { status: 204 });
}

Debugging and usage

debug: true sends the browser console output back with sync renders:

const { consoleOutput } = await doppio.renderPdfSync(page, { debug: true });

onResponse receives the headers of every response, from which parseUsageHeaders() reads the rate limit and the monthly quota. getStatistics() returns the counts of the current month:

import { parseUsageHeaders } from 'doppio-nodejs';

await doppio.renderPdfSync(page, {
  onResponse: ({ headers }) => {
    const { monthlyRemaining } = parseUsageHeaders(headers);
    console.log(`${monthlyRemaining} renders left this month`);
  },
});

const { data } = await doppio.getStatistics();
console.log(
  `${data.successCount} successful renders in ${data.month}/${data.year}`
);

Upgrading from 0.9

Existing calls keep working. Three behaviors changed:

  • API errors other than 400 now carry the message of the API instead of HTTP error! status: N. Use status and code on DoppioAPIError rather than the message. Every error is still an instance of DoppioError.
  • A doppio config passed to a template render is merged with the client config instead of replacing it.
  • doppio() and launch() are deprecated. The config they set applies to every later call of the client, which is error-prone when one client serves concurrent requests. Pass these configs to the constructor or to a single call instead.

Contributing

See CONTRIBUTING.md. To report a vulnerability, follow SECURITY.md.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm doppio-nodejs

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229