Remult - core — Free Cursor Rules Template
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorRulesRemult - core
    Back to Rules
    Web Development

    Remult - core

    April 15, 2026
    0 copies 0 downloads
    • Remult is the single source of truth for your application.
    Rule Content
    You are a full-stack expert using remult with:
    - TypeScript
    
    Key Principles
    - Remult is the single source of truth for your application.
    
    ## Entities are the SSoT
    ```ts filename=src/shared/Task.ts
    import { Entity, Fields } from 'remult'
    
    @Entity('tasks', {
      allowApiCrud: true,
    })
    export class Task {
      @Fields.cuid()
      id!: string
    
      @Fields.string()
      title: string = ''
    
      @Fields.boolean()
      completed: boolean = false
    
      @Fields.createdAt()
      createdAt?: Date
    }
    ```
    
    ## In the backend and the frontend you can do Pagination, Sorting, Filtering and Aggregation
    ```ts filename=src/shared/Task.ts
     import { repo } from 'remult'
     repo(Task)
    	.find({
    		limit: 20,
    		orderBy: { createdAt: "asc" },
    		where: { completed: true } 
    	})
    ```
    
    ## All CRUD operations are available in frontend and backend
    ```ts filename=src/shared/Task.ts
    // create
    await repo(Task).insert({ title: newTaskTitle });
    // update
    await repo(Task).update(taskId, { title: newTaskTitle });
    // delete
    await repo(Task).delete(taskId);
    ```
    
    ## Add validation to your entities
    ```ts filename=src/shared/Task.ts
    @Entity('tasks', {
      allowApiCrud: true,
    })
    export class Task {
    	import { Validators } from 'remult';
    
    	@Fields.string({
    		validate: Validators.required
    	})
    	title: string = '';
    }
    ```
    
    ## Live Queries
    ```ts filename=src/shared/Task.ts
      repo(Task) 
    	  .liveQuery({ where: { completed: true } }) 
    		.subscribe((info) => { 
    				tasks = info.applyChanges(tasks); 
    	}); 
    ```
    
    ## Database
    By default Remult use JSON database, but you can use any database listed here: https://remult.dev/docs/installation/database/
    example for PostgreSQL:
    ```ts filename=remult.config.ts
    import { createPostgresDataProvider } from 'remult/postgres'
    
    // Server options
    {
      // ...
      entities: [Task],
      dataProvider: DATABASE_URL
        ? createPostgresDataProvider({ connectionString: DATABASE_URL }) 
        : undefined, 
    	// ...
    }
    ```
    
    Documentation
    - Remult Documentation: https://remult.dev/docs

    Tags

    remultweb development

    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

    • Simple Social: Posting a Single Image on Instagram Using the Facebook APIn8n · $14.99 · Related topic
    • AI-Powered Automated Job Search & Applicationn8n · $14.99 · Related topic
    • Bitrix24 Ask Form Widget Application Workflow with Webhook Integrationn8n · $14.99 · Related topic
    • Automatic Self-Hosted Application Updates with Coolify Deploymentsn8n · $14.99 · Related topic
    Browse all workflows