Better HN
topnewbestaskshowjobs
Log inSign up

bosmarcel

65 karma · joined Jul 18, 2025 (1y ago) · 20 submissions

Submissions

comment 2mo ago · link · parent

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.

comment 2mo ago · link · parent

Great post/reply, thanks a lot

comment 2mo ago · link · parent

Hahaha! Exactly

comment 2mo ago · link · parent

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!

comment 2mo ago · link · parent

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

comment 2mo ago · link · parent

O yes, thanks, appreciate it! I'm tired now, but i will find the time tomorrow to make it more readable!

comment 2mo ago · link · parent

It is based on ref. equality, so assignment through '=' will trigger an "effect".

comment 2mo ago · link · parent

Thanks, I really appreciate it! Hope others will feel the same. The frontend community needs and deserves simple tools:)

comment 2mo ago · link · parent

Thanx a lot!

comment 2mo ago · link · parent

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!

11.

Show HN: Mador – Make any DOM reactive with a tiny 80-line Proxy state tuple(github.com ↗)

101 points · by bosmarcel · 2mo ago · 35 comments

comment 3mo ago · link · parent

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

13.

Show HN: Flynt.js – 2.2kb, zero-build, CSP-safe reactivity library for MPAs(github.com ↗)

12 points · by bosmarcel · 3mo ago · 1 comment

comment 1y ago · link · parent

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!

15.

Show HN: Fluent-state: a new fresh take on local React state(github.com ↗)

5 points · by bosmarcel · 1y ago · 1 comment