logoalt Hacker News

Mithril.js: small (8.96 KB gzipped) modern client-side JavaScript framework

26 pointsby Brysonbwlast Tuesday at 7:07 PM11 commentsview on HN

Comments

sixtramyesterday at 4:35 AM

I used Mithril in 2015 for a very complex form view in an otherwise vanilla jquery page. It saved the project. React was also a new player at the time, but for some reason I wasn't able to include it with the "require.js" bundler (I guess the module format was not standardized yet). I actually liked Mithril, sent them some bug reports.

show 1 reply
bpevyesterday at 9:27 AM

It's kind of wild to me that I remember deciding between mithril and backbone, and now I'm still seeing it on the hn front-page (edit: oop. 2nd page) in 2025.

The longevity is real.

stevageyesterday at 1:45 AM

There seem to be so many of these. I really wonder who is the audience for these. Who needs a framework, is incredibly sensitive to bundle size, and doesn't mind using a bespoke framework with no ecosystem?

I'm just amazed that saving 100kb or whatever could outweigh the other factors.

show 1 reply
creamyhorroryesterday at 4:52 AM

Mithril is a relatively older framework and its creator lhorie comments on HN occasionally.

zoezoezoezoelast Tuesday at 7:21 PM

This is interesting, the code makes me want to euthanize myself, but it's cool to see.

show 1 reply
ilrwbwrkhvyesterday at 1:46 AM

Mithril is fantastic. A much better library for frontend development compared to react vue et al. Simpler and far more performant code.