HTMX editor in admin?

Hello,
I’ve seen Hussein’s video about htmx and searched a little bit and I wonder if this would be possible to edit app code (in htmx) directly in the frappe admin dashboard, inspired by something like GitHub - lassebomh/htmx-playground: A simple code sandbox for playing around with HTMX. No setup needed!

HTMX doesn’t need a build step (no need to run a dev server on a different port, …).
What do you think?
What could hinder it from working in Frappe Framework?

No one?

Please let me know if my question or remark was already treated or if there’s a reason it doesn’t get any reply.
It’s important to me. Thank you!

Hi there,

It’s not entirely clear to me what you’re trying to do. What does it mean to “edit app code” in this context? What are your referring to as the admin dashboard?

I don’t know much about htmx, but it looks to be just a regular runtime javascript library. If that’s the case, you can load it up and use it however you please.

HTMX can be integrated by including the htmx minified js in public folder and using htmx directives in the html file. However, frappe client libraries already provide you enough abstraction to make ajax calls to update values. It could be useful if you have custom HTML with Jinja templating where you don’t want to write JS, rather would like to use htmx to do the DOM manipulation. I tried it for fun, its no different than any other HTMX demo.

Sorry for the delay @peterg and @vkolgi , email notifications stopped working for me.

Hussain shows the interest of htmx with Frappe, see https://www.youtube.com/watch?v=4wSBV4EXfRs
Frappe localhost admin is great to create a backend app, but then you have to edit the HTML page through another external tool (VS Code) or console, especially when Frappe runs in a container. Low-code users are missing a frontend editor to build and edit the HTML pages that could include client side JS libraries (HTMX and others).

AFAIK, only HTMX offers a client framework that doesn’t need compilation (npm build …)
A few HTMX editors exist. Imagine this other open source no-code tool in a Frappe Admin page with Jinja (which is only server side) to work directly on your app.
HTMX is appreciated in Django world (which also use Jinja), see https://dhc.iwanalabs.com/ for a demo.
I hope it’s clearer, English is not my primary language.

Maybe there’s already a way to add a tool in admin page? IDK, I’m new to Frappe.