How to access the source code and docs of a plugin?

So given a defined function cipher data in my file.

let test = plugin(bytes(cipher(data)))

I don’t understand where to find the documentation for either the plugin or the function check.
let r = test.check(bytes(sometext))

Is there any way to find the source code?

Any guidance would be appreciated.

Hey @bylal, welcome to the forum! I’ve changed your question post’s title to better fit our guidelines: How to post in the Questions category

Make sure your title is a question you’d ask to a friend about Typst. :wink:

I’m not sure if I fully understand your question; it’d be nice to give more context (e.g. where this “cipher data” comes from, or which package you are trying to use).

Plugins are implemented through .wasm binary files, so, in principle, they have no documentation or source code available unless you know where the binary was compiled, or you can reverse engineer the compiled code.

Usually, however, Typst packages tend to provide high-level functions wrapping plugins instead of plugins themselves, with exceptions.

Which package are you having trouble with? Maybe we can help.

1 Like