
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
pptx-template-engine
Advanced tools
Generate PPTX files from templates using semantic text and image placeholders.
Generate PowerPoint (PPTX) reports dynamically using templates with semantic text and image placeholders.
powerpoint, pptx, pptx-generator, powerpoint-generator, pptx-template, report-generator, automated-reports, office-open-xml, ooxml, node-pptx, browser-pptx
pptx-template-engine is a lightweight JavaScript/TypeScript library for automated PowerPoint report generation.
It works with a pre-designed PPTX template and replaces:
{company_name}chart:sales_chartUnlike index-based approaches, this library uses semantic keys, making templates stable even when slides or layouts change.
{placeholder} syntaxchart:key)pptx-generate, pptx-lint)Uint8Array)npm install pptx-template-engine
{report_month}chart:sales_chart)Use placeholders directly in PowerPoint text boxes:
{company_name}
{report_month}
{total_sales}
chart:sales_chart
Supported formats:
const fs = require("fs");
const { generatePPT } = require("pptx-template-engine");
(async () => {
const template = fs.readFileSync("./template.pptx");
const chart = fs.readFileSync("./sales-chart.png");
const pptx = await generatePPT({
template,
text: {
company_name: "Acme Corporation",
report_month: "December 2025",
total_sales: "$1.2M"
},
images: {
sales_chart: chart
}
});
fs.writeFileSync("sales-report.pptx", Buffer.from(pptx));
})();
import { generatePPT } from "pptx-template-engine";
const pptx = await generatePPT({
template: templateArrayBuffer,
text: {
company_name: "Acme Corporation",
report_month: "December 2025"
},
images: {
sales_chart: chartBlob
}
});
const blob = new Blob([pptx], {
type: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
});
const { generatePPTFromFile } = require("pptx-template-engine/node");
await generatePPTFromFile({
templatePath: "./template.pptx",
outputPath: "./report.pptx",
text: require("./text.json"),
images: require("./images.json"),
strict: true
});
pptx-generate --template template.pptx --out report.pptx --text text.json --images images.json --strict
pptx-lint --template template.pptx --manifest template.manifest.json
{
"text": ["company_name", "report_month", "total_sales"],
"images": ["sales_chart"]
}
generatePPT(options): Promise<Uint8Array>
MIT
FAQs
Generate PPTX files from templates using semantic text and image placeholders.
We found that pptx-template-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.