What can we learn from FastHTML?

Looks like Jeremy Howard has put quite a lot of thought into the design of FastHTML GitHub - AnswerDotAI/fasthtml: The fastest way to create an HTML app.

It could be interesting to see what his demo app fasthtml/examples/adv_app.py at main · AnswerDotAI/fasthtml · GitHub would look like in Genie.jl

1 Like

I didn’t know about FastHTML so thanks for the post. I actually also ran into a nice webapp framework based on angular under the hood but which is made completely in python for the end user. It’s super sleek and works really well. I think something like it would boost web development significantly in Julia. Even though you could use PyCall etc. to call directly into it I believe this is something that would be really cool in native julia. It’s called Mesop.

2 Likes

What should be better in FastHTML than we have with GitHub - OxygenFramework/Oxygen.jl: 💨 A breath of fresh air for programming web apps in Julia ?

As a heavy, and happy, user of Oxygen.jl I would say it’s the inclusion and ease of creating the UI side of interactive web apps. Especially since he’s basing it on HTMX which is a really good idea IMHO.

1 Like

We already have something like this in Julia with Stipple.jl! It allows you to expose data to the browser and implement callbacks with just a few macros, and write the UI in Julia. See the app gallery for some app examples.

Moreover, there’s also a VSCode extension called Genie Builder for building the UIs visually without writing any code at all.

Last, if we’re striclty talking about HTML pages here. Genie.jl also implements a low-code API that replicates most HTML tags. See an intro guide here.

1 Like

I don’t know. That’s why I hoped to nerdsnipe somebody to do the comparison :wink:

Thank you for the reply @DoktorMike .
It’s a good observation that HTMX is what sets FastHTML apart.
Looking at HTMX.jl it should not be too hard to add HTMX to Oxygen.jl. That would probably take us quite close.

2 Likes

I’m so glad you pointed this out – I’ve been mulling over a Julia HTMX generator… but the great minds of Julia always beat me to it :slight_smile:

1 Like

I cannot believe I didn’t know about the HTMX.jl package :package: :joy:

Really great to see some HTMX love in Julia.

3 Likes