cloudflare · Cloudflare Workers Docs
Workers Turso
Teaches how to integrate Turso libSQL databases with Cloudflare Workers by installing the Turso CLI, configuring database secrets via Wrangler, and implementing the @libsql/client/web library in a Worker script.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Turso
Teaches how to integrate Turso libSQL databases with Cloudflare Workers by installing the Turso CLI, configuring database secrets via Wrangler, and implementing the @libsql/client/web library in a Worker script.
When To Use
Use when you need to connect a Cloudflare Worker to a Turso edge database and require the specific steps for credential configuration and client library implementation.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-databases-third-party-integrations-turso-workflow-guide.md | A guide explaining how to set up and integrate a Turso libSQL database with Cloudflare Workers. | Questions about a guide explaining how to set up and integrate a Turso libSQL database with Cloudflare Workers. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs.text | Instructions for installing the Turso CLI on macOS and Linux using Homebrew or a manual shell script. | Exact payloads, commands, or snippets shown in Instructions for installing the Turso CLI on macOS and Linux using Homebrew or a manual shell script. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-2.text | A text command demonstrating how to verify the installed Turso CLI version using the turso --version command. | Exact payloads, commands, or snippets shown in A text command demonstrating how to verify the installed Turso CLI version using the turso --version command. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-3.text | The command used to authenticate the Turso CLI for use with Cloudflare Workers. | Exact payloads, commands, or snippets shown in The command used to authenticate the Turso CLI for use with Cloudflare Workers. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-4.text | Terminal output demonstrating a successful authentication process using the Cloudflare CLI for a Turso database integration. | Exact payloads, commands, or snippets shown in Terminal output demonstrating a successful authentication process using the Cloudflare CLI for a Turso database integ... |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-5.text | A CLI command demonstrating how to create a new database using the Turso database tool. | Exact payloads, commands, or snippets shown in A CLI command demonstrating how to create a new database using the Turso database tool. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-6.text | CLI output demonstrating the successful creation of a Turso database in the Amsterdam region. | Exact payloads, commands, or snippets shown in CLI output demonstrating the successful creation of a Turso database in the Amsterdam region. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-7.text | A text snippet demonstrating the command to access a Turso database via the Turso CLI shell. | Exact payloads, commands, or snippets shown in A text snippet demonstrating the command to access a Turso database via the Turso CLI shell. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-8.text | SQL commands to create an elements table and insert initial chemical element data for use with Turso in Cloudflare Workers. | Exact payloads, commands, or snippets shown in SQL commands to create an elements table and insert initial chemical element data for use with Turso in Cloudflare Wo... |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-9.text | CLI commands for retrieving a Turso database URL and creating an authentication token. | Exact payloads, commands, or snippets shown in CLI commands for retrieving a Turso database URL and creating an authentication token. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-10.text | Wrangler CLI commands for adding Turso database URL and authentication token as environment secrets. | Exact payloads, commands, or snippets shown in Wrangler CLI commands for adding Turso database URL and authentication token as environment secrets. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-11.text | The npm installation command for the @libsql/client package required to use Turso with Cloudflare Workers. | Exact payloads, commands, or snippets shown in The npm installation command for the @libsql/client package required to use Turso with Cloudflare Workers. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-12.text | The command to install the @libsql/client package using yarn for a Cloudflare Workers project. | Exact payloads, commands, or snippets shown in The command to install the @libsql/client package using yarn for a Cloudflare Workers project. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-13.text | The pnpm command required to install the @libsql/client package for using Turso with Cloudflare Workers. | Exact payloads, commands, or snippets shown in The pnpm command required to install the @libsql/client package for using Turso with Cloudflare Workers. |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-14.text | The command to install the @libsql/client package using the bun package manager for Cloudflare Workers and Turso integration. | Exact payloads, commands, or snippets shown in The command to install the @libsql/client package using the bun package manager for Cloudflare Workers and Turso inte... |
examples/workers-databases-third-party-integrations-turso-cloudflare-workers-turs-15.text | A JavaScript code example demonstrating how to initialize and use the LibSQL client within a Cloudflare Worker to query a Turso database. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to initialize and use the LibSQL client within a Cloudflare Worker to que... |
What This Skill Covers
- Turso ↗ is an edge-hosted, distributed database based on libSQL ↗, an open-source fork of SQLite. Turso was designed to minimize query latency for applicatio...
- Main sections:
Set up an integration with Turso.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/databases/third-party-integrations/turso
