Skip to main content


🔌 Deno FFI helper module
Go to Latest
function dlopen
import { dlopen } from "";

Opens a dynamic library and registers symbols, compatible with Deno.dlopen yet with extended functionality allowing you to use remote (or local) binaries, automatically building the binary name and controlling the caching policy.


Example 1

import { dlopen, FetchOptions } from "";

// Configure plug to automatically guess the binary names for you, even when
// there for example are special rules for naming on specific architectures
const options: FetchOptions = {
  name: "test",
  url: "",
  suffixes: {
    darwin: {
      aarch64: ".aarch64",
      x86_64: ".x86_64",
  // Becomes:
  // darwin-aarch64: ""
  // darwin-x86_64: ""

await dlopen(options, {});


symbols: S

A record extending Deno.ForeignLibraryInterface