Skip to content
stacks

Cloudflare D1 with Drizzle

Typed D1 bindings, Drizzle's D1 driver, checked-in SQL migrations, and isolated local database tests without a Cloudflare account.

Category: service

In your existing repository

Ask your agent to check compatibility, follow this fragment’s brief, and verify the resulting project. What happens next

Applies to:
cloudflare-react-router

Add to your project

Paste the prompt into the coding agent working on your project.

View prompt
Add the cloudflare-d1 fragment to this existing repository. 1. Run npx @steamfield/stacks show cloudflare-d1 --json and check that it fits the project. If it does not, explain why before changing files. 2. Run npx @steamfield/stacks add cloudflare-d1 and follow the brief it prints. 3. In this repository, run npx @steamfield/stacks verify. Fix failures without weakening or skipping verification steps. 4. Summarize what changed and the verification result. Quote published stats only when they are available, including their interval and sample size. The stacks docs, written for agents, are at https://stacks.steamfield.io/llms.txt.
Or use the terminal
npx @steamfield/stacks add cloudflare-d1
Verify steps
StepPhaseLayerCommand
db-generatesetupinstallbun run db:generate
db-migratesetupinstallbun run db:migrate
Use with a new stack

Starting fresh instead? These stacks support this fragment.

Files

This fragment supplies instructions rather than project files.

Usage

Among stacks projects in the 28 days through 30 Oct 2026: 10 projects; Green rate: not enough runs yet.

Weekly projects by stack

Projects whose final fragment set included this fragment, grouped by stack.

Weekly projects including this fragment, by stack: time span

Not enough published observations yet.

Not enough published observations yet.

Stacks projects per UTC week through 30 Oct 2026. Published stack counts only.

Data table
Week endingStackProjects
5 Jul 2026cloudflare-react-router–
12 Jul 2026cloudflare-react-router–
19 Jul 2026cloudflare-react-router–
26 Jul 2026cloudflare-react-router–
2 Aug 2026cloudflare-react-router–
9 Aug 2026cloudflare-react-router–
16 Aug 2026cloudflare-react-router–
23 Aug 2026cloudflare-react-router–
30 Aug 2026cloudflare-react-router–
6 Sept 2026cloudflare-react-router–
13 Sept 2026cloudflare-react-router–
20 Sept 2026cloudflare-react-router–
27 Sept 2026cloudflare-react-router–
4 Oct 2026cloudflare-react-router–
11 Oct 2026cloudflare-react-router–
18 Oct 2026cloudflare-react-router–
25 Oct 2026cloudflare-react-router–

By stack

How often this fragment stays in a default composition, or gets attached as an option.

cloudflare-react-router
Optional · attached21%

10 projects including the fragment

Stacks projects · 28 days through 30 Oct 2026. Counts rounded to 5.

Data table
StackProjectsRoleShare
cloudflare-react-router10Optional · attached21%

Green rate with and without it

This compares projects; it isn't an effect of the fragment.

Not enough runs in this breakdown yet.

Stacks projects · 28 days through 30 Oct 2026. Counts rounded to 5.

Often used with

Co-occurrence above the baseline, within a stack. Required fragment pairs are excluded.

Not enough runs in this breakdown yet.

Stacks projects · 28 days through 30 Oct 2026. Counts rounded to 5.

Computed 31 Oct 2026, through 30 Oct 2026. Numbers describe stacks projects, not the ecosystem.