Onykia Docs

The Engine

The onykia-engine is a Typst wrapper made to run in the web. It compiles and renders Typst documents, exposing API to integrate with your own application.

The CodeMirror example from the repository can be accessed on example.onykia.eu aswell.

Quickstart

making it work.

Vite

config and the cross-origin isolation headers.

Rendering

Rendering strategies for:

  • canvas
  • svg
  • png
  • pdf
  • html

Editor Integration

CodeMirror

Bindings for CodeMirror 6.

Monaco

Bindings are still work-in-progress.

Fonts

Font sources and loading

Packages

loading custom packages

API

the full Core surface.

On this page