Skip to main content
In this quickstart we will learn how to:
  • Connect to a remote Turso database
  • Execute SQL queries using SQL over HTTP
Match the driver to your database engine: @tursodatabase/serverless for Turso databases, @libsql/client for libSQL databases.
The @tursodatabase/serverless package connects to Turso using only the fetch API — no native dependencies, making it the smallest option for edge and serverless runtimes.
1

Install

2

Connect and query

For compatibility with the libSQL client API, use the compat module: