cloudflare-d1

Set up Cloudflare D1 databases with Workers and Drizzle ORM.

705|56|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/alinaqi/claude-bootstrap --skill cloudflare-d1-alinaqi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-d1
Source: https://github.com/alinaqi/claude-bootstrap/tree/main/skills/cloudflare-d1
Command: npx skills add https://github.com/alinaqi/claude-bootstrap --skill cloudflare-d1-alinaqi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to setting up and using Cloudflare D1, a serverless SQLite database, enabling developers to build scalable, edge-first applications with type-safe data access.

Core Features & Use Cases

  • Database Setup: Guides through creating D1 databases and configuring Wrangler.
  • ORM Integration: Demonstrates using Drizzle ORM for type-safe schemas, queries, and migrations.
  • Worker Implementation: Shows how to connect D1 to Cloudflare Workers for API development.
  • Use Case: Build a global, low-latency application backend where user data is stored in a D1 database, accessed via Cloudflare Workers, with all database schema changes managed through version-controlled migrations.

Quick Start

Use the cloudflare-d1 skill to set up a new D1 database and integrate it with a Cloudflare Worker using Drizzle ORM.

Frequently Asked Questions about cloudflare-d1

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

FAQPage Schema
How do I set up a serverless SQLite database with Cloudflare Workers?

To set up a serverless SQLite database with Cloudflare Workers, you create a D1 database, configure Wrangler, and connect it to your Worker using Drizzle ORM for type-safe data access at the edge.

What is Cloudflare D1 used for in edge application development?

Cloudflare D1 is a serverless SQLite database used for building scalable, edge-first application backends, enabling low-latency data persistence directly accessible through Cloudflare Workers.

Can I use Drizzle ORM with Cloudflare D1 for type-safe database queries?

Yes, you can use Drizzle ORM with Cloudflare D1 to define type-safe schemas, execute queries, and manage database migrations while maintaining strict type safety across your Worker application.

What's the best way to manage schema migrations for a D1 database?

The best way to manage schema migrations for a D1 database is using Drizzle ORM's migration workflows, which allow you to version-control all database schema changes and apply them systematically.

How do I handle local development strategies when building with Cloudflare D1?

Handling local development with Cloudflare D1 involves using Wrangler to run and test your Worker and database locally, ensuring your edge application behaves correctly before deploying to production.

Why do I need a serverless database for my Cloudflare Workers application?

You need a serverless database like D1 to provide scalable, type-safe data persistence at the edge, solving the need for low-latency global data access without managing traditional database infrastructure.