cloudflare-d1

Featured

Cloudflare D1 serverless SQLite on edge. Use for databases, migrations, bindings, or encountering D1_ERROR, statement too long, too many requests queued errors.

DevOps & Infrastructure 250 stars 36 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
80
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cloudflare D1 Database **Status**: Production Ready โœ… | **Last Verified**: 2025-01-15 ## Table of Contents 1. [What Is D1?](#what-is-d1) 2. [Quick Start](#quick-start-5-minutes) 3. [Critical Rules](#critical-rules) 4. [D1 API Methods](#d1-api-methods) 5. [Top 5 Use Cases](#top-5-use-cases) 6. [Migrations Best Practices](#migrations-best-practices) 7. [Common Patterns](#common-patterns) 8. [SQLite Type Affinity](#sqlite-type-affinity) 9. [Top 5 Errors Prevented](#top-5-errors-prevented) --- ## What Is D1? Cloudflare D1 is **serverless SQLite** on the edge: - SQL database without servers - Global distribution - Zero cold starts - Standard SQLite syntax - Read replication for global performance --- ## ๐Ÿ†• New in 2025 D1 received major updates throughout 2025: ### Performance (January 2025) - **40-60% latency reduction** globally (P50 query times) - Optimized SQLite engine for edge execution - Reduced cold start impact for databases <100 MB ### Reliability (September 2025) - **Automatic query retries**: Read queries retry up to 2x on transient failures - Transparent to application code (logged in `wrangler tail`) ### Scalability (April 2025) - **Read Replication (Public Beta)**: Deploy read replicas globally - Up to 2x read throughput for read-heavy workloads - Sessions API for read-write separation ### Compliance (November 2025) - **Data Localization**: Specify EU/US jurisdiction for GDPR/data sovereignty - Configure via `--jurisdiction` flag or wrangler.jsonc ### ...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
1 years ago
Last Updated
2 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content โ€” not just same category