Tauri Svelte TypeScript Guide .cursorrules prompt file
About .cursorrules prompt file
What you can build
Cross-Platform Note-Taking App: Develop a secure, cross-platform note-taking app using Tauri, Svelte, and TypeScript. This app leverages Tauri's native capabilities for file system access, allowing users to save and organize notes offline. Use Svelte's reactive components for a smooth, responsive UI and implement state management for note organization.
Personal Finance Manager: Create a desktop personal finance manager tool that utilizes Tauri's APIs for safe local storage and Svelte for an intuitive user dashboard. TypeScript ensures reliable data models for transactions and account management, while Axios handles secure communication with any necessary online financial services.
Task and Project Management Tool: Develop a task and project management application with Svelte's component-based architecture to provide a clean and organized interface. Utilize Tauri to access local storage and TypeScript for type safety. Implement integration with external services for calendar and task synchronization using Axios.
Desktop E-Learning Platform: Build an e-learning platform with Tauri for desktop integration and offline capabilities. Use Svelte to create a dynamic, engaging user interface, and leverage TypeScript for managing course content and user progress tracking. Axios can be used for secure backend content delivery and user authentication processes.
Secure File Encryption Tool: Create a file encryption tool using Tauri's local file system access. Use Svelte for a user-friendly interface and TypeScript for handling encryption algorithms securely and efficiently. This tool offers users a simple way to encrypt/decrypt files with a focus on data privacy.
Health & Fitness Tracker: Develop a health and fitness tracking application that integrates with Tauri for local data handling and device sensors. Use Svelte's reactivity to update user interface elements dynamically as users log exercise or dietary insights. Leverage TypeScript for accurate data types and health metrics calculations.
Customizable News Aggregator: Design a news aggregator that lets users customize their news feeds and notifications. Utilize Tauri for background data fetching, Svelte for rich UI components, and TypeScript to ensure type safety. Axios will handle the retrieval of articles from various news APIs.
Local Document Editor: Implement a desktop document editing application with features like markdown support using Tauri's local file capabilities. Svelte can be used to create a smooth editing interface with real-time preview, while TypeScript ensures robust management of document data and settings.
Recipe Management App: Create a recipe management application that uses Tauri for offline recipe access and Svelte for a dynamic interface to add and organize recipes. TypeScript will aid in structuring the recipe data, and Axios can be utilized for fetching additional recipe content from online databases.
Photo Organizer: Design a photo organization tool using Tauri for managing local photo libraries. Svelte's reactive nature allows for smooth browsing and organizing of photos, while TypeScript manages photo metadata accurately. Include functionality for basic editing and enhancement of photos.
Benefits
- Emphasizes type safety and code quality by leveraging TypeScript's features.
- Prioritizes efficient and responsive UI development using Svelte's reactive paradigm.
- Focuses on secure and optimized communication between Tauri frontend and external backend.
Synopsis
Developers creating cross-platform desktop applications will benefit by building secure, performant, and modular Tauri applications with Svelte and TypeScript, ensuring seamless backend communication.
Overview of .cursorrules prompt
The .cursorrules file provides guidelines for developers building desktop applications using Tauri, Svelte, and TypeScript. It emphasizes key principles, such as type safety, responsive UI development, security, performance optimization, and testing best practices. The file outlines practices for front-end development, enabling efficient communication with backend services through Axios, and enforcing security measures like IPC handling and HTTPS usage. It also covers build and deployment strategies with Vite, and conventions for coding style and project structure. Dependencies include Tauri, Svelte, TypeScript, Vite, and Axios, with an emphasis on consulting official documentation for best practices.