Next.js Cloudflare D1 KV Cursor rules
This Cursor rule file covers TypeScript apps built with Next.js App Router, React, Shadcn UI, Radix UI and Tailwind that run on Cloudflare. It is for developers who want Cursor to suggest Cloudflare services like D1, KV, R2 and Workers AI where they fit, and the wrangler commands to use them.
What it does
Code is concise, functional and declarative with no classes, and variable names use auxiliary verbs like isLoading. Files are ordered as exported component, subcomponents, helpers, static content and types. Directories use lowercase with dashes, components use named exports, and TypeScript prefers interfaces and maps over enums.
How to use it
The rule applies to all files in the project.
Requirements and limits
The Cloudflare suggestions assume your app is deployed on Cloudflare's platform.
More in Rules and the Cursor library.
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.