Skip to main content

Installation

HTTP client

The HTTP client uses only the Go standard library. It targets the hosted API at https://api.formepdf.com by default. Set a base URL with forme.WithBaseURL to use a self-hosted server instead:

Client options

Methods

Error handling


Native templates

Build documents in Go code using a component DSL that mirrors the JSX API. Renders locally via the WASM engine — no network calls.

Components

Building the WASM binary

Local rendering requires the Forme WASM binary:

HTTP client vs native