Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules for building Go + Fiber apps with HTMX

Cursor rules guiding Go development with Fiber and HTMX: server-side rendering, routing HTMX requests, middleware, JSON responses, error handling, static assets, and project structure.

People use this for

  • go fiber htmx cursor rules
  • golang fiber server-side rendering
  • htmx request routing in go
  • fiber middleware setup for htmx apps
  • how do i structure a go fiber htmx project
Name
cursor-rules-for-building-go-fiber-apps-with-htmx
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-for-building-go-fiber-apps-with-htmx-8uk4/export/mdc" -o .cursor/rules/cursor-rules-for-building-go-fiber-apps-with-htmx.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-for-building-go-fiber-apps-with-htmx.mdc
Manual install

Save cursor-rules-for-building-go-fiber-apps-with-htmx.mdc as .cursor/rules/cursor-rules-for-building-go-fiber-apps-with-htmx.mdc for this project or ~/.cursor/rules/cursor-rules-for-building-go-fiber-apps-with-htmx.mdc for every project, then start a new session.

Rule


description: "Cursor rules for Go development with Fiber integration." globs: */ alwaysApply: false

// 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 `;

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.