Package install
Prerequisites
Hosted API
For the hosted API athttps://api.chromiumly.dev, required:
- A supported runtime: Node.js 18+, Deno 1.x, or Bun
- An API key from chromiumly.dev
Self-hosted Gotenberg
If you run Gotenberg yourself:- Install Docker if needed.
- Start Gotenberg, for example:
- Configure Chromiumly with the endpoint (see Configuration).
Optional config libraries
Chromiumly reads configuration from environment variables in all runtimes. On Node.js, you can optionally use dotenv or config to load the same env vars or config keys:dotenv— load.envintoprocess.envconfig— read fromconfig/default.json(e.g.gotenberg.endpoint)
Chromiumly.configure() (see Configuration).