# libSQL

> libSQL is a production-ready fork of SQLite, maintained by Turso.
> Canonical HTML: https://tursodb.cn/docs/libsql/
> Upstream Source (MIT): https://docs.turso.tech/libsql
> Language: en

---
libSQL is a fork of SQLite, created because SQLite is [open-source but not open-contribution](https://www.sqlite.org/copyright.html). libSQL is production-ready, fully backwards compatible with SQLite, and adds features like native vector search.

<div class="doc-callout doc-callout-info"><div class="doc-callout-title">NOTE</div><div class="doc-callout-body">

libSQL represents where we started. Today, our focus is [Turso Database](/docs/tursodb/quickstart/), a full rewrite of SQLite built from scratch, designed for the highest density of databases with no need for servers or connectivity. If you're starting a new project, we recommend [Turso Database](/docs/tursodb/quickstart/). For mission-critical workloads that need a battle-tested foundation today, libSQL is the right choice.

</div></div>


<div class="doc-cards">
<a class="doc-card" href="https://github.com/tursodatabase/libsql/" target="_blank" rel="noopener noreferrer"><div class="doc-card-title"><span>tursodatabase/libsql</span><span class="doc-card-arrow" aria-hidden="true">↗</span></div><p class="doc-card-desc">Browse the libSQL source code on GitHub, report issues, feature requests and contribute using pull requests.</p></a>
<a class="doc-card" href="https://tur.so/discord" target="_blank" rel="noopener noreferrer"><div class="doc-card-title"><span>Discord</span><span class="doc-card-arrow" aria-hidden="true">↗</span></div><p class="doc-card-desc">Join the community on Discord to talk about the development of libSQL.</p></a>
</div>


## libSQL vs. Turso Database

libSQL is a fork of SQLite. It maintains the same file format, the same API, and full backwards compatibility. It extends SQLite with features the ecosystem has long needed but couldn't contribute upstream.

[Turso Database](/docs/tursodb/quickstart/) is a different approach: a ground-up rewrite of SQLite. It reimplements SQLite's semantics with a modern architecture designed for concurrent writes, async I/O, and the highest database density in the industry.

| | libSQL | Turso Database |
| - | - | - |
| Approach | Fork of SQLite | Full rewrite of SQLite |
| Maturity | Production-ready | Production-ready |
| SQLite compatibility | Full (same file format and API) | Backwards compatible |
| Best for | Mission-critical workloads today | New projects, agents, smart devices, high-density use cases |

Both are open-contribution and maintained by Turso, and both can be deployed on [Turso Cloud](/docs/turso-cloud/): libSQL has powered it for years, and Turso databases are now available on the platform as well.

## Extensions

<div class="doc-callout doc-callout-info"><div class="doc-callout-title">NOTE</div><div class="doc-callout-body">

If you're looking to enable vector extensions, you should instead consider
using the native [libSQL vector datatype](/docs/features/ai-and-embeddings/).

</div></div>


A full list of supported extensions can be found [here](/docs/features/sqlite-extensions/).
