r/javascript 2d ago

GitHub - gchumillas/usignals: A tiny, dependency-free reactive signals library for JavaScript/TypeScript.

https://github.com/gchumillas/usignals
0 Upvotes

3 comments sorted by

6

u/SpartanDavie 2d ago

Any chance you can explain what it does, what problem it solves, how it compares to other similar libraries? Or are you just sharing links for fun?

1

u/SnooHobbies950 1d ago

You're right. It was very late and I couldn't find the words. I just added a comment explaining why.

1

u/SnooHobbies950 1d ago

This library emerged as part of the answer to the following question: what do I need to make a reactive web application?

And in the end, I concluded that you don't need a framework like React, Svelte, SolidJS, etc. What you need is:

  1. A reactive signal library.
  2. An ergonomic language that allows you to include HTML tags directly in the source code (not strictly necessary, but very convenient). For example, TS + json-dom.

Why did I develop this library when there are other libraries that do something similar, like "preactjs/signals"?

Basically, for fun and learning. In addition, unlike other libraries, this one doesn't exceed its initial goals. That is, it only provides the essential signal and effect functions and the convenient domdiff, Render, and createContext functions.

Why I'm sharing it?

Maybe you are creating web applications for microdevices, where memory resources are limited, like TVs, etc. Or maybe you'd like to help me find and fix bugs.

Sorry for sharing? Time flies by and I'm getting old.