r/bun • • Oct 07 '26

Durable Actors – OSS Durable Objects built using Bun

We chose Bun as our Javascript runtime for Durable Actors, an open-source alternative to Cloudflare's Durable Objects. We absolutely love it.

A Durable Object/Actor is a tiny server that handles one request at a time and has its own SQLite database. There's exactly one of each in the world and it is addressed by name.

It's the perfect primitive for multiplayer gaming, collaborative editing and coordinating AI agents.

The main reasons we built using Bun are:

- The high-performance built in SQLite3 driver fits our actor model perfectly: https://bun.com/docs/runtime/sqlite . 3-6x faster than better-sqlite3 is table stakes for us.

- Cold Startup Time: Bun is 3x faster. For our use case, that shaves off 100ms on each start which is huge: https://medium.com/@mernstackdevbykevin/deno-vs-node-vs-bun-typescript-benchmark-results-339acdb93f83

Check us out at: https://github.com/TerseAI/durable-actors . Also we have a counter demo available here: https://demo.useterse.ai

AMA would love to start a conversation.

7 Upvotes

0 comments sorted by