Installation
Install pptxgenjs using one of the following methods.
Quick Install (Node-based)
JSX (optional)
The workspace package pptxgenjs-plus-jsx wraps this library in a declarative JSX tree (<Deck>, <Slide>, <Text>, charts, shapes, …). From this repo it is already linked via Bun workspaces. From npm:
See packages/pptxgenjs-jsx/README.md for jsxImportSource setup and the component API.
CDN (Browser Usage)
Use the bundled or minified version via jsDelivr:
Includes the sole dependency (JSZip) in one file.
The CDN path resolves against the npm package.
dist/is not committed to git, so acdn.jsdelivr.net/gh/...path against this repository does not resolve.
Advanced: separate files, direct download.
Direct download
Every release attaches the built bundles as release assets, so no build toolchain is needed:
pptxgen.bundle.js- library + JSZip in one filepptxgen.min.js- minified library (load JSZip separately)pptxgen.cjs.js/pptxgen.es.js- CommonJS and ES module builds
Building from a git checkout also works: bun ci runs the build via the prepare script.
Source Code and Examples
Download from GitHub: Latest Release