7,363 open-source and SaaS tools, with GitHub stats refreshed every day.

2 alternatives ranked by real activity

Open-source Cloudflare D1 alternatives

A curated, ranked list of the 2 best open-source alternatives to Cloudflare D1.

The best open-source alternative to Cloudflare D1 is rqlite. If that doesn't suit you, another good option is libSQL.

Cloudflare D1 alternatives are mainly databases. 2 of them shipped code in the last 30 days, 2 can be self-hosted, and 2 use a permissive licence.

Last updated October 3, 2026 · ranked by GitHub stars, growth and recent commits

rqlite

A lightweight, fault-tolerant distributed relational database built on SQLite and Raft consensus, easy to run on cloud or edge.

GitHub stars
18k
Last commit
yesterday
Latest release
v10.5.0
Licence
MIT
Self-hosted
Yes
rqlite.iorqlite homepage screenshot

rqlite is a distributed relational database that uses SQLite as its storage engine and the Raft consensus algorithm to keep a cluster consistent. The project describes it as lightweight, developer-friendly and easy to operate, and compares it to etcd but with relational modeling, meaning you store important data with the guarantees of a replicated system while querying it with SQL.

Because it embeds SQLite, you get full SQL support including full-text search and JSON. Extensions can be loaded to add capabilities such as vector search and cryptographic functions, and multiple SQL statements can be executed atomically within one API request. Change data capture is listed among the key features, and a multi-node cluster can be formed in seconds following the quick start. It is written in Go.

rqlite is MIT licensed and aimed at resilient services in the cloud and reliable applications at the edge, where a full database server would be too heavy but a single SQLite file would be a single point of failure. You run it yourself, and the website, Slack community and developer guide help with getting started.

Key features

  • Distributed SQLite with Raft consensus
  • Full SQL including full-text search and JSON
  • Loadable SQLite extensions
  • Atomic multi-statement requests
  • Change data capture
  • Simple multi-node clustering

Pricing: Free and open source under the MIT license.

Read more about rqliteWebsite GitHub

libSQL

libSQL is an open-contribution fork of SQLite from Turso that adds embedded replicas and remote access; the team now builds its newer Rust database separately.

GitHub stars
17k
Last commit
yesterday
Latest release
libsql-server-v0.24.32
Licence
MIT
Self-hosted
Yes
Hosted version
Available
turso.techlibSQL homepage screenshot

libSQL is a fork of SQLite, open source and open to outside contributions, created and maintained by Turso. It extends SQLite with capabilities such as embedded replicas and remote access, with the goal of serving far more scenarios than the original SQLite was built for, and it draws on third-party open-source code where that makes sense. The core is in C, with Rust and WebAssembly work around it.

The README makes an important distinction. libSQL, this repository, inherits SQLite's basic limitations, including the single-writer model. The Turso database is a separate project from the same team: a SQLite-compatible database written anew in Rust rather than forked, which adds concurrent writes and two-way sync that can work offline, and is currently in beta. The team says libSQL remains actively maintained but that new features are being developed in the Turso database, and suggests new projects look there first.

libSQL is MIT licensed, and it is used both embedded in applications and through Turso's hosted platform. Documentation, a manifesto, a Discord community and tutorials are provided. It suits developers who like SQLite's simplicity but need replication or remote access.

Key features

  • Open-contribution fork of SQLite
  • Embedded replicas for local reads
  • Remote access to databases
  • Rust and WebAssembly components
  • Hosted platform from Turso
  • Separate Rust-based Turso database in beta

Pricing: Free hosted plan for up to 100 databases. Developer costs $5.99, Scaler $29 and Pro $499 a month (less billed yearly), with overage rates above allowances; Enterprise is custom.

Read more about libSQLWebsite GitHub

Cloudflare D1 alternatives: questions

What is the best open-source alternative to Cloudflare D1?
rqlite is the top-ranked open-source alternative to Cloudflare D1 on Enlisted: A lightweight, fault-tolerant distributed relational database built on SQLite and Raft consensus, easy to run on cloud or edge. Another strong option is libSQL.
Are these Cloudflare D1 alternatives free?
Both are open source, so the code is free to use under its licence, and both can be self-hosted on your own server or computer. 1 also offers a paid or managed cloud version if you'd rather not host it yourself.
How is this list of Cloudflare D1 alternatives ranked?
By a score built from GitHub stars, star growth over the last 30 days and how recently the code changed. 2 of these projects shipped code in the last 30 days. Data is refreshed daily, and nobody can pay to move up.

People also look for alternatives to…

View all