Skip to content

Blueboat

Self-hosted multi-tenant serverless JavaScript runtime written in Rust

Permissive (OSI) · Apache-2.0

Listed by , founder & editor

25

Health

Dormant

Overview

Stars

1,918

Last commit

4 years ago

Jul 2022

Repository age

5 years

since Jan 2021

Latest version

v0.2.12

Jan 2022

Contributors

–

Releases

0

last 12 months

Language

Rust

Blueboat is a multi-tenant serverless JavaScript runtime written in Rust. You write apps in JavaScript or TypeScript using a router and Web API pieces such as fetch, Request, Response and URL. Bundlers like webpack work for building apps.

It is designed around distributed systems. Local resources are replaced with distributed equivalents: files become a key-value store, sockets become event streams through PubSub, and single-file databases give way to MySQL and PostgreSQL objects. FFI is replaced by WebAssembly.

You can run it in single-tenant mode with Docker and the boatctl tool, or deploy it multi-tenant. It is a self-hosted equivalent to Cloudflare Workers, but it is not Workers API compatible, has no global edge network, and lacks Durable Objects, R2 and D1 equivalents. The license is Apache-2.0. The last commit was in 2022.

Who it's for

Teams wanting serverless JavaScript on their own servers

You run it with Docker and keep code and data in your infrastructure.

Skip if: You need an active project with ongoing fixes.

Rust and runtime hobbyists

The Rust codebase and distributed-native design are open to study.

Skip if: You need Cloudflare Workers API compatibility.

The problem it solves

Running serverless JavaScript usually means renting a vendor's edge platform. Blueboat lets you host a multi-tenant runtime yourself.

Strengths

  • Apache-2.0 license
  • Single-tenant mode runs from one Docker command
  • Built-in key-value store, PubSub, MySQL and PostgreSQL APIs
  • Standard fetch, Request, Response and URL support

Trade-offs

  • Dormant: last commit was in July 2022
  • No global edge network
  • Not Workers API compatible
  • Local files and sockets are not available by design

Blueboat replaces

Self-host Blueboat

Self-hostable
Yes

Quick start

cargo install boatctl
git clone https://github.com/losfair/blueboat-examples
cd blueboat-examples/hello-world
npm i && boat pack -o build.json

From the project's own install instructions. Check the docs for production settings.

In the community

Frequently asked questions

Is Blueboat free?

Yes. It is open source under Apache-2.0.

Can I self-host it?

Yes. Single-tenant mode runs with Docker, and multi-tenant deployment is supported.

Can I run Cloudflare Workers code on it?

Not directly. It is not Workers API compatible, though it supports common Web APIs.

What do I need for the quickstart?

cargo, npm, git and docker.

Similar tools in PaaS and deployment platforms

Exoframe

PaaS and deployment platforms

Self-hosted tool for one-command Docker deployments to your own server

1.2k 59 26 days ago Slowing Unknown

/dev/push

PaaS and deployment platforms

Self-hostable, MIT-licensed platform for deploying apps to your own servers

4.8k 190 22 days ago Active MIT

functions

PaaS and deployment platforms

Self-hosted serverless platform that runs functions in Docker, including Lambda imports

3.2k 219 8 years ago Dormant Apache-2.0

open-compute

PaaS and deployment platforms

Single-binary, self-hosted platform that runs Cloudflare Workers-compatible code on one

4.2k 347 2 days ago Active Apache-2.0

ethibox

PaaS and deployment platforms

Self-hosted web app hoster that runs open-source apps on Docker with a web dashboard

260 37 yesterday Thriving GPL-3.0

seelf

PaaS and deployment platforms

354 11 2 years ago Dormant GPL-3.0