Skip to main content


Tags Checks Dependencies License

FFI Plugin management library featuring automatic caching of local and remote binaries, cross-platform automatic url guessing, deno_plugin_prepare backwards compatibility and pretty deno-like logging when caching and downloading binaries.

⚠️ FFI in deno is unstable and undergoing BREAKING CHANGES. This library aims to follow changes to deno as closly as possible.

import { Plug } from "";

// Backwards compatibility with deno-plugin-prepare
const options: Plug.Options = {
  name: "test_lib",
  urls: {
    darwin: ``,
    windows: ``,
    linux: ``,

// Or if you want plug to guess your binary names
const options: Plug.Options = {
  name: "test_lib",
  url: "",
  // Becomes:
  // darwin: ""
  // windows: ""
  // linux: ""

// Drop-in replacement for `Deno.dlopen`
const library = await Plug.prepare(options, {
  noop: { parameters: [], result: "void" },




Pull request, issues and feedback are very welcome. Code style is formatted with deno fmt and commit messages are done following Conventional Commits spec.


Copyright 2020-2022, the denosaurs team. All rights reserved. MIT license.