Repository avatar
Other Tools
v0.13.20
active

artiwright

io.github.bvenu17/artiwright

Create PowerPoint decks and Excel workbooks with live charts, tables and formulas.

Documentation

Artiwright

Give your agent an office.

An open-source toolkit for AI agents that create, edit and check native PowerPoint and Excel files, with live charts, tables and formulas, on your own templates.

npm PyPI CI License: Apache-2.0

Website · Docs · Integrations · Use cases · Changelog

A slide made with Artiwright, shown in PowerPoint: a native column chart of new ARR by segment with key takeaways A workbook made with Artiwright, shown in Excel: a twelve-month forecast with live formulas, a table and a native line chart

Made by Artiwright, as PowerPoint and Excel show them. The charts, the table and the formulas are native and editable.

Artiwright plugs into the agent you already have. Your app and your agents stay as they are; Artiwright joins them as tools, or as one more agent, and hands back files your app already knows how to serve. The agent builds the deck or workbook, looks at every page, fixes what lint finds (text running out of its box, overlaps, broken formulas) and saves a file that opens cleanly in PowerPoint and Excel. It works with your framework and the model you choose, on your own servers.

Get started

In your Python agents. Google ADK gets a ready-made agent for your router's sub-agents:

pip install "artiwright[adk]"
from artiwright.adk import artiwright_agent
from google.adk.agents import LlmAgent

docs = artiwright_agent(root="/srv/artiwright-sessions", model=MODEL, theme="ledger")
root_agent = LlmAgent(name="router", model=MODEL, sub_agents=[docs, research])

LangGraph and LangChain get the tools and the instruction, one session per thread:

pip install "artiwright[langgraph]"
from artiwright.langgraph import INSTRUCTION, agent_tools, get_tools
from langgraph.prebuilt import create_react_agent

tools = agent_tools(await get_tools(root="/srv/artiwright-sessions", session=thread_id))
agent = create_react_agent(model, tools, prompt=INSTRUCTION)

pip install brings its own Node.js, so there's nothing else to set up.

In your own product (Node.js), for features like "export to deck" or a nightly report, with no model needed:

npm install artiwright
import { ChartTakeaway, Presentation, compose } from "artiwright";

const deck = Presentation.create({ theme: "spruce" });
compose(deck.slides.add(), ChartTakeaway({
  title: "Enterprise drove two thirds of new ARR",
  chart: { type: "column", categories: ["Q1", "Q2", "Q3"], series: [{ name: "Enterprise", values: [4.1, 5.3, 7.2] }] },
  takeaways: ["Enterprise up 36% on Q2"],
}));
console.log(deck.lint().findings);   // what to fix before handing it over
await deck.save("q3-review.pptx");

In any MCP client: your internal assistant, an IDE agent, or an AI app. It's also the quickest way to try it. In Claude Code:

claude mcp add --transport stdio --scope user artiwright -- npx -y artiwright@latest mcp

Then ask: "Make a five-slide quarterly review from this CSV, with a native chart." The finished file is saved in the folder you're working in. Codex, Cursor and Antigravity are in the quickstart; VS Code and other apps in the MCP guide.

Node.js 22.13 or newer; Python 3.11 or newer. Installation has every option, including the HTTP server and the Docker image.

What your agent gets

  • Native charts and tables, in your theme. Charts keep their numbers inside the file, so anyone can edit the data in PowerPoint. Tables are real tables, not text boxes in a grid.
  • Live formulas. Workbooks come with inputs, formulas and charts that update when a number changes in Excel. 494 Excel functions compute as the agent writes.
  • It checks its own work. The agent sees every slide and sheet as an image, runs 35 lint rules, fixes what they find and checks again. Finalize runs Microsoft's Open XML validator and refuses a file that still has errors.
  • Edits your files. Open a deck, a workbook or your company template and ask for one change; everything else, SmartArt, video and embedded objects included, stays exactly as it was.
  • Your look, set once. Five theme presets, a theme from your brand color, or your own template.
  • The last step of your pipeline. Your agents research and cite; hand Artiwright the answer and it makes the deck. See it run.

How it's tested

