turso-libsql

Connect TypeScript/JavaScript projects to Turso using libSQL.

11|2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/the-perfect-developer/the-perfect-opencode --skill turso-libsql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turso-libsql
Source: https://github.com/the-perfect-developer/the-perfect-opencode/tree/main/.opencode/skills/turso-libsql
Command: npx skills add https://github.com/the-perfect-developer/the-perfect-opencode --skill turso-libsql

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Connect Turso via libSQL for application-level data access and queries in TypeScript/JavaScript projects, simplifying connection setup and data retrieval.

Core Features & Use Cases

  • Setup Turso connections using libSQL (WebSocket) for persistent connections or https for serverless queries
  • Configure authentication tokens, environment variables, and embedded replicas for offline or edge deployments
  • Utilize libSQL's vector search capabilities and embedded replicas for scalable AI workflows

Quick Start

Connect to Turso using libSQL in your application and run a simple query to verify connectivity.

Frequently Asked Questions about turso-libsql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect to Turso using libSQL in a TypeScript project?

To connect to Turso using libSQL in TypeScript, configure a client using WebSocket for persistent connections or HTTPS for serverless environments. You can execute queries by providing a remote URL, local file path, and authentication token.

What is the best way to set up libSQL embedded replicas for edge deployments?

Setting up libSQL embedded replicas for edge deployments involves configuring a local database file that syncs with Turso Cloud. This enables offline data access and low-latency queries at the edge before syncing back to the remote server.

Does libSQL support vector search for scalable AI workflows?

Yes, libSQL supports vector search capabilities natively within Turso databases. You can store and query vector embeddings directly in your database to build scalable AI workflows without needing a separate vector database.

How do I authenticate to Turso Cloud using environment variables and tokens?

Authenticating to Turso Cloud requires generating an access token from your Turso dashboard and passing it to the libSQL client. Storing this token in environment variables secures your credentials during application deployment.

Can I use Turso with libSQL for serverless TypeScript applications?

Yes, Turso with libSQL is fully compatible with serverless TypeScript applications via HTTP-based connections. This stateless connection method avoids persistent WebSocket overhead, making it ideal for serverless query execution.

When should I use WebSocket vs HTTP connections for libSQL queries?

Use WebSocket connections for libSQL queries when you need persistent connections in long-running applications, and use HTTP connections for serverless environments where stateless, short-lived query execution is required.