Skip to content

Serverless libSQL

SQLite-compatible, edge-friendly, with HTTP and WebSocket drivers. Free tier, the same SQL you already know, cloud or self-host with the Layerbase CLI.

Free tier, no credit card

Engine

Choose a database engine to provision.

Already have data? Migrate it from Cloudflare D1, Turso Any connection string works too.

Common libSQL questions

What is libSQL?

libSQL is the Turso-backed open-source fork of SQLite that adds HTTP and WebSocket access on top of the SQLite engine, so edge and serverless runtimes can query it without holding a TCP socket open. The SQL you write is still SQLite SQL. Layerbase runs it as a managed database on the Free plan, with a web SQL console, and the same client library Turso users already have connects to it.

How does libSQL differ from upstream SQLite on Layerbase?

libSQL is the Turso-backed fork that adds HTTP and WebSocket drivers and remote-friendly features. Pick libSQL when you want edge-runtime access; pick SQLite for the bare upstream engine.

Is libSQL on Layerbase Turso-compatible?

Yes. libSQL on Layerbase speaks the same protocol and ships with the same client library Turso users already have.

How does the libSQL HTTP driver work?

The libSQL client wraps SQL queries in HTTPS calls so edge and serverless runtimes (Cloudflare Workers, Vercel Edge) can talk to a libSQL endpoint without a TCP socket.

What are the free libSQL tier limits on Layerbase?

libSQL is in the Free tier. Your database hibernates after 15 minutes of inactivity and wakes on the next connection; upgrade if you need always-on or larger storage.

Can I run libSQL locally?

Yes. The Layerbase CLI and Layerbase Desktop both run libSQL with the same install workflow.