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 106 stars 14 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
68
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
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
6 months ago
Last Updated
1 months ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

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

API & Backend Featured

cloudflare-api

Hit the Cloudflare REST API directly for operations that wrangler and MCP can't handle well. Bulk DNS, custom hostnames, email routing, cache purge, WAF rules, redirect rules, zone settings, Worker routes, D1 cross-database queries, R2 bulk operations, KV bulk read/write, Vectorize queries, Queues, and fleet-wide resource audits. Produces curl commands or scripts. Triggers: 'cloudflare api', 'bulk dns', 'custom hostname', 'email routing', 'cache purge', 'waf rule', 'd1 query', 'r2 bucket', 'kv bulk', 'vectorize query', 'audit resources', 'fleet operation'.

709 Updated 1 months ago
jezweb
Web & Frontend Solid

instantdb

Build complete, functional apps with InstantDB as the backend. Use when creating React/vanilla JS or expo applications. Triggers on requests for building apps.

18 Updated 1 months ago
fivestones
AI & Automation Solid

perf

Performance regression gate. Detects N+1 queries, sync-in-async, missing indexes, memory leaks, and bundle bloat before they reach production.

75 Updated 1 weeks ago
Rune-kit
DevOps & Infrastructure Featured

dstack

dstack is an open-source control plane for GPU provisioning and orchestration across GPU clouds, Kubernetes, and on-prem clusters.

2,148 Updated today
dstackai
API & Backend Solid

database-patterns

Use when designing database schemas, implementing repository patterns, writing optimized queries, managing migrations, or working with indexes and transactions for SQL/NoSQL databases.

280 Updated 2 months ago
MadAppGang