Skip to main content
Glama
README.md
# LeftBlank Office

[office.leftblank.app](https://office.leftblank.app) gives AI agents the same Typst
document tools as the [LeftBlank](https://github.com/leftblank-app/leftblank) desktop
app, over the web. Add one URL to Claude Code, Codex or claude.ai, sign in once,
and your agent can write papers, slides, dimensional drawings and math, compile
them, look at the pages, and share the result.

```sh
claude mcp add --transport http leftblank https://office.leftblank.app/mcp
```

More clients: [office.leftblank.app/agents.md](https://office.leftblank.app/agents.md).

## How it works

One Cloudflare Worker serves the site, the MCP endpoint and OAuth. Documents live
in D1 (index) and R2 (content). Typst 0.15.1, the same release the desktop app
uses, compiles in a Cloudflare Container. See [docs/architecture.md](docs/architecture.md)
and the [TODO](docs/todo.md).

## Develop

```sh
npm ci
npm run check   # Biome + TypeScript
npm test        # Vitest in the Workers runtime
npm run dev     # local Worker; the compile container needs Docker
npm run build:examples  # re-render public/examples from examples/ with a local typst 0.15.1
```

Pushes to `main` apply D1 migrations and deploy with Wrangler.

---

Open source under the [MIT License](LICENSE). Names, logos and icons follow the
[Brand Policy](BRAND_POLICY.md).