MCPcopy Index your code
hub / github.com/denoffi/denoffi

github.com/denoffi/denoffi @0.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.4.0 ↗ · + Follow
5 symbols 7 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Deno Foreign Function Interface (WIP & Need Help)

ci tag license

Deno Foreign Function Interface.

Example

import * as ffi from "https://deno.land/x/ffi/mod.ts";

type Fn0 = ffi.CFunction<"int add(int, int)">; // { "add": { parameters: ["i32", "i32"]; result: "i32" } }
type Fn1 = ffi.CFunction<"long add(long)">; // { "abs": { parameters: ["i64"]; result: "i64" } }
type Fn2 = ffi.CFunction<"void hello(int)">; // { "hello": { parameters: ["i32"]; result: "void" } }
type Fn3 = ffi.CFunction<"void hello()">; // { "hello": { parameters: []; result: "void" } }
type Fn4 = ffi.CFunction<"void hello(void)">; // { "hello": { parameters: ["void"]; result: "void" } }

License

denoffi is released under the MIT License. See the bundled LICENSE file for details.

Core symbols most depended-on inside this repo

assertType
called by 210
types_test.ts
cstr2ptr
called by 0
mod.ts
ptr2cstr
called by 0
mod.ts
ptr2cstr_unchecked
called by 0
mod.ts
isLittleEndian
called by 0
mod.ts

Shape

Function 5

Languages

TypeScript100%

Modules by API surface

mod.ts4 symbols
types_test.ts1 symbols

For agents

$ claude mcp add denoffi \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact