PluginBench
Rule

htmx go fiber

via PatrickJS/awesome-cursorrules

Go Fiber integration patterns for HTMX-driven server-side rendering and request handling.

What is htmx go fiber?

This rule provides best practices for building HTMX applications with Go and the Fiber web framework. Use it when developing interactive web applications that rely on server-side HTML rendering and HTMX for dynamic updates.

  • Route HTMX requests using Fiber's Get/Post/Put/Delete handlers
  • Render server-side templates with Fiber's HTML rendering engine
  • Process HTMX-specific headers and requests via Fiber's Context
  • Implement CSRF protection and request logging with Fiber middleware
  • Serve static assets (CSS, JS) using Fiber's static file serving
  • Structure projects with cmd/, internal/handlers, internal/models, internal/templates, and static/ directories

Applies to

File patterns this rule matches.

**/*
Rule definition (reference)

Source of truth, from the repository.

// HTMX with Go and Fiber .cursorrules

// HTMX, Go, and Fiber best practices

const htmxGoFiberBestPractices = [ "Use Fiber's HTML rendering for server-side templates", "Implement Fiber's routing system for HTMX requests", "Utilize Fiber's middleware for request processing", "Use Fiber's JSON methods for API responses", "Implement proper error handling with Fiber's error handling", "Utilize Fiber's static file serving for assets", ];

// Folder structure

const folderStructure = cmd/ main.go internal/ handlers/ models/ templates/ static/ css/ js/ go.mod go.sum;

// Additional instructions

const additionalInstructions = `

  1. Use Fiber's App.Get/Post/etc for routing HTMX requests
  2. Implement CSRF protection with Fiber middleware
  3. Utilize Fiber's Context for handling HTMX-specific headers
  4. Use Fiber's template engine for server-side rendering
  5. Implement proper logging with Fiber's Logger middleware
  6. Follow Fiber's best practices for project structure
  7. Use environment variables for configuration `;

Related rules

Senior full-stack TypeScript, React, Node.js guidance with clean architecture, testing, and WHY-oriented reasoning.

**/*
41k
via PatrickJS/awesome-cursorrules

Quantitative factor research skills for designing, evaluating, and mining alpha factors in equities markets.

**/*
41k
via PatrickJS/awesome-cursorrules

Android development with Jetpack Compose, clean architecture, and Material Design 3.

**/*
41k
via PatrickJS/awesome-cursorrules

Angular development with Novo Elements UI library using standalone components.

**/*
41k
via PatrickJS/awesome-cursorrules

Expert Angular 18 + TypeScript development with Jest, emphasizing clean code and performance.

**/*
41k
via PatrickJS/awesome-cursorrules

Manage Kubernetes clusters, add-ons, stacks, and credentials via the Ankra CLI platform.

**/*.sh +5
41k
via PatrickJS/awesome-cursorrules