> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chromiumly.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Chromiumly is a lightweight TypeScript library that interacts with Gotenberg to convert documents to PDF.

> [!NOTE]
>
> These docs cover **Chromiumly 6**, which works with **Gotenberg 8**. On Gotenberg 9, use [Chromiumly 7](https://docs.chromiumly.dev/index.md) and see [Migrating from Chromiumly 6](https://docs.chromiumly.dev/migration.md).

Chromiumly integrates with [Gotenberg](https://gotenberg.dev/) to convert URLs, HTML, Markdown, and office documents to PDF, and runs on **Node.js**, **Deno**, and **Bun**. Use the hosted API at `api.chromiumly.dev` with an API key, or run Gotenberg yourself (self-hosted).

## What you can do

* **Chromium**: Convert URLs, HTML, and Markdown to PDF; capture full-page screenshots as PNG, JPEG, or WebP.
* **LibreOffice**: Convert DOCX, XLSX, PPTX, and other office formats to PDF.
* **PDF engines**: Convert to PDF/A and PDF/UA, merge PDFs, read/write metadata, split, flatten, and more.

Chromiumly wraps Gotenberg’s API; for server-side configuration, limits, and troubleshooting, see [Gotenberg’s documentation](https://gotenberg.dev/docs/8.x/getting-started/introduction).

## Hosted API vs self-hosted

> [!TIP]
>
> Use the **hosted API** with an API key: sign up at [chromiumly.dev](https://chromiumly.dev), set `CHROMIUMLY_API_KEY` or `Chromiumly.configure({ apiKey: "..." })`, and start converting. No Docker or server to run.

| Option | Use when |
| - | - |
| **Hosted API** | Recommended. No Docker or server management. Set `CHROMIUMLY_API_KEY` or call `Chromiumly.configure({ apiKey: "..." })`. Requests go to `https://api.chromiumly.dev`. |
| **Self-hosted** | You run [Gotenberg](https://gotenberg.dev/) (e.g. via Docker). Set `GOTENBERG_ENDPOINT` or call `Chromiumly.configure({ endpoint: "http://localhost:3000" })`. |

> [card] [Quickstart](https://docs.chromiumly.dev/v6/quickstart.md)
>
> Install the package and run a minimal URL-to-PDF conversion.

> [card] [Configuration](https://docs.chromiumly.dev/v6/configuration.md)
>
> Configure the endpoint or API key (hosted vs self-hosted).

> [card] [Chromium](https://docs.chromiumly.dev/v6/chromium/overview.md)
>
> Convert URLs, HTML, and Markdown to PDF; capture screenshots.

> [card] [LibreOffice](https://docs.chromiumly.dev/v6/libreoffice.md)
>
> Convert office documents (DOCX, XLSX, PPTX, etc.) to PDF.

> [card] [PDF engines](https://docs.chromiumly.dev/v6/pdf-engines/overview.md)
>
> Merge, split, flatten, and convert to PDF/A or PDF/UA.

## SDK reference

The library exports converters, screenshot classes, `LibreOffice`, and `PDFEngines`. See the [Reference](https://docs.chromiumly.dev/v6/reference/overview.md) tab for class and type details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.