ClaimTest
Every chart type passes Microsoft's Open XML validator, and the numbers it shows match its data sheet cell for cell.ChartTests.cs
177 formulas recalculated and compared with the answers Excel saved for them.functions-excel.test.ts
Each lint rule is tested on a file with its problem planted in it, and on clean files where it must find nothing.Decks · workbooks
Lines break where PowerPoint breaks them in 49 of 51 text boxes of a 9-slide test deck.powerpoint.test.ts
23 PowerPoint and Excel files from Apache POI's test suite each open, save back unchanged byte for byte, and take an edit without new errors.seed.test.ts

Works with

Agent frameworksGoogle ADK · LangGraph · your agent pipelinepip install "artiwright[adk]" or "artiwright[langgraph]"
Your own code and serversNode.js · HTTP server · Dockernpm install artiwright
AI appsClaude · Codex · Cursor · VS Code · Antigravity · any MCP clientnpx -y artiwright@latest mcp

Real runs

Every use case is one real agent session, with the files it was handed, every call it made and the files it saved, opened in PowerPoint and Excel. A few of them:

Runs inTime
Hand a research pipeline's cited answer to Artiwright, get the deckGoogle ADK2 min
Close the month in a day: flash P&L, EBITDA bridge and reforecastLangGraph7 min
Build the three-statement LBO model and the IC deck for MondayLangGraph5 min
Turn a billing export into the board's SaaS metrics packLangGraph9 min
A monthly S&OP pack with a one-number plan and reorder pointsGoogle ADK5 min
Refresh a client's monthly report without breaking its brandClaude3 min

What it covers

DecksThemes, layouts, all 187 Office shapes, text, tables, pictures, connectors, notes and comments; 21 chart types including waterfall, treemap and box plots; flowchart, sequence, Gantt and other diagrams; code blocks and equations; 21 ready-made slide recipes
WorkbooksLive formulas (494 functions, dynamic arrays, LAMBDA), tables, conditional formats, validation lists, pivot tables, sparklines, native charts, print setup; CSV, Markdown and HTML import
Existing filesOpen .pptx, .potx, .xlsx and .xltx; edits go into a copy of the original, and an unedited save is byte for byte identical
ChecksEvery page as an image, layout data, 35 lint rules (26 for decks, 9 for workbooks), and finalize with Microsoft's Open XML validator and your stated requirements

Word documents and PDF are planned.

How it works

your agent ──MCP / Python / TypeScript──▶ Artiwright
                                           ├─ tools: run · apply · open · import · render · inspect · lint · finalize · undo
                                           ├─ renderer: every page as an image the agent can see
                                           ├─ document model shared by every part
                                           └─ engine: Open XML, compiled to WebAssembly ──▶ .pptx / .xlsx

The agent writes short code against Artiwright's API (or sends JSON operations), looks at the rendered pages, fixes what lint names, and finalizes. Each conversation gets its own session folder, with undo. How it fits shows where it sits next to your app, your agents and their model, for each setup.

Where it runs and what it sends

  • On your machine, your servers or your container. There's no Artiwright cloud and no account to make. Your agent talks to its own model, as it already does.
  • Artiwright never calls a model and sends no telemetry. The only request it makes is the Python package's one-time download of its JavaScript dependencies from npm.
  • Agent code runs in a separate sandbox per session, limited to that session's folder, with no network. See SECURITY.md for what the sandbox does and doesn't cover.
  • Apache-2.0, free in commercial products. The fonts it ships are under the OFL.

Get help

ForGo to
How to use itartiwright.com/docs
A bug, or a file that came out wrongOpen an issue (attach the file if you can)
A security problemPrivately, as SECURITY.md describes

Contributing

Issues are welcome. Pull requests aren't accepted, to keep the design consistent; see CONTRIBUTING.md and docs/development.md to build it yourself.

License

Apache-2.0. Created by Venugopal Balaji. See LICENSE and NOTICE.

Microsoft, PowerPoint and Excel are trademarks of the Microsoft group of companies. Other names are trademarks of their owners, used only to say what Artiwright works with. Artiwright is an independent project, not affiliated with or endorsed by them.

NPM
artiwright
Install Command
npm install artiwright
Runtime: npx