# Announcing Deno bindings

**URL:** https://forums.foundationdb.org/t/announcing-deno-bindings/3851
**Category:** Community
**Created:** [March 11, 2023, 5:02pm UTC](https://forums.foundationdb.org/t/announcing-deno-bindings/3851 "2023-03-11T17:02:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![roj](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/roj/32/1536_2.png) [@roj](https://forums.foundationdb.org/u/roj)
#### Post date: [March 11, 2023, 5:02pm UTC](https://forums.foundationdb.org/t/announcing-deno-bindings/3851/1 "2023-03-11T17:02:52Z")

</div>

I’ve recently wrote a binding for the [Deno](https://deno.land) runtime. The binding implementation is really simple and straightforward, and thanks to Deno’s built-in TypeScript support, you can just create a `.ts` file anywhere on your machine, get full IDE autocomplete support, and easily write and run maintainable scripts for interacting with FoundationDB servers.

Here’s how simple it is to use:

```plaintext
import {
  createDatabase,
  selectAPIVersion,
  startNetwork,
  stopNetwork,
} from "https://deno.land/x/fdb/mod.ts";

selectAPIVersion(710);
startNetwork();

const database = createDatabase();
const transaction = database.createTransaction();

const future = transaction.get("some_key");
future.blockUntilReady();
future.getError();

const value = future.getValue();
if (value) {
  console.log(value.byteLength);
} else {
  console.log("Not found");
}

stopNetwork();

```

The source code is available [here](https://github.com/roj1512/foundationdb_deno). Note that it is currently pretty much WIP and not stable, and I also plan to add higher level APIs to it in the future.

---

<div class="post-metadata">

### Author: ![atn34](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/atn34/32/617_2.png) [@atn34](https://forums.foundationdb.org/u/atn34)
#### Post date: [March 17, 2023, 6:53pm UTC](https://forums.foundationdb.org/t/announcing-deno-bindings/3851/2 "2023-03-17T18:53:26Z")

</div>

Neat! Btw there is a more complete typescript binding [here](https://github.com/josephg/node-foundationdb), and I think the main thing missing for `deno` support is someone familiar with the way ffi works in `deno` to wire it up. It looks like you’ve already done much of that! Might be worth getting in touch with those folks.

---

<div class="post-metadata">

### Author: ![alexmiller](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/alexmiller/32/326_2.png) [@alexmiller](https://forums.foundationdb.org/u/alexmiller)
#### Post date: [March 20, 2023, 10:46pm UTC](https://forums.foundationdb.org/t/announcing-deno-bindings/3851/3 "2023-03-20T22:46:46Z")

</div>

There’s also Openland’s bindings ([Getting Started · @openland/foundationdb](https://fdb.openland.com/docs/)), which included an entity layer, a migration tool, and some abstractions on top.

---

<div class="post-metadata">

### Author: ![roj](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/roj/32/1536_2.png) [@roj](https://forums.foundationdb.org/u/roj)
#### Post date: [March 21, 2023, 10:44am UTC](https://forums.foundationdb.org/t/announcing-deno-bindings/3851/4 "2023-03-21T10:44:36Z")

</div>

It doesn’t seem to support Deno, does it?
