---
title: "Cloudflare D1 - Serverless SQL Database"
description: "The easiest way to add SQL to your application. Serverless SQLite database with global read replication, native Worker integration, and time travel backups."
url: "https://www.cloudflare.com/products/d1"
---

# D1

> D1 is built into the Cloudflare Workers Platform with out-of-the-box integration with Workers. Applications need to save data. SQLite offers a familiar, relational database with SQL querying.

## Key Features

- Serverless SQLite database
- Global read replication
- Native Workers integration
- Time travel backups (30 days)
- Prisma and Drizzle ORM support
- Generated columns
- Per-database or per-user scaling

## Benefits

### Familiar SQL at the Edge

Build applications with the power and familiarity of a relational, SQL-based database that lives on the edge, close to your users. Leverage your existing SQL knowledge to query structured data with low latency, without having to learn a new query language.

### Native Worker Integration

Query your database with near-zero latency directly from your serverless functions, as D1 is built to be the stateful backend for the Cloudflare Workers ecosystem.

### Scale for Vibe-Coding Platforms

Create millions of D1 databases, per account or per user, and scale out your vibe-coding platform to support everyone. Pay only when databases are used.

## Use Cases

### Vibe-coding platforms

Instantly provision an isolated database for each user's project on your platform, providing fast, sandboxed data storage for online IDEs, CMS platforms, or multi-tenant SaaS applications. Provide your users with a full-featured SQL database without managing complex infrastructure.

### Familiar SQL at the Edge

Build applications with the power and familiarity of a relational, SQL-based database that lives on the edge, close to your users. Leverage your existing SQL knowledge to query structured data with low latency, without having to learn a new query language.

### User Profile & Configuration Storage

Store user-specific application settings, profiles, and personalization data directly at the edge to deliver fast, customized experiences. Reduce read latency for frequently accessed data and improve your application's responsiveness globally.

## Resources

- [Full Documentation](https://developers.cloudflare.com/d1/): Complete technical documentation
- [Get Started](https://dash.cloudflare.com/sign-up): Sign up and start building
- [Pricing](/plans.md): See pricing details

## Related Products

- [Artifacts](/products/artifacts.md): Git-native versioned storage
- [Cache Reserve](/products/cache-reserve.md): Persistent caching for static content
- [Data Platform](/products/data-platform.md): Ingest, Catalog & Query
- [Hyperdrive](/products/hyperdrive.md): Global databases

---

*This is a markdown version of [https://www.cloudflare.com/products/d1](https://www.cloudflare.com/products/d1) for AI/LLM consumption.*
