Generate and process native .pptx files with the public SDK.
@runstamp/pptx is an internal binding name and is not published on npm.
Install
npm install @runstamp/sdkRequires Node.js >=18.14.1. ESM only.
Quick start
import { runstamp } from "@runstamp/sdk";
import { writeFileSync } from "node:fs";
const input = await fetch("https://runstamp.com/demo-evidence/operation-evidence/pptx/pptx.render/input.json").then(r => r.json());
const result = await runstamp.operations.run("pptx.render", input);
if (!result.ok) throw new Error(result.error.message);
writeFileSync("deck.pptx", result.value.bytes);Core API (workspace-only)
These engine helpers are for Runstamp workspace development. They are not exports of
@runstamp/sdk, and @runstamp/pptx is not on npm. SDK users call runstamp.operations.run.
validate(input): returns{ ok, issues }with actionablepath,code,severity, andfixfields.compileDeclarativeDocument(input): validates coordinate-free layouts and returns a renderablePaperDocument.PaperEngine.render(document, options?): returns aUint8Arrayof the.pptxfile.
For input fields and limits, use runstamp.describe("pptx.render") or see the
PPTX render operation.
Deterministic output
Hosted /api/v2/render and /api/v2/render-pack renders are deterministic by default. The same input gives byte-identical PPTX, DOCX, XLSX or PDF output.
Local operations are deterministic by default. Pass operation options as the
third argument to runstamp.operations.run.
Commercial boundary
All local PPTX rendering ships in @runstamp/sdk.
Pro adds company-wide production support. Managed processing is available to
free-trial workspaces and Platform and Enterprise workspaces through the public V2 operation API.
In Next.js, import Runstamp only from Node.js Route Handlers or server code and declare export const runtime = "nodejs". Current packages pass stock Next.js 15 and 16 server builds without custom externalization. The Next.js integration guide keeps a fallback for unsupported tracing environments.