118 karma · joined January 26, 2013
hacking on https://mastrojs.github.io
implementation: https://github.com/mastrojs/mastro/blob/main/src/core/html.t...
Are they running the frontend and backend in the same process? Sounds a bit dangerous security-wise?
@OP, if you're up for a rewrite of the frontend, happy to help you get started with https://mastrojs.github.io
But sure, if you have <Title>, <Header> and <Button> components etc. instead of using HTML elements <h1>, <header>, <button> etc. directly, then why not stuff the CSS into the components as well? It all depends on whether you prefer to use components, HTML elements or a combination as your favourite abstraction.[0]
[0]: https://mastrojs.github.io/blog/2025-11-27-why-not-just-use-...
I've gone back and forth on file-based vs programmatic routing. But each has pros and cons, so in the end I implemented both in Mastro: https://mastrojs.github.io/docs/routing/
For what it's worth, in my last experience with Bun[0] I ran into a couple of bugs where it seemed Rust could have helped, e.g. using Bun.write
[0]: https://mastrojs.github.io/blog/2025-10-29-what-struggled-wi...)
And for people that actually want to learn a bit of HTML, CSS and JavaScript, Mastro JS is as simple a static site generator as I could make it.
[0]: https://mastrojs.github.io/blog/2025-11-27-why-not-just-use-...
Nobody was ever fired for choosing React (or IBM). But everyone can get fired when they're working on a React app.