
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
office-open
Advanced tools
Unified Office document toolkit — CLI, AI SDK tools, Zod schemas, and all packages in one install
Umbrella package for Office Open XML — all packages, CLI, AI SDK tools, and Zod schemas in one install.
office-open/docx, office-open/pptx, office-open/xlsxnpx office-opengenerate-docx, generate-pptx, generate-xlsxgenerate() for dynamic document creation# pnpm
pnpm add office-open
# npm
npm install office-open
# yarn
yarn add office-open
# bun
bun add office-open
import { generate, generateToFile } from "office-open/generate";
const buffer = await generate({
type: "docx",
options: {
sections: [
{
children: [{ paragraph: "Hello World" }],
},
],
},
outputType: "nodebuffer",
});
# Generate from a JSON file
npx office-open docx document.json "output.docx"
npx office-open pptx slides.json "output.pptx"
npx office-open xlsx spreadsheet.json "output.xlsx"
import { officeOpenTools } from "office-open/ai";
// Use with Vercel AI SDK
const result = await generateText({
model,
tools: officeOpenTools,
prompt: "Create a sales report as a .docx file",
});
import { validateDocumentInput } from "office-open/schemas";
try {
const validated = validateDocumentInput("docx", userInput);
} catch (e) {
// Structured validation error with path and message
}
import { generateDocument, parseDocument, patchDocument } from "office-open/docx";
import { generatePresentation, parsePresentation, patchPresentation } from "office-open/pptx";
import { generateWorkbook, parseWorkbook, patchWorkbook } from "office-open/xlsx";
import { convertInchesToTwip } from "office-open/core";
import { xml2js, js2xml } from "office-open/xml";
| Export Path | Description |
|---|---|
office-open | Main entry (re-exports all sub-packages) |
office-open/docx | @office-open/docx |
office-open/pptx | @office-open/pptx |
office-open/xlsx | @office-open/xlsx |
office-open/core | @office-open/core |
office-open/xml | @office-open/xml |
office-open/generate | generate() function |
office-open/ai | Vercel AI SDK tools |
office-open/schemas | Zod validation schemas |
{
"sections": [{ "children": [{ "paragraph": "Hello World" }] }]
}
{
"title": "My Deck",
"slides": [{ "children": [{ "shape": { "textBody": { "text": "Hello" } } }] }]
}
{
"worksheets": [{ "rows": [{ "cells": [{ "value": "Name" }, { "value": 95 }] }] }]
}
MIT
FAQs
Unified Office document toolkit — CLI, AI SDK tools, Zod schemas, and all packages in one install
The npm package office-open receives a total of 537 weekly downloads. As such, office-open popularity was classified as not popular.
We found that office-open 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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.