Plug & Play SQLite
Batteries-included scale-to-zero database built on Cloudflare Durable Objects.
⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅.
Get started with StarbaseDB
Deploy StarbaseDB in 2 easy steps.
Deploy
$curl https://starbasedb.com/install.sh | bash
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]
}'
⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅.
What people are saying
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."
Matt Silverlock
@elithrar
"Absolutely love seeing all the things being built on Durable Objects + SQLite right now."
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."
brandon
@burcs
"thanks – now i dont have to write backend code anymore, which in turn makes the world a better place for everyone 😂"
Dajjal Pro Max
@dajalwala
"THIS IS THE WAY"
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"
⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅ॱ˙˙ॱ⋅.˳˳.⋅.
Strategy guide
Stay up to speed with the latest tips, tricks, features and updates.
Pre and Post Query Hooks
Utilize the pre-query and post-query hooks to authorize and transform database requests at the edge
Rethinking the StarbaseDB Architecture
Weighing the pro’s and con’s of migrating routing and logical components from Durable Objects to Workers.
Bindable Microservices with Cloudflare Workers
Segment your application logic into feature specific services for a more scaleable architecture.
Adding Web Sockets to Workers
How we introduce web socket support to communicate with StarbaseDB, and how you can add it to your own Cloudflare Workers.
Deploy & Visualize
Deploying a SQLite database to Cloudflare with a built-in user interface in less than a minute.
Developing ACID Transaction Support in StarbaseDB
How we implemented transactions in SQLite with Cloudflare Durable Objects.
Building an HTTP SQLite Database with Cloudflare Durable Objects
Learn to build your own HTTP accessible SQLite database server using Cloudflare Durable Objects.
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.