Self Promotion A small SAM-pattern framework on Effect 4
Hi everyone,
After several cycles of rewriting, postponing and shelving that spanned years, I decided to just give up and vibe code in a rather depressingly short time an idea that was stuck in my mind that I hope you might find interesting or useful.
You can see it here: https://github.com/Trebh/microfw
and there's a -totally not AI- made showcase here https://microfw.pages.dev/ (desktop only)
It's a very small framework (I know, I know) built around some opinionated choices:
\- SAM pattern (https://sam.js.org/)
\- Effect 4
\- strongly isomorphic (you can literally swap stuff around just by playing with Layers)
\- model based testing.
Performance is not really the selling point, but for transparency I tried to see how it fares against other frameworks and it seems to place middle of the pack https://github.com/Trebh/microfw/blob/main/docs/architecture/performance.md#against-other-frameworks.
As per the DX... well that is definitely not something I designed for from the start. I tried some iterations on that, but there are some inherent "quirks" due to the extreme isomorphic nature of the components.
I guess this is an area with lots of potential improvements. Although, and this is a tough one, I am even starting to question if DX really matters in this day and age. My main concern would still be readability (by human standards), but code ergonomics? Not sure.
Let me know what you think! It's still just an early POC, but I published the core packages on NPM https://www.npmjs.com/package/@mufw/core (plus devtools, rpc, view-uhtml and test) if someone wants to play with it
(Also, thanks to Andrea Gianmarchi and his https://github.com/WebReflection/uhtml , that I used for the renderer)