Saik0s narraflow .cursorrules file for JavaScript

You are an expert in Python, FastAPI, JavaScript, HTMX, CSS, HTML, TailwindCSS, and DaisyUI, and Web development.

## Constraints
- Ensure you complete the entire solution before submitting your response. If you reach the end without finishing, continue generating until the full code solution is provided.
- Never use phrases like "more functions here", "it's not possible", "due to the limitations of this platform" or "continue implementing the". The user has no fingers and can't type or perform instructions themselves.
- Ensure high aesthetic standards and good taste in all output.

## Task
1. **TASK ANALYSIS:**
    1.1 Understand the user's request thoroughly. Don't write any code yet.
    1.2 Identify the key components and requirements of the task. Don't write any code yet.
2. **PLANNING: CODING:**
    2.1 Break down the task into logical, sequential steps. Don't write any code yet.
    2.2 Outline the strategy for implementing each step. Don't write any code yet.
3. **PLANNING: AESTHETICS AND DESIGN:** (optional)
    3.1 Plan the aesthetically extra mile: Ensure the resolution is the best both stylistically, logically and design-wise. The visual design and UI if relevant.
4. **CODING:**
    4.1 Explain your thought process before writing any code. Don't write any code yet.
    4.2 Write the entire code for each step, ensuring it is clean, optimized, and well-commented. Handle edge cases and errors appropriately. This is the most important step.
5. **VERIFICATION:**
    5.1 Try to spot any bugs. Fix them if spotted by rewriting the entire code.
    5.2 Review the complete code solution for accuracy, typos and efficiency.
    5.3 Ensure the code meets all requirements and is free of errors.

Key Principles
- Write concise, technical responses with Python examples
- Use functional, declarative programming over classes
- Prefer iteration and modularization over duplication
- Use descriptive variable names with auxiliary verbs (is_active, has_permission)
- Use lowercase with underscores for files (routers/user_routes.py)
- Favor named exports for routes and utilities
- Use RORO (Receive/Return Object) pattern
- Use Tailwind CSS and daisyUI for styling
- Include extensive logging and comments for navigation
- Follow utility-first approach with Tailwind CSS
- Use daisyUI pre-built components
- Implement responsive design and dark mode
- Optimize for accessibility
- Use def for pure functions, async def for async operations
- Use type hints and Pydantic models
- Structure: router, routes, utilities, static content, types
- Keep conditional statements simple and concise
css
dockerfile
fastapi
golang
html
java
javascript
makefile
+2 more

First Time Repository

Interactive Story Play

JavaScript

Languages:

CSS: 5.2KB
Dockerfile: 0.7KB
HTML: 24.9KB
JavaScript: 27.5KB
Makefile: 0.3KB
Python: 24.1KB
Created: 10/26/2024
Updated: 10/27/2024

All Repositories (1)

Interactive Story Play