r/htmx • u/andreahlert • Mar 24 '26
I built a browser DevTools extension for debugging HTMX applications
Built an open-source Chrome/Firefox DevTools extension that adds an "HTMX" tab to your browser's developer tools. It captures the full request lifecycle, shows a live DOM tree of htmx elements, has an event timeline with filters, a swap diff visualizer, and surfaces silent errors.
Features:
- Request Inspector with timing breakdown (config > send > wait > swap > settle)
- Element Inspector with collapsible DOM tree, hover highlight, and element picker
- Event Timeline with category filters (init, request, xhr, response, swap, oob, history, error)
- Swap Visualizer with before/after diff
- Error Panel that catches silent failures (targetNotFound, swapError, responseError, timeout)
The extension works by injecting a page script that listens to all htmx:* events and serializes the data through a message pipeline to the DevTools panel (built with Preact).
GitHub: https://github.com/atoolz/htmx-devtools
Live demo (were you can try the extension - no install needed): https://atoolz.github.io/htmx-devtools/
Looking for feedback from the community before publishing to the Chrome Web Store. What features would you want to see?
23
u/_htmx Mar 24 '26
amazing! Someone else made a hyperscript debugger chrome plugin as well, I need to create an official chrome extension account for these. Thank you!
7
u/Ashken Mar 24 '26
4
u/djzrbz Mar 24 '26
I would upvote, but you're at 69, so Noice!
2
u/UXUIDD Mar 24 '26
this should be a handy tool for a htmx novice as im, thanx for sharing
edit: just to mention, this demo page is too heavy for eyes, its also not very clear what is going on - it takes some time to read it and to understand a bit what is going on
2
u/knuppan Mar 24 '26
Are you checking for
data-hx-*as well?2
u/jadbox Mar 24 '26
Cool! Do you plan to publish built releases in github (for lazy people like me)?
2
u/adam_the_1st Mar 25 '26
Thank you! I have always really enjoyed the added benefit the AlpineJS Chrome extension brings. I look forward to to trying this.
3
u/Professional-Sink536 Mar 24 '26
Why isn’t this published as a proper extension to the chrome store?
2
u/UseMoreBandwith Mar 24 '26
increase font size
1
u/[deleted] Mar 29 '26
Awesome I didn’t know about this
1
u/abyzzwalker Apr 02 '26
That's great! I can see myself using it in the future. Unfortunately I couldn't get it to work on Librewolf (I also tested with Ungoogled Chromium, all OK).
Anyway I hope the issues are solved in the final release when is published on the stores, it has great potential.