DEV Community

Abhishiv Saxena
Abhishiv Saxena

Posted on

Alfama: Fine grained reactive UI library with explicit subscriptions

Hey all

I would like to introduce Alfama, a fine grained reactive UI library with explicit subscriptions.

https://github.com/abhishiv/alfama

Features:

  • Small. Fully featured at ~9kB gzip.
  • Truly reactive and fine grained. Unlike VDOM libraries which use diffing to compute changes, it uses fine grained updates to target only the DOM which needs to update. - No Magic Explicit subscriptions obviate the need of sample/untrack methods found in other fine grained reactive libraries like solid/sinuous. Importantly, many feel that this also makes your code easy to reason about.
  • Signals and Stores. Signals for primitives and Stores for deeply nested objects/arrays.
  • First class HMR Preserves Signals/Stores across HMR loads for a truly stable HMR experience.
  • DevEx. no compile step needed if you want: choose your view syntax: h for plain javascript or for babel/typescript.
  • Rich and Complete. From support for SVG to popular patterns like dangerouslySetInnerHTML, ref to Fragment and Portal: Alfama has you covered.

There's also a react-router like router for Alfama called alfama-router

Would love to hear from people what they think.

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more