Skip to main content
These examples describe the current Bijection CLI and SDK source. Use builds from the same source commit for these APIs. The public CLI and npm SDK are published independently and may lag this reference.
A report is one task to a renderer you run. The renderer renders the frozen input in a worker without credentials, validates the exact bytes in another, and posts each file to your app’s upload route. Nothing renders on Bijection’s side.

1. Place the library with a renderer

app.ts
The renderer’s clearance is the library’s label: a document’s text leaves that label only as a render request to it. The upload route defaults to POST /documents/renders and is bearer-verified with upload.

2. Run the renderer

The renderer server ships in the package (pnpm renderer, which runs src/renderer/serve.ts). Run it behind HTTPS on infrastructure you control:

3. Deploy and set the secrets

Grant editor to a person under workspace from one of your mutations, with ctx.grant(editor, { to, under }) (Grants).

4. Generate a PDF

Write a note, then generate a report from its current text:
reports.generate answers the report’s key and marks it rendering. When the render task settles, the library attaches the uploaded files whose SHA-256 matches the task’s result and marks the report ready, or failed with the code and message. A report stays at the library’s label until someone releases it.

What stays yours

  • Hosting the renderer: HTTPS, capacity and restarts.
  • A mail provider or other receiver, only if you deliver released files outside the app.