Plug & Play SQLite

Batteries-included scale-to-zero database built on Cloudflare Durable Objects.

⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅.

Get started with StarbaseDB

Deploy StarbaseDB in 2 easy steps.

1

Deploy

$curl https://starbasedb.com/install.sh | bash

2

Connect to StarbaseDB

curl --location 
    --request POST 'https://starbasedb.YOUR-ID-HERE.workers.dev/query' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer YOUR_TOKEN_HERE' \
    --data-raw '{
        "sql": "SELECT * FROM users WHERE id=?;",
        "params": [123]
    }'
* Documentation *

⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅.

What people are saying

User Avatar

Shayan

@ImSh4yy

"This is pretty cool! It creates a RESTful API around the new SQLite storage inside Durable Objects and gives you a fully working SQLite database that you can interact with over HTTP."

User Avatar

Matt Silverlock

@elithrar

"Absolutely love seeing all the things being built on Durable Objects + SQLite right now."

User Avatar

Jamie Barton

@notrab

"Love to see this! 💯 I've been saying to myself for a while that postgREST for SQLite would be a great thing to do."

User Avatar

brandon

@burcs

"thanks – now i dont have to write backend code anymore, which in turn makes the world a better place for everyone 😂"

User Avatar

Dajjal Pro Max

@dajalwala

"THIS IS THE WAY"

User Avatar

sunil pai

@threepointone

"you're given the primitives of compute and storage, fully programmable, on a planetary network, to create your own flavour of database/server architecture, with the tradeoffs you desire, go forth and create a 1000 such combos"

⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅.

FAQ

What is StarbaseDB?

StarbaseDB is a layer of abstraction on top of Durable Objects that provides a simple, easy-to-use interface for storing and querying data. It is built on top of SQLite, a popular embedded database engine, and is designed to be fast, reliable, and easy to use.

What are Durable Objects?

Durable Objects ↗ are a Cloudflare product that provide a powerful compute API for coordinating multiple clients or users. Each Durable Object has private, transactional and strongly consistent storage attached.

How is this different from D1?

D1 is Cloudflare's managed SQLite database offering. StarbaseDB has a similar architecture to D1 but includes built in tools to get you started faster and interacting with your database in a more developer friendly way. StarbaseDB offers web-socket support, REST API endpoints, a built-in GUI and ORM support out of the box.

Do I have to have a Cloudflare account to use StarbaseDB?

Currently, yes. We are working on a providing a managed service.