Backend Framework Rules
Cursor rules for backend frameworks and runtimes — Express, Django, FastAPI, Flask, Laravel, NestJS, Rails, Spring Boot, Deno, and Bun covering middleware, ORM patterns, API design, authentication, and deployment.

Overview
Backend frameworks and runtimes handle the server-side logic of modern applications — from database interactions and API endpoints to authentication and deployment. This section provides cursor rules for ten popular technologies: Express (minimalist Node.js), Django (batteries-included Python), FastAPI (async-first performance), Flask (lightweight Python microframework), Laravel (elegant PHP), NestJS (enterprise TypeScript), Rails (convention-over-configuration Ruby), Spring Boot (production-grade Java), Deno (secure TypeScript runtime), and Bun (all-in-one JS toolkit). Each rule set enforces the framework's idiomatic patterns so AI assistants generate clean, maintainable server-side code that follows real-world conventions.
Available Frameworks
Express
Minimalist Node.js web framework. Best for REST APIs, middleware-driven architectures, and JavaScript/TypeScript backends.
Django
Python web framework with batteries included. Best for large applications, admin panels, and ORM-heavy projects.
FastAPI
Modern Python web framework for building APIs. Best for high-performance async applications and OpenAPI documentation.
Flask
Lightweight Python microframework with Blueprint routing. Best for small-to-medium APIs and applications needing full architectural control.
Laravel
PHP web framework with elegant syntax. Best for rapid development, MVC architecture, and PHP ecosystem.
NestJS
Enterprise TypeScript framework with dependency injection. Best for large-scale Node.js apps, microservices, and teams transitioning from Angular.
Rails
Ruby web framework with convention over configuration. Best for rapid prototyping, SaaS applications, and MVC-driven projects.
Spring Boot
Production-grade Java framework with auto-configuration. Best for enterprise APIs, microservices, and JVM ecosystem projects.
Deno
Secure-by-default TypeScript runtime with native tooling. Best for modern server-side JS/TS with built-in formatter, linter, and test runner.
Bun
All-in-one JavaScript toolkit combining runtime, bundler, package manager, and test runner. Best for high-performance server-side apps with native SQLite.
Related Articles
Next.js Cursor Rules: Server Components, Routing, Fetching
Next.js cursor rules enforce server-first patterns, file routing, components, and efficient data fetching. Context-aware practices for maintainable code
Prisma Cursor Rules: Type-Safe Database ORM
Cursor rules for Prisma covering schema modeling, migrations, relation patterns, typed Client API, middleware, seeding, and performance optimization.
Programming Languages Supported by Cursor Rules
Explore programming languages supported by Cursor Rules with language-specific guidelines, best practices, and examples for effective AI-assisted coding.