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.
1. Place the library with a renderer
app.ts
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
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.