HNHacker News
TopNewBestAskShowJobs

bosmarcel

65 karma · joined July 18, 2025

submissionscomments
bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
Looks nice!

Imho, custom elements are great, but very limited in a way that they almost always require knowledge of the domain.

Perhaps I can figure out a way to combine mador.js & custom elements.

bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
Great post/reply, thanks a lot
bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
Hahaha! Exactly
bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
That's a fair distinction, but I think they solve different problems. Signals are great, but they usually require managing primitives individually and don't map directly to deep, nested JS objects the same way. Mador is specifically about dropping in a plain, nested object and working with it like normal JS without .value "boilerplate". Appreciate the feedback on the README phrasing though—I'll tweak it so it doesn't sound like a false dilemma!
bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
Honestly, mostly for the fun of building it and seeing how small and simple I could make it. While big solutions like Preact or Vue are great, sometimes you just want a tiny zero-dependency script without the overhead. And it turned out to be quite nice as I may say so
bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
O yes, thanks, appreciate it! I'm tired now, but i will find the time tomorrow to make it more readable!
bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
It is based on ref. equality, so assignment through '=' will trigger an "effect".
bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
Thanks, I really appreciate it! Hope others will feel the same. The frontend community needs and deserves simple tools:)
bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
Thanx a lot!
bosmarcel··on Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple
Hey HN! I wanted to see how far you can push modern JavaScript Proxies without all the heavy overhead of a traditional framework. The result is Mador: a tiny ~80-line reactive state tuple ([r, w]) that lets you make any DOM element reactive using a simple CSS selector, automated dependency tracking, and batched microtasks. No build steps required—just drop it in. I built this over the weekend just to experiment with clean, zero-dependency reactivity. Would love to hear your thoughts or see where you'd run into limits with something like this!
bosmarcel··on Show HN: Flynt.js – 2.2kb, zero-build, CSP-safe reactivity library for MPAs
Hi HN! Creator of Flynt.js here.

I built Flynt.js to solve a common pain point in Multi-Page Application (MPA) setups like Magento/Hyvä, Laravel, and Rails: managing complex UI state without polluting HTML templates with heavy inline JS logic or dragging in massive framework bundles.

Key features: - Zero-build & Lightweight: ~150 lines of plain JS, zero dependencies. - Clean HTML (Presenter Pattern): Decouples logic into JS Presenters instead of heavy inline template attributes. - 100% Strict CSP Compliant: Never uses eval() or new Function(). - Native-friendly: Built-in automatic request aborting (no race conditions) and key-based DOM diffing for lists.

Currently working on a form extension for native HTML5 validation handling.

Would love to hear your feedback, thoughts, or suggestions!

https://github.com/marsbos/flynt.js

bosmarcel··on Show HN: Fluent-state: a new fresh take on local React state
Hi everyone!

Thanks for the interest in fluent-state.

Just a quick note: for easy installation and trying out the demo, check out these links:

NPM: https://www.npmjs.com/package/fluent-state

Demo: https://stackblitz.com/edit/vitejs-vite-uh4kyzkf?file=src%2F...

The GitHub repo is still available here for source and issues: https://github.com/marsbos/fluent-state

Happy coding!