{"id":16218009,"url":"https://github.com/gitbrent/pptxgenjs","last_synced_at":"2025-05-14T12:02:47.220Z","repository":{"id":6219177,"uuid":"52322425","full_name":"gitbrent/PptxGenJS","owner":"gitbrent","description":"Create PowerPoint presentations with a powerful, concise JavaScript API.","archived":false,"fork":false,"pushed_at":"2025-04-29T04:18:01.000Z","size":111119,"stargazers_count":3377,"open_issues_count":234,"forks_count":693,"subscribers_count":67,"default_branch":"master","last_synced_at":"2025-04-30T12:42:13.660Z","etag":null,"topics":["angular-powerpoint","es6-powerpoint","html-to-powerpoint","javascript","javascript-powerpoint","node-powerpoint","powerpoint","powerpoint-charts","powerpoint-generation","powerpoint-library","powerpoint-presentations","pptx","react-powerpoint","typescript-powerpoint"],"latest_commit_sha":null,"homepage":"https://gitbrent.github.io/PptxGenJS/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitbrent.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-02-23T02:15:29.000Z","updated_at":"2025-04-30T01:35:31.000Z","dependencies_parsed_at":"2023-02-12T19:45:17.016Z","dependency_job_id":"ce7b3d84-7465-4830-9469-2a7329a51776","html_url":"https://github.com/gitbrent/PptxGenJS","commit_stats":{"total_commits":3012,"total_committers":69,"mean_commits":43.65217391304348,"dds":0.6457503320053121,"last_synced_commit":"035cf6b26239e2ea1f27eefbcdb8134e504eb4f4"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitbrent%2FPptxGenJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitbrent%2FPptxGenJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitbrent%2FPptxGenJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitbrent%2FPptxGenJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitbrent","download_url":"https://codeload.github.com/gitbrent/PptxGenJS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252771933,"owners_count":21801816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular-powerpoint","es6-powerpoint","html-to-powerpoint","javascript","javascript-powerpoint","node-powerpoint","powerpoint","powerpoint-charts","powerpoint-generation","powerpoint-library","powerpoint-presentations","pptx","react-powerpoint","typescript-powerpoint"],"created_at":"2024-10-10T11:48:12.783Z","updated_at":"2025-05-06T21:31:05.483Z","avatar_url":"https://github.com/gitbrent.png","language":"TypeScript","readme":"# PptxGenJS\n\n![PptxGenJS Sample Slides](https://raw.githubusercontent.com/gitbrent/PptxGenJS/gh-pages/img/readme_banner.png)\n\n![jsdelivr downloads](https://data.jsdelivr.com/v1/package/gh/gitbrent/pptxgenjs/badge)\n![NPM Downloads](https://img.shields.io/npm/dm/pptxgenjs?style=flat-square)\n![GitHub Repo stars](https://img.shields.io/github/stars/gitbrent/pptxgenjs?style=flat-square)\n![GitHub License](https://img.shields.io/github/license/gitbrent/pptxgenjs?style=flat-square)\n![TypeScript defs](https://img.shields.io/npm/types/pptxgenjs?style=flat-square)\n\n## 🚀 Features\n\n**PptxGenJS lets you generate professional PowerPoint presentations in JavaScript - directly from Node, React, Vite, Electron, or even the browser.**\nThe library outputs standards-compliant Open Office XML (OOXML) files compatible with:\n\n- ✅ Microsoft PowerPoint\n- ✅ Apple Keynote\n- ✅ LibreOffice Impress\n- ✅ Google Slides (via import)\n\nDesign custom slides, charts, images, tables, and templates programmatically - no PowerPoint install or license required.\n\n### Works Everywhere\n\n- Supports every major modern browser - desktop and mobile\n- Seamlessly integrates with **Node.js**, **React**, **Angular**, **Vite**, and **Electron**\n- Compatible with **PowerPoint**, **Keynote**, **LibreOffice**, and other OOXML apps\n\n### Full-Featured\n\n- Create all major slide objects: **text, tables, shapes, images, charts**, and more\n- Define custom **Slide Masters** for consistent academic or corporate branding\n- Supports **SVGs**, **animated GIFs**, **YouTube embeds**, **RTL text**, and **Asian fonts**\n\n### Simple \u0026 Powerful\n\n- Ridiculously easy to use - create a presentation in 4 lines of code\n- Full **TypeScript definitions** for autocomplete and inline documentation\n- Includes **75+ demo slides** covering every feature and usage pattern\n\n### Export Your Way\n\n- Instantly download `.pptx` files from the browser with proper MIME handling\n- Export as **base64**, **Blob**, **Buffer**, or **Node stream**\n- Supports compression and advanced output options for production use\n\n### HTML to PowerPoint Magic\n\n- Convert any HTML `\u003ctable\u003e` to one or more slides with a single line of code → [Explore the HTML-to-PPTX feature](#html-to-powerpoint-magic)\n\n## 🌐 Live Demos\n\nTry PptxGenJS right in your browser - no setup required.\n\n- [Basic Slide Demo](https://gitbrent.github.io/PptxGenJS/demos/) - Build a basic presentation in seconds\n- [Full Feature Showcase](https://gitbrent.github.io/PptxGenJS/demo/browser/index.html) - Explore every available feature\n\n\u003e Perfect for testing compatibility or learning by example - all demos run 100% in the browser.\n\n## 📦 Installation\n\nChoose your preferred method to install **PptxGenJS**:\n\n### Quick Install (Node-based)\n\n```bash\nnpm install pptxgenjs\n```\n\n```bash\nyarn add pptxgenjs\n```\n\n### CDN (Browser Usage)\n\nUse the bundled or minified version via [jsDelivr](https://www.jsdelivr.com/package/gh/gitbrent/pptxgenjs):\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/gitbrent/pptxgenjs/dist/pptxgen.bundle.js\"\u003e\u003c/script\u003e\n```\n\n\u003e Includes the sole dependency (JSZip) in one file.\n\n📁 Advanced: Separate Files, Direct Download\n\nDownload from GitHub: [Latest Release](https://github.com/gitbrent/PptxGenJS/releases/latest)\n\n```html\n\u003cscript src=\"PptxGenJS/libs/jszip.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"PptxGenJS/dist/pptxgen.min.js\"\u003e\u003c/script\u003e\n```\n\n## 🚀 Universal Compatibility\n\nPptxGenJS works seamlessly in **modern web and Node environments**, thanks to dual ESM and CJS builds and zero runtime dependencies. Whether you're building a CLI tool, an Electron app, or a web-based presentation builder, the library adapts automatically to your stack.\n\n### Supported Platforms\n\n- **Node.js** – generate presentations in backend scripts, APIs, or CLI tools\n- **React / Angular / Vite / Webpack** – just import and go, no config required\n- **Electron** – build native apps with full filesystem access and PowerPoint output\n- **Browser (Vanilla JS)** – embed in web apps with direct download support\n- **Serverless / Edge Functions** – use in AWS Lambda, Vercel, Cloudflare Workers, etc.\n\n\u003e _Vite, Webpack, and modern bundlers automatically select the right build via the `exports` field in `package.json`._\n\n### Builds Provided\n\n- **CommonJS**: [`dist/pptxgen.cjs.js`](./dist/pptxgen.cjs.js)\n- **ES Module**: [`dist/pptxgen.es.js`](./dist/pptxgen.es.js)\n\n## 📖 Documentation\n\n### Quick Start Guide\n\nPptxGenJS PowerPoint presentations are created via JavaScript by following 4 basic steps:\n\n#### Angular/React, ES6, TypeScript\n\n```typescript\nimport pptxgen from \"pptxgenjs\";\n\n// 1. Create a new Presentation\nlet pres = new pptxgen();\n\n// 2. Add a Slide\nlet slide = pres.addSlide();\n\n// 3. Add one or more objects (Tables, Shapes, Images, Text and Media) to the Slide\nlet textboxText = \"Hello World from PptxGenJS!\";\nlet textboxOpts = { x: 1, y: 1, color: \"363636\" };\nslide.addText(textboxText, textboxOpts);\n\n// 4. Save the Presentation\npres.writeFile();\n```\n\n#### Script/Web Browser\n\n```javascript\n// 1. Create a new Presentation\nlet pres = new PptxGenJS();\n\n// 2. Add a Slide\nlet slide = pres.addSlide();\n\n// 3. Add one or more objects (Tables, Shapes, Images, Text and Media) to the Slide\nlet textboxText = \"Hello World from PptxGenJS!\";\nlet textboxOpts = { x: 1, y: 1, color: \"363636\" };\nslide.addText(textboxText, textboxOpts);\n\n// 4. Save the Presentation\npres.writeFile();\n```\n\nThat's really all there is to it!\n\n## 💥 HTML-to-PowerPoint Magic\n\nConvert any HTML `\u003ctable\u003e` into fully formatted PowerPoint slides - automatically and effortlessly.\n\n```javascript\nlet pptx = new pptxgen();\npptx.tableToSlides(\"tableElementId\");\npptx.writeFile({ fileName: \"html2pptx-demo.pptx\" });\n```\n\nPerfect for transforming:\n\n- Dynamic dashboards and data reports\n- Exportable grids in web apps\n- Tabular content from CMS or BI tools\n\n[View Full Docs \u0026 Live Demo](https://gitbrent.github.io/PptxGenJS/html2pptx/)\n\n## 📚 Full Documentation\n\nComplete API reference, tutorials, and integration guides are available on the official docs site: [https://gitbrent.github.io/PptxGenJS](https://gitbrent.github.io/PptxGenJS)\n\n## 🛠️ Issues / Suggestions\n\nPlease file issues or suggestions on the [issues page on github](https://github.com/gitbrent/PptxGenJS/issues/new), or even better, [submit a pull request](https://github.com/gitbrent/PptxGenJS/pulls). Feedback is always welcome!\n\nWhen reporting issues, please include a code snippet or a link demonstrating the problem.\nHere is a small [jsFiddle](https://jsfiddle.net/gitbrent/L1uctxm0/) that is already configured and uses the latest PptxGenJS code.\n\n## 🆘 Need Help?\n\nSometimes implementing a new library can be a difficult task and the slightest mistake will keep something from working. We've all been there!\n\nIf you are having issues getting a presentation to generate, check out the code in the `demos` directory. There\nare demos for browser, node and, react that contain working examples of every available library feature.\n\n- Use a pre-configured jsFiddle to test with: [PptxGenJS Fiddle](https://jsfiddle.net/gitbrent/L1uctxm0/)\n- [View questions tagged `PptxGenJS` on StackOverflow](https://stackoverflow.com/questions/tagged/pptxgenjs?sort=votes\u0026pageSize=50). If you can't find your question, [ask it yourself](https://stackoverflow.com/questions/ask?tags=PptxGenJS) - be sure to tag it `pptxgenjs`.\n- Ask your AI pair programmer! All major LLMs have ingested the pptxgenjs library and have the ability to answer functionality questions and provide code.\n\n## 🙏 Contributors\n\nThank you to everyone for the contributions and suggestions! ❤️\n\nSpecial Thanks:\n\n- [Dzmitry Dulko](https://github.com/DzmitryDulko) - Getting the project published on NPM\n- [Michal Kacerovský](https://github.com/kajda90) - New Master Slide Layouts and Chart expertise\n- [Connor Bowman](https://github.com/conbow) - Adding Placeholders\n- [Reima Frgos](https://github.com/ReimaFrgos) - Multiple chart and general functionality patches\n- [Matt King](https://github.com/kyrrigle) - Chart expertise\n- [Mike Wilcox](https://github.com/clubajax) - Chart expertise\n- [Joonas](https://github.com/wyozi) - [react-pptx](https://github.com/wyozi/react-pptx)\n\nPowerPoint shape definitions and some XML code via [Officegen Project](https://github.com/Ziv-Barber/officegen)\n\n## 🌟 Support the Open Source Community\n\nIf you find this library useful, consider contributing to open-source projects, or sharing your knowledge on the open social web. Together, we can build free tools and resources that empower everyone.\n\n[@gitbrent@fosstodon.org](https://fosstodon.org/@gitbrent)\n\n## 📜 License\n\nCopyright \u0026copy; 2015-present [Brent Ely](https://github.com/gitbrent/)\n\n[MIT](https://github.com/gitbrent/PptxGenJS/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbrent%2Fpptxgenjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitbrent%2Fpptxgenjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbrent%2Fpptxgenjs/lists"}