# tursodatabase/libsql

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/tursodatabase-libsql).**

16,389 stars · 466 forks · C · mit

## Links

- GitHub: https://github.com/tursodatabase/libsql
- Homepage: https://turso.tech/libsql
- awesome-repositories: https://awesome-repositories.com/repository/tursodatabase-libsql.md

## Topics

`database` `embedded-database` `rust` `sqlite` `webassembly`

## Description

LibSQL is a high-performance, distributed SQL database engine that extends SQLite to support remote network access, edge computing, and real-time synchronization. It functions as an embedded database library that integrates directly into application processes while providing the infrastructure to maintain consistency across multiple geographic regions.

The platform distinguishes itself by enabling database interaction over standard HTTP protocols, allowing applications to query remote data sources in serverless and edge environments without requiring local filesystem access. It includes native support for high-dimensional vector similarity search and indexing, enabling AI and machine learning workflows to run directly within the database engine.

The system provides a comprehensive suite of tools for managing data lifecycles, including database branching, point-in-time state restoration, and automated synchronization between local replicas and remote primary instances. It also incorporates granular security primitives, such as token-based access control and network-level restrictions, to protect database resources in multi-tenant environments.

The project offers extensive observability and administrative features, including query performance monitoring, audit logging, and organizational management tools. It is designed for integration through language-specific drivers and supports advanced data processing through specialized modules for full-text and similarity search.

## Tags

### Data & Databases

