Home

Awesome

htmx-debugger v1.0.6 - 2024-10-22

Overview

htmx-debugger is a powerful browser extension (compatible with Chrome and Firefox) designed to help developers debug and analyze htmx applications. It provides a comprehensive and user-friendly interface for viewing htmx events, requests, and responses in real-time. This tool is essential for understanding and troubleshooting htmx-powered web applications, making the development process smoother and more efficient.

htmx-debugger panel with events

Features

Future

Installation

Chrome Web Store (Recommended)

  1. Visit the htmx-debugger page on the Chrome Web Store.
  2. Click the "Add to Chrome" button.
  3. Confirm the installation when prompted.

Manual Chrome Installation

  1. Clone this repository or download the source code.
  2. Open Google Chrome and navigate to chrome://extensions/.
  3. Enable "Developer mode" by toggling the switch in the top right corner.
  4. Click on "Load unpacked" and select the directory containing the extension files.
  5. The htmx-debugger extension should now appear in your list of installed extensions.

Firefox Add-Ons (Recommended)

  1. Visit the htmx-debugger page on the Firefox Add-Ons website.
  2. Click the "Add to Firefox" button.
  3. Confirm the installation when prompted.

Manual Firefox Installation

  1. Download the latest release file for Firefox browsers.
  2. Open Firefox and navigate to about:debugging#/runtime/this-firefox.
  3. Click on "Load Temporary Add-on..." and select the downloaded release file.
  4. The htmx-debugger extension should now appear in your list of installed extensions.

Safari Coming Soon

Usage

Opening the Debugger

  1. Navigate to a webpage that uses htmx.
  2. Open Chrome DevTools (Right-click > Inspect or press F12).
  3. Look for the "htmx" tab in the DevTools panel. If you don't see it, click on the ">>" icon to find it in the list of additional tools.

Debugging htmx Events

The debugger automatically captures htmx events as they occur on the page. Each event is displayed with the following information:

Using the Debugger Features

  1. Connection Status: Check the connection status indicator in the panel header to ensure the debugger is properly connected.
  2. Search: Use the search bar at the top to filter events based on their content.
  3. Clear: Click the "Clear" button to reset the debugger and remove all captured events.
  4. Event Filtering: Use the filter buttons to show all events, only requests, or only responses.
  5. Expand/Collapse: Click on an event header to expand or collapse its details.
  6. Timing Information: For grouped events, the total duration is displayed at the bottom of the group.

Troubleshooting

Development

Key File Structure

There are many other build/development-related files in addtion to those listed above. If you're contributing or modifying for your own purposes you should recgonize these.

Privacy Policy

htmx-debugger is committed to protecting user privacy and does not collect or use any personal user data. The extension operates solely within the context of the user's browser to provide debugging functionality for htmx applications.

Permissions and Their Justifications

  1. alarms: The alarms permission is used to schedule periodic connection checks, ensuring the debugger maintains a stable connection to the webpage. This improves the reliability of the debugging process.

Single Purpose Description

The single purpose of htmx-debugger is to provide a comprehensive debugging tool for web developers working with htmx-powered applications. It captures, displays, and analyzes htmx events in real-time, offering insights into the behavior and performance of htmx interactions within web pages.

Data Usage Compliance

htmx-debugger complies with both the Chrome Web Store Developer Program Policies and the Firefox Add-Ons policies regarding data usage. The extension:

By using htmx-debugger, users can be assured that their privacy is respected and that the extension operates within the bounds of its stated purpose as a development tool for htmx applications.

Version History

For a detailed changelog, please check the repository's commit log.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions, support, or feedback, please contact the author through standard channels.

Repository

The source code for this project is available on GitHub:

https://github.com/NomadicDaddy/htmx-debugger

For bug reports or feature requests, please use the issue tracker.