OpenDoc is an open-source document production framework for creating beautiful, consistent PDFs and presentations with any agent.
Bring a brief, your sources, and the agent you already use. OpenDoc gives it a shared design system, reusable templates, and a document engine to turn that material into work you can confidently share—from a two-page proposal to a report series or an editable slide deck.
Work together in the browser, or let an agent produce the finished files entirely on its own machine. Your documents, themes, templates, and assets stay in a workspace you control.
Get started · Skills · Templates · Themes · Examples · Agent guide · MIT license
- Beautiful PDFs. Compose real typography, flowing text, tables, references, imagery, and full-page artwork. Review the actual rendered pages before sharing.
- Editable presentations. Create 16:9 decks and export both PDF and PowerPoint, with native text, shapes, images, and supported embedded fonts.
- Consistency across projects. Reuse themes, fonts, logos, and templates so the next report feels like it belongs with the last one.
- A complete starting library. Adapt the included templates, explore five themes, or ask your agent to create a design of your own.
- An easy review loop. In the browser, correct text directly, leave comments on specific content, and have your agent apply the feedback. Stable identities keep feedback attached through revisions.
- Arabic and English. Write in English, Arabic, or both on one page or slide. Arabic text that the document's fonts cannot draw falls back to the bundled Noto Naskh Arabic, and review flags any character no font covers, which prints as
?. - Version history. Every saved edit and agent change is kept for 90 days. Restore one paragraph, one section, or a whole earlier version, and undo any restore.
- Organized work. Group documents into projects, give each a type and status, and find work by type, status, detected language, or your own tags.
- Share reusable designs. Export themes and templates as portable design packs, with their source, assets, and PDF previews; install them into another OpenDoc workspace.
- Files you own. Keep editable source, project records, and media alongside your exports. Use the same commands locally or in an agent's remote environment.
Both editions share the same engine, authoring API, templates, themes, fonts, and examples. Choose how you want to work.
| OpenDoc | OpenDoc Headless | |
|---|---|---|
| Best for | Working alongside an agent with a visual workspace | Asking an agent to produce and deliver finished files |
| Runs on | Your computer | The agent's local or remote machine |
| Interface | Browser library, PDF reader, text corrections, comments, and export | Terminal commands and structured results |
| Review | Read the PDF in the browser; agents can also inspect page images and text | Agents inspect generated page images and extracted text |
| Output | PDF and editable PowerPoint | PDF and editable PowerPoint |
| Service | A local foreground server while the app is open | No browser or server needed |
| Package | @ryanyahya/opendoc |
@ryanyahya/opendoc-headless |
With Headless, the recipient receives the PDF or PowerPoint. They do not need OpenDoc installed.
Requires Node.js 24 or newer and npm, on macOS or Linux. Install or update Node in the environment that will run OpenDoc. npm installs the application dependencies; fonts and the starter library are included. Installation and updates need network access; rendering local content works offline afterward. Windows is not yet verified.
npx @ryanyahya/opendoc initChoose a new or empty folder, or accept ~/Documents/My OpenDoc. Setup creates your workspace, installs OpenDoc, and opens the browser. Keep the terminal running while you work; press Ctrl-C to stop it.
To return later:
cd "$HOME/Documents/My OpenDoc"
npx opendoc startPass a destination explicitly with npx @ryanyahya/opendoc init ./my-workspace. Add --no-start to initialize without launching, or --no-open to start without opening a browser.
Run this on the machine where your agent executes commands:
npx --yes @ryanyahya/opendoc-headless init ./my-workspace --json
cd ./my-workspaceSetup is noninteractive and requires a new or empty destination. Ask the agent to read the workspace's AGENTS.md, then give it your brief and source material.
Try the included example:
npx opendoc check --json
npx opendoc review welcome --json
npx opendoc export welcome --jsonThe review command returns page images and text for the agent to inspect. The export is output/welcome.pdf. For a presentation, export both formats:
npx opendoc export welcome-presentation --json
npx opendoc export welcome-presentation --format pptx --jsonCommands inside either edition remain npx opendoc. Both install under the same opendoc dependency alias and use the same authoring imports. Complete Headless workflow →
OpenDoc works through files and terminal commands. Use Codex, Claude Code, Cursor, Hermes, Grok Bot, or another agent with access to those capabilities. Your agent brings the intelligence; OpenDoc provides the production framework. OpenDoc itself requires no model account or API key.
Give an agent this README and a task like:
Use OpenDoc Headless to turn these notes into a polished project proposal. Install it in your environment if needed, and read the workspace's AGENTS.md. Use a suitable template and theme, flag missing facts, review every page, and return the finished PDF here. Keep the source so we can revise it later.
The workspace's AGENTS.md routes each request to the matching agent skill, from creation and revision to review, version history, organization, and sharing designs. CLAUDE.md imports the shared instructions, and .claude/skills exposes the same skills as .agents/skills. If an agent doesn't discover skills automatically, have it read the guide and the matching skill directly. Start in the workspace, and explicitly read its guide when installing during an existing conversation.
For an older workspace, preserve its instructions and use the compatibility setup to add the shared Claude entry points. Reading the guides works without registering a plugin or publishing the workspace to GitHub.
In normal OpenDoc, Create prepares the request for you: describe the work, check the project, theme, and template, copy the prompt, and paste it into your agent. The library shows a waiting card until the new document or presentation appears. Create in the app →
Agents author TSX using OpenDoc's components, check the source, inspect the rendered pages, revise, and export. For remote work, the agent delivers real attachments or accessible downloads through its existing tools.
Everything the app does is also a command, so an agent or a script can do it without the window: npx opendoc <command> (the desktop app installs an opendoc command that does the same). Add --json for a structured result, --workspace <folder> to pick a workspace, and opendoc help --json for the full catalogue.
- Create and organise:
init,create,projects,documents(list,show,rename,duplicate,delete,trash,restore),tags,themesandtemplates(including theme folders),assets,media(list,import,edit,record,check) - Review and deliver:
check,review,export(andexport history list|delete|restore|reveal),packs export|inspect|install - Feedback and history:
comments(add, with--alsofor several places,edit,list,resolve,reopen,delete,restore),history list|show|block|restore - The running app and updates:
status,stop,context(what the app has selected) andstart(normal OpenDoc only),update
Failures print {"ok": false, "error": "...", "code": "..."} with a stable code, and exit with status 2 for a usage error, 1 otherwise. All commands and codes →
Both editions include the same agent skills, listed below, that guide an agent through the work, from understanding your brief to delivering reviewed files. They cover writing, revising, design, logos, fonts and images, context, feedback, quality checks, recovering earlier versions, organizing your work, and sharing reusable designs. Ask in ordinary language; the agent guide explains which workflow to use, and each link below opens its full instructions.
| Skill | What it does |
|---|---|
| Create a document or presentation | Turns a brief and source material into a finished report, proposal, document, or slide deck. Resolves the audience and design choices, selects a project, theme, and template, then authors, reviews, revises, and exports. Documents are delivered as PDF; presentations as PDF and editable PowerPoint, unless you request otherwise. |
| Understand the current document | Resolves what you mean by “this document,” “this slide,” or “the selected passage,” including the relevant theme or asset. Uses fresh browser context when available, or the task and workspace records in Headless, so edits target the right content. |
| Apply comments and feedback | Reads saved comments and marked passages, makes the requested revisions, and verifies the result before resolving feedback. Preserves content anchors and comment history so corrections stay connected to the work. |
| Revise a document or presentation | Makes direct changes to existing work without saved comments: updated content and figures, a shorter or longer version, a translation or Arabic right-to-left version, a document turned into a deck or back, or a new theme. Keeps content identities and history, then reviews and redelivers the PDF and PowerPoint. |
| Manage logos, fonts, and media | Imports and updates logos and fonts with their licenses, binds exact versions to documents, sets the logo and fonts a theme gives new documents, and adds or regenerates images and charts in a document, checking each in the rendered PDF. |
| Create or refine a theme | Builds a reusable visual system from your brief, brand materials, or references: typography, colors, spacing, page details, and shared components. Produces and reviews a specimen so the same design can carry across documents and presentations. |
| Create or refine a template | Builds a reusable page layout, presentation skeleton, or recurring report structure. Separates content from layout where appropriate and verifies a specimen, giving future work a consistent starting point. Use the creation skill above for a single deliverable using an existing template. |
| Review documents and presentations | Checks the actual rendered pages for clipping, missing glyphs, awkward spacing, broken tables, and reference problems. Inspects extracted text, reviews theme and template specimens, and checks editable PowerPoint exports. Exports or re-exports files, including every document at once, and can leave findings as comments. Reports any unverified rendering or failed output before delivery. |
| Restore earlier versions | Answers what changed and brings back earlier wording from version history: one paragraph, one section, or a whole version, leaving the rest as it is. Confirms the version when more than one fits, reports the command that undoes each restore, and restores deleted comments. |
| Organize your work | Sets each document's type and status, finds work by type, status, language, or tag, and cleans up tags when asked. Arranges themes into folders, moves documents between projects and changes project settings when you ask, renames, duplicates, deletes, and restores documents, and regroups work only after you approve a proposed grouping. |
| Share themes and templates | Exports themes and templates as portable design packs with their source, required assets, and PDF previews. Inspects a received pack without running its code, then installs it into the workspace without overwriting existing designs. |
Creation, theme, template, and feedback workflows call for review before completion. You can also request a review on its own. Skills use the same files and commands across agents; when automatic discovery is unavailable, the agent can read the linked instructions directly.
A template gives your work a useful structure. Adapt its content, pair it with a theme, and keep the parts that serve your brief.
![]() |
![]() |
![]() |
| Editorial essay Give an argument room to develop. | Executive brief Make the decision and its evidence clear. | Consulting report Structure a recommendation and its exhibits. |
Documents: Editorial essay · Executive brief · Consulting report · Business proposal · Monthly report · Scientific paper · Magazine feature · Literary text · Image story · Invoice · Quotation
Presentations: Pitch deck · Brand guidelines · Company profile · Proposal deck
Browse them in the app or run npx opendoc templates list. Your agent can also create reusable templates of your own. Template authoring →
A theme gives documents their visual character: typography, color, spacing, page furniture, and reusable components. Keep a project consistent, or choose a different direction for a new audience.
![]() |
![]() |
![]() |
| OpenDoc Neutral Warm paper, charcoal, and precise blue. | Field Manual Technical clarity with a bold orange signal. | Civic Spectrum Expressive color and confident typography. |
Also included: Neutral, a quiet starting point, and McKinsey Consulting, an independent consulting-inspired theme with structured exhibits. OpenDoc is not affiliated with McKinsey & Company.
Themes and templates remain editable in your workspace. Shared font families include Geist, Inter, Roboto, Open Sans, Lato, Merriweather, and Noto Naskh Arabic, with their licenses. Theme authoring → · Fonts and logos →
The included Welcome to OpenDoc document is a working example of the framework: eight pages of typography, layouts, imagery, charts, and tables. Open it, inspect its source, or ask your agent to use it as a reference.
Read the Welcome PDF · Explore its source · Explore the 14-slide Welcome presentation
The showcase uses the included example content. Illustrative data and generated artwork are identified in the examples; these are demonstrations, not client work.
Stop the browser edition with Ctrl-C, then run this from either edition's workspace:
npx opendoc updateUpdates preserve your edition, documents, templates, themes, assets, and feedback. The default selects the latest compatible version and pins it exactly. Use npx opendoc update --check to inspect updates, or --version <exact-version> to choose one. Restart the browser edition afterward. Workspace guide →
| Task | Guide |
|---|---|
| Use the browser, edit text, and manage exports | Using OpenDoc |
| Produce finished files remotely | Headless |
| Author documents and presentations | Authoring API |
| Create reusable designs | Templates · Themes |
| Group documents into projects; rename, duplicate, delete, and restore them | Projects |
| Type, status, language, and tags for documents, themes, and templates | Tags |
| Work with images, fonts, and logos | Media · Assets |
| Apply precise corrections and feedback | Selection |
| Restore earlier wording, sections, or versions | Version history |
| Contribute to the framework | Contributing · Validation |
For development, use Node.js 24+ and the pnpm version pinned in package.json:
pnpm install --frozen-lockfile
pnpm devRun pnpm verify before contributing. Build both distributions with pnpm package:pack; the packages share one repository and release version. npm distributes the installable editions; GitHub hosts source and release notes.
OpenDoc supports English, Arabic, and mixed right-to-left content (Authoring) with TSX authoring. It runs trusted document code in your environment. PowerPoint supports editable text, rectangular shapes, images, and compatible embedded fonts; some visual effects are intentionally unsupported. Security · Third-party notices
OpenDoc is released under the MIT license. Bundled fonts and dependencies retain their own licenses.