- [SQLite Databases](https://awesome-repositories.com/f/data-databases/database-management-systems/database-engines/embedded-databases/sqlite-databases.md) — Extends SQLite to provide a high-performance, distributed SQL database engine. ([source](https://docs.turso.tech/api-reference/databases/upload.md))
- [Distributed Databases](https://awesome-repositories.com/f/data-databases/distributed-databases.md) — Distributes database content across multiple geographic regions to reduce latency and ensure high availability.
- [Distributed SQL Databases](https://awesome-repositories.com/f/data-databases/distributed-sql-databases.md) — Functions as a distributed SQL database engine for global, high-availability applications.
- [Edge Databases](https://awesome-repositories.com/f/data-databases/edge-databases.md) — Provides an edge-ready database platform optimized for low-latency access in distributed environments.
- [Embedded Database Engines](https://awesome-repositories.com/f/data-databases/embedded-database-engines.md) — Integrates a local database engine directly into the application process for low-latency storage.
- [Embedded Databases](https://awesome-repositories.com/f/data-databases/embedded-databases.md) — Integrates as a lightweight embedded database library within application processes.
- [Vector Similarity Search](https://awesome-repositories.com/f/data-databases/vector-similarity-search.md) — Executes vector similarity queries directly within the database to support AI-powered workflows. ([source](https://docs.turso.tech/introduction.md))
- [Data Replication](https://awesome-repositories.com/f/data-databases/data-replication.md) — Distributes database content across multiple geographic locations to reduce latency and improve availability. ([source](https://docs.turso.tech/features/data-edge.md))
- [Distributed Data Synchronization Systems](https://awesome-repositories.com/f/data-databases/distributed-data-synchronization-systems.md) — Maintains consistent data across local replicas and remote primary instances for high availability.
- [HTTP-to-SQL Mappers](https://awesome-repositories.com/f/data-databases/http-to-sql-mappers.md) — Transmits SQL commands and results over standard HTTP requests for serverless and edge environments.
- [Vector Databases](https://awesome-repositories.com/f/data-databases/vector-databases.md) — Stores and queries high-dimensional vector embeddings natively within the database engine.
- [Vector Storage](https://awesome-repositories.com/f/data-databases/vector-storage.md) — Stores and queries high-dimensional vector data natively to support machine learning and AI applications. ([source](https://docs.turso.tech/libsql.md))
- [Data Change Subscriptions](https://awesome-repositories.com/f/data-databases/data-change-subscriptions.md) — Streams database table updates to clients in real-time as transactions are committed. ([source](https://docs.turso.tech/sdk/http/reference.md))
- [Persistence & Durability](https://awesome-repositories.com/f/data-databases/data-engineering-infrastructure/data-persistence-storage/persistence-durability.md) — Persists committed transactions to cloud storage to ensure data remains recoverable. ([source](https://docs.turso.tech/cloud/durability.md))
- [Database Branching](https://awesome-repositories.com/f/data-databases/database-branching.md) — Generates isolated database instances from existing data to facilitate safe development and testing workflows. ([source](https://docs.turso.tech/features/branching.md))
- [Database Query Execution](https://awesome-repositories.com/f/data-databases/database-query-execution.md) — Enables executing SQL queries and managing data retrieval over standard HTTP requests. ([source](https://docs.turso.tech/integrations/vercel.md))
- [Multi-Version Concurrency Controls](https://awesome-repositories.com/f/data-databases/multi-version-concurrency-controls.md) — Enables concurrent write operations across nodes without locking to improve throughput. ([source](https://docs.turso.tech/introduction.md))
- [Vector Search](https://awesome-repositories.com/f/data-databases/vector-search.md) — Supports high-dimensional vector similarity search directly within the database engine.
- [Consistency Tuning](https://awesome-repositories.com/f/data-databases/consistency-tuning.md) — Ensures that clients can immediately query their own recent writes from a local replica. ([source](https://docs.turso.tech/features/embedded-replicas/introduction.md))
- [Database Backup Restoration](https://awesome-repositories.com/f/data-databases/data-governance-modeling/data-management-governance/backup-recovery-systems/database-backup-restoration.md) — Reverts databases to specific timestamps using transaction logs to recover from data loss. ([source](https://docs.turso.tech/features/point-in-time-recovery.md))
- [Data Snapshotting](https://awesome-repositories.com/f/data-databases/data-snapshotting.md) — Saves point-in-time copies of remote databases to local files for analysis and backup. ([source](https://docs.turso.tech/cli/db/export.md))
- [Data Synchronization Engines](https://awesome-repositories.com/f/data-databases/data-synchronization-engines.md) — Automates background tasks to synchronize local data with remote databases at defined intervals. ([source](https://docs.turso.tech/sdk/python/reference.md))
- [Database Connectivity](https://awesome-repositories.com/f/data-databases/database-connectivity.md) — Provides secure network connectivity for applications to access remote database instances. ([source](https://docs.turso.tech/sdk/introduction.md))
- [Transaction Management](https://awesome-repositories.com/f/data-databases/transaction-management.md) — Manages sequences of operations with manual commit or rollback triggers to ensure data integrity. ([source](https://docs.turso.tech/sdk/kotlin/reference.md))
- [Asynchronous Database Drivers](https://awesome-repositories.com/f/data-databases/asynchronous-database-drivers.md) — Performs non-blocking database interactions to maintain application responsiveness during high-concurrency workloads. ([source](https://docs.turso.tech/introduction.md))
- [Cloud Database Provisioning](https://awesome-repositories.com/f/data-databases/cloud-database-provisioning.md) — Facilitates the provisioning and management of database instances through command-line tools.
- [Concurrent Write Optimizations](https://awesome-repositories.com/f/data-databases/concurrent-write-optimizations.md) — Buffers write operations locally and synchronizes them in a single transaction to optimize performance. ([source](https://docs.turso.tech/integrations/vercel.md))
- [Database Drivers](https://awesome-repositories.com/f/data-databases/database-drivers.md) — Supports language-specific drivers to execute SQL statements and maintain authenticated communication. ([source](https://docs.turso.tech/sdk/http/quickstart.md))
- [Geographic Proximity Routing](https://awesome-repositories.com/f/data-databases/horizontal-database-scaling/multi-region-scaling/geographic-proximity-routing.md) — Determines the optimal database location based on network proximity to minimize latency. ([source](https://docs.turso.tech/api-reference/locations/closest-region.md))
- [Query Performance Analyzers](https://awesome-repositories.com/f/data-databases/query-performance-analyzers.md) — Analyzes execution history to identify and surface resource-intensive SQL statements for performance tuning. ([source](https://docs.turso.tech/cli/db/inspect.md))
- [Database Extensions](https://awesome-repositories.com/f/data-databases/database-extensions.md) — Supports integrating specialized modules for advanced data processing and indexing. ([source](https://cdn.jsdelivr.net/gh/tursodatabase/libsql@main/README.md))
- [Filesystem Synchronization](https://awesome-repositories.com/f/data-databases/distributed-filesystems/filesystem-synchronization.md) — Replicates local filesystem state to remote databases for backups and multi-machine collaboration. ([source](https://docs.turso.tech/agentfs/guides/sync.md))
- [File-Based Storage Systems](https://awesome-repositories.com/f/data-databases/file-based-storage-systems.md) — Maintains temporary database state entirely within system memory for ephemeral storage requirements. ([source](https://docs.turso.tech/sdk/c/examples.md))
- [In-Memory Databases](https://awesome-repositories.com/f/data-databases/in-memory-databases.md) — Maintains temporary database state within system memory for high-speed access. ([source](https://docs.turso.tech/sdk/ruby/examples.md))
- [Prepared Statements](https://awesome-repositories.com/f/data-databases/prepared-statements.md) — Compiles SQL queries with placeholders to improve performance and prevent injection vulnerabilities. ([source](https://docs.turso.tech/sdk/flutter/quickstart.md))
- [Virtualized Filesystem Layers](https://awesome-repositories.com/f/data-databases/storage-abstraction/local-filesystem-storage/virtualized-filesystem-layers.md) — Creates isolated filesystem layers allowing agents to modify data without altering underlying source files.

### DevOps & Infrastructure

- [Local-First Synchronization](https://awesome-repositories.com/f/devops-infrastructure/local-first-synchronization.md) — Maintains consistency between local database replicas and remote primary instances via automated synchronization.
- [Storage Configurations](https://awesome-repositories.com/f/devops-infrastructure/storage-configurations.md) — Allows storing database files within cloud infrastructure buckets to maintain control over data residency. ([source](https://docs.turso.tech/cloud/durability.md))

### Security & Cryptography

- [Encrypted Persistence](https://awesome-repositories.com/f/security-cryptography/data-encryption/encrypted-persistence.md) — Secures local database files at rest using user-provided encryption keys. ([source](https://docs.turso.tech/features/embedded-replicas/introduction.md))
- [Network Access Restrictions](https://awesome-repositories.com/f/security-cryptography/network-access-restrictions.md) — Limits incoming database connections to specific IP addresses, CIDR ranges, or VPC endpoints. ([source](https://docs.turso.tech/cloud/allow-rules.md))
- [Access Tokens](https://awesome-repositories.com/f/security-cryptography/access-tokens.md) — Validates client requests using scoped JSON Web Tokens to enforce granular permissions.
- [Database Access Control](https://awesome-repositories.com/f/security-cryptography/database-access-control.md) — Implements granular authentication and network-level restrictions to secure multi-tenant database resources.
- [Database Operation Permissions](https://awesome-repositories.com/f/security-cryptography/role-based-access-control/tab-access-restrictions/database-operation-permissions.md) — Enforces granular table-level permissions for reading, inserting, updating, or deleting database records. ([source](https://docs.turso.tech/sdk/authorization/fine-grained-permissions.md))
- [Access Token Management](https://awesome-repositories.com/f/security-cryptography/access-token-management.md) — Generates scoped credentials for specific databases or groups to authenticate programmatic requests. ([source](https://docs.turso.tech/cli/group/tokens/create.md))
- [API Request Authentication](https://awesome-repositories.com/f/security-cryptography/identity-access-management/authentication-strategies/machine-and-protocol-identity/api-machine-authentication/api-request-authentication.md) — Verifies caller identity and authorizes management operations using scoped tokens. ([source](https://docs.turso.tech/api-reference/authentication.md))
- [Credential Revocation](https://awesome-repositories.com/f/security-cryptography/identity-access-management/credential-lifecycle-management/credential-revocation.md) — Invalidates active database access tokens by rotating signing keys to terminate unauthorized connections. ([source](https://docs.turso.tech/sdk/authorization/tokens.md))
- [Session Authentication](https://awesome-repositories.com/f/security-cryptography/session-authentication.md) — Manages login flows and session tokens for persistent user access. ([source](https://docs.turso.tech/cli/introduction.md))
- [Access Control and Authorization](https://awesome-repositories.com/f/security-cryptography/identity-access-management/authentication-strategies/authorization-and-user-administration/access-control-authorization.md) — Authenticates users and authorizes programmatic interactions with database resources. ([source](https://docs.turso.tech/api-reference/quickstart.md))
- [OAuth Scope Restrictions](https://awesome-repositories.com/f/security-cryptography/oauth-scope-restrictions.md) — Enforces least privilege by limiting credential scope to specific organizations or groups. ([source](https://docs.turso.tech/api-reference/authentication.md))
- [Private Network Security](https://awesome-repositories.com/f/security-cryptography/private-network-security.md) — Routes database traffic through private virtual network connections to bypass the public internet. ([source](https://docs.turso.tech/cloud/private-endpoints.md))

### Web Development

- [Replica Request Routing](https://awesome-repositories.com/f/web-development/request-forwarding-mechanisms/replica-request-routing.md) — Directs database queries to the geographically closest replica to minimize network latency. ([source](https://docs.turso.tech/features/data-edge.md))

### Software Engineering & Architecture

- [SQL Batching](https://awesome-repositories.com/f/software-engineering-architecture/transaction-batching/sql-batching.md) — Groups multiple SQL statements into a single request to improve performance and reduce latency. ([source](https://docs.turso.tech/sdk/c/examples.md))

### System Administration & Monitoring

- [Query Performance Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/query-performance-monitoring.md) — Tracks frequent database queries and reports row-level metrics to identify performance bottlenecks. ([source](https://docs.turso.tech/api-reference/databases/stats.md))
- [Health Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/health-monitoring.md) — Reports operational status and version information for database instances to ensure system health. ([source](https://docs.turso.tech/sdk/http/reference.md))
- [Security Audit Logs](https://awesome-repositories.com/f/system-administration-monitoring/security-audit-logs.md) — Retrieves chronological records of administrative actions within an organization for security auditing. ([source](https://docs.turso.tech/api-reference/audit-logs/list.md))

### Business & Productivity Software

- [Organization Management](https://awesome-repositories.com/f/business-productivity-software/organization-management.md) — Enables users to establish new organizational accounts for managing shared database resources and billing. ([source](https://docs.turso.tech/cli/org/create.md))
- [Team Administration](https://awesome-repositories.com/f/business-productivity-software/team-administration.md) — Provides a centralized interface for managing organizational membership, team invitations, and subscription plans. ([source](https://docs.turso.tech/cli/introduction.md))
