office
Generate Microsoft Office documents and PDFs with pure JavaScript, no native dependencies.
- Create DOCX, XLSX, PDF, and PPTX files with TypeScript; all libraries run in Node.js, browsers, and Cloudflare Workers
- DOCX supports paragraphs, tables, images, and text formatting; XLSX handles formulas, multiple sheets, and JSON-to-sheet conversion
- PDF includes text, shapes, images, form filling, and page merging; PPTX covers slides, charts, tables, and master layouts
- Common pitfalls: remember PDF coordinates start at bottom-left, always await
Packer.toBuffer()for DOCX, use base64 images in Workers instead of remote URLs
Office Document Generation
Status: Production Ready Last Updated: 2026-01-12 Dependencies: None (pure JavaScript libraries) Latest Versions: docx@9.5.0, xlsx@0.18.5, pdf-lib@1.17.1, pptxgenjs@4.0.1
Overview
Generate Microsoft Office documents and PDFs programmatically with TypeScript. All libraries are pure JavaScript with zero native dependencies, enabling universal runtime support:
| Format | Library | Workers | Browser | Node.js |
|---|---|---|---|---|
| DOCX | docx |
✅ | ✅ | ✅ |
| XLSX | xlsx (SheetJS) |
✅ | ✅ | ✅ |
pdf-lib |
✅ | ✅ | ✅ | |
| PPTX | pptxgenjs |
⚠️* | ✅ | ✅ |
More from jezweb/claude-skills
tailwind-v4-shadcn
|
2.7Ktanstack-query
|
2.5Kshadcn-ui
Install and configure shadcn/ui components for React projects. Guides component selection, installation order, dependency management, customisation with semantic tokens, and common UI recipes (forms, data tables, navigation, modals). Use after tailwind-theme-builder has set up the theme infrastructure, when adding components, building forms, creating data tables, or setting up navigation.
2.5Ktailwind-theme-builder
>
2.2Kfastapi
|
2.0Kcolor-palette
>
1.9K