litomi Cursor Rules — Cursor Rules | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorRuleslitomi Cursor Rules
    Back to Rules
    Frontend

    litomi Cursor Rules

    litomi2026 April 15, 2026
    0 copies 0 downloads

    - Next.js 16 (App Router)

    Rule Content
    # Cursor Rules
    
    ## Tech Stack
    
    - Next.js 16 (App Router)
    - React 19
    - TypeScript 5
    - Tailwind CSS 4
    - Drizzle ORM
    - TanStack Query
    - PostgreSQL 17
    
    ## Infrastructure
    
    ```
    사용자 (Web/PWA/앱)
    └─ Cloudflare (cloudflare/terraform/)
       ├─ DNS (dns-records.tf)
       │  ├─ Cloud Run (Next.js Web) (Dockerfile.nextjs, cloudbuild.*.nextjs.yaml)
       │  ├─ Cloud Run (Hono API) (Dockerfile.hono, cloudbuild.*.hono.yaml)
       │  ├─ Vercel (Next.js Edge API) (vercel/)
       │  ├─ Render (Next.js Web) (render.yaml)
       │  ├─ Cloudflare R2 (public.r2.dev)
       │  └─ Cloudflare Tunnel → Next.js Web + Hono API + Monitoring
       ├─ Edge rules
          ├─ cache-rules.tf (TTL/Bypass/Respect origin, R2 1y)
          ├─ redirects.tf (www → apex)
          ├─ managed-transforms.tf (headers)
          └─ rate-limiting.tf (zone rate limit)
    
    
    배치 (Cloud Run Jobs) (cloud-run/)
    ├─ manga-crawl: Cloud Scheduler → Job → Postgres(NEON_DATABASE_URL)
    └─ crawl-and-notify: (스케줄러 연결) Job → Postgres(POSTGRES_URL) + Web Push(VAPID)
    
    데이터/캐시
    ├─ Postgres: POSTGRES_URL (Web/API/notify), NEON_DATABASE_URL (manga-crawl)
    └─ Redis: UPSTASH_KV_REST_* (KV), REDIS_URL (Next.js cache 등)
    ```
    
    ## Code Style
    
    ### Colocation
    
    - **Keep non-reusable logic close to where it's used.** Types, utilities, and constants used only in a specific component or page should be defined in that file or the same folder.
    
    ```typescript
    // ❌ Bad - separating non-reusable types into a separate file
    // src/types/order-form.ts
    export interface OrderFormData {
      productId: string
      quantity: number
    }
    
    // src/app/orders/page.tsx
    import { OrderFormData } from '@/types/order-form'
    
    // ✅ Good - define types used only in this page within the same file
    // src/app/orders/page.tsx
    interface OrderFormData {
      productId: string
      quantity: number
    }
    
    export default function OrdersPage() {
      // ...
    }
    ```
    
    ```typescript
    // ❌ Bad - separating single-use utilities into lib folder
    // src/lib/utils/format-order-id.ts
    export function formatOrderId(id: string) {
      return `ORD-${id.toUpperCase()}`
    }
    
    // ✅ Good - define within the component file
    // src/components/orders/order-table.tsx
    function formatOrderId(id: string) {
      return `ORD-${id.toUpperCase()}`
    }
    
    export function OrderTable() {
      // uses formatOrderId
    }
    ```
    
    - Only move to shared folders (`lib/`, `utils/`, `types/`) when reused across multiple files.
    

    Tags

    nextjsreacttypescripttailwindcssdocker

    Comments

    More Rules

    View all
    Web Development

    Next.js 15 + TypeScript Cursor Rules

    Comprehensive .cursorrules file for Next.js 15 App Router projects with TypeScript, enforcing server components by default, proper use of "use client" directive, and App Router conventions.

    C
    Community
    Backend Development

    Python FastAPI Best Practices Rules

    Cursor rules for Python FastAPI projects enforcing async patterns, Pydantic v2 models, dependency injection, and proper error handling.

    C
    Community
    Frontend Development

    React + TypeScript Component Rules

    Rules for consistent React component development with TypeScript interfaces, proper hook patterns, and component composition.

    C
    Community
    AI/ML

    Cursor Agent Mode Configuration

    Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.

    C
    Cursor Team
    Frontend Development

    Tailwind CSS + shadcn/ui Rules

    Cursor rules for projects using Tailwind CSS with shadcn/ui component library, enforcing consistent utility class usage and component patterns.

    C
    Community
    Backend Development

    Go Backend Service Rules

    Rules for Go backend services enforcing idiomatic Go patterns, proper error handling, and clean architecture conventions.

    C
    Community

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.