Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-databases-third-party-integrations-turso-workflow-guide.mdA 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.textInstructions 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.textA 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.textThe 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.textTerminal 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.textA 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.textCLI 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.textA 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.textSQL 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.textCLI 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.textWrangler 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.textThe 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.textThe 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.textThe 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.textThe 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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