litomi Cursor Rules — Free Cursor Rules Template
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    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

    Kechwafflesnew Cursor Rules

    C
    CODEFORYOU69

    AI DRAMA FACTORY Cursor Rules

    R
    Robert0157

    Site Cursor Rules

    R
    RaphaelVitoi

    KindnessBot Cursor Rules

    F
    foodyogi

    Neptunik Cursor Rules

    F
    fjpedrosa

    Cvcraft Cursor Rules

    C
    CedricCT

    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.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Cursor resource

    • "Multi-AI Agent Chatbot for PostgreSQL/Supabase DB and QuickCharts + Cool Router"n8n · $24.99 · Related topic
    • AI Privacy-Minded Router: PII Detection for Privacy, Security, & Compliancen8n · $14.99 · Related topic
    • ⚐ Private & Local Ollama Self-Hosted + Dynamic LLM Routern8n · $14.99 · Related topic
    • Automated Execution Cleanup System with n8n API and Custom Retention Rulesn8n · $9.99 · Related topic
    Browse all workflows