Serverless SQLite
The world's most-deployed database, on a connection string. Free tier, the same SQL you already know, every standard SQLite tool works.
FAQ
Common SQLite questions
What is SQLite?
SQLite is the most widely deployed database in the world: a small embedded SQL engine that normally lives as a single file inside the application rather than as a server you connect to. It is the usual choice for embedded data layers, prototypes, and anything that wants SQL without an operational footprint. Layerbase Cloud puts a real SQLite database on managed storage and exposes it over the PostgreSQL wire protocol with TLS, so code running anywhere can query it without shipping a file around, and the SQL you write is still SQLite SQL.
Is hosted SQLite still really SQLite?
Yes. The endpoint speaks standard SQLite SQL and behaves like a normal SQLite database, just reachable over the network. Standard tooling, standard schema, standard SQL.
How does hosted SQLite compare to libSQL?
SQLite is the upstream embedded engine; libSQL is Turso's fork with HTTP and WebSocket drivers, designed for edge runtimes that cannot speak SQLite's native protocol. If you need an HTTP-friendly client, pick libSQL.
Does hosted SQLite scale?
SQLite's strength is single-writer simplicity, not horizontal scale. For high write throughput, pick Postgres or MySQL. For typical app workloads SQLite scales further than people expect.
How do backups work for hosted SQLite?
Free databases hibernate but persist their data, and Free includes 1 manual backup slot you can take and restore from the dashboard. Paid plans add scheduled snapshots on top of that.
Can I use sqlite3 CLI and standard tooling?
Yes. The endpoint exposes a standard connection format compatible with sqlite3, better-sqlite3, sqlx, Drizzle, Prisma, and other SQLite-aware tooling.
Can I host SQLite in the cloud?
That is what this is. Layerbase Cloud puts a real SQLite database on managed storage and exposes it over the PostgreSQL wire protocol on port 5432 with TLS, so code running anywhere can query it without shipping a file around. You connect with a Postgres client such as psql, node-postgres, Drizzle, or Prisma, and the SQL you write is SQLite SQL.
Is hosted SQLite serverless?
In the scale-to-zero sense, yes. A free SQLite database hibernates after 15 minutes with no connections and paid plans wait 6 hours. It keeps its hostname, port, and volume while it sleeps, so the next connection wakes it in roughly 1 to 5 seconds. Pricing is flat rather than per-request, so idle time costs nothing either way.
What does hosted SQLite cost?
SQLite is on the Free plan at $0/mo with no card: 2 databases, 5 GB of storage, up to 20 concurrent connections. Solo is $5/mo and Pro is $15/mo. There is no per-row-read meter and no bandwidth charge on any plan.