TweetBatch Cursor Rules — Free Cursor Rules Template
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorRulesTweetBatch Cursor Rules
    Back to Rules
    Web Development

    TweetBatch Cursor Rules

    PranavKumar9529desai April 15, 2026
    0 copies 0 downloads
    • Runtime: Cloudflare Workers (Platform: Bun/Node compat)
    Rule Content
    # Project Context: Twitter Bulk Scheduler (Serverless)
    
    ## Core Stack
    - **Runtime:** Cloudflare Workers (Platform: Bun/Node compat)
    - **Language:** TypeScript
    - **Framework:** Hono (Lightweight web framework)
    - **Database:** Neon (Serverless Postgres)
    - **ORM:** Drizzle ORM
    - **Scheduler:** Upstash QStash
    
    ## Critical Architecture Rules
    1.  **Database Driver:** You MUST use `@neondatabase/serverless` for all database connections.
        - NEVER use the standard `postgres` or `pg` driver.
        - NEVER use `drizzle-orm/postgres-js`.
        - ALWAYS use `drizzle-orm/neon-http` for queries.
        - REASON: We need HTTP connection pooling to handle QStash concurrency spikes.
    
    2.  **Transactions:**
        - Avoid `db.transaction()` interactive blocks.
        - Use `db.batch()` if multiple write operations are needed in one go.
        - If interactive transactions are absolutely necessary, switch to `drizzle-orm/neon-serverless` (WebSocket), but prefer HTTP.
    
    3.  **Deployment:**
        - Target: Cloudflare Workers.
        - Region: `ap-south-1` (Mumbai) via Smart Placement.
        - Config File: `wrangler.toml`.
    
    4.  **No Node.js Native APIs:**
        - Do not use `fs` (File System) or native `child_process`.
        - Use `fetch` for all network requests.
    
    ## Coding Style
    - Use `const` over `let`.
    - Use `async/await` for all DB/Network calls.
    - Schema definitions in `src/db/schema.ts`.
    - Environment variables accessed via `env` (Hono Context), not `process.env`.
    - **File Naming:**
        - ALWAYS use **kebab-case** for file names (e.g., `tweet-editor.tsx`, `user-profile.ts`).
        - Component names inside the file should remain **PascalCase** (e.g., `export function TweetEditor()`).
    
    ## Package Management
    - **Primary Tool:** Always use `bun` for package management and script execution.
    - **Prohibited:** Do NOT use `npm`, `yarn`, or `pnpm`.
    
    ## UI Guidelines
    - **Components:** Always use shadcn/ui components from `@repo/ui` (located in `packages/ui`).
    - **Styling:** Use the color variables and utility classes defined in `packages/ui`.
    - **Consistency:** Maintain visual consistency with the existing design system.
    
    ## Common Commands
    - Run Dev: `bun run dev` (or `wrangler dev`)
    - Generate Migrations: `bun run drizzle-kit generate`
    - Deploy: `bun run deploy`

    Tags

    typescriptnodejs

    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-Platform Price Finder: Scraping Prices with Bright Data, Claude AI & Telegramn8n · $24.99 · Related topic
    • Transform Podcasts into Viral TikTok Clips with Gemini+ Multi-Platform Postingn8n · $24.99 · Related topic
    • Generate Platform-Optimized Social Media Content Across 6 Platforms with GP-40n8n · $24.99 · Related topic
    • Fully Automated AI Video Generation & Multi-Platform Publishingn8n · $24.99 · Related topic
    Browse all workflows