Alfama logo

Alfama

Une bibliothèque d'interface utilisateur réactive fine avec des abonnements explicites nommés signaux et composants et un support de première classe pour HMR ainsi que SSR.

Alfama screenshot 1
Aperçu

Qu’est-ce que Alfama ?

Fine grained reactive UI Library with explicit subscriptions and first-class support for HMR and SSR.

Comment utiliser Alfama

To use alfama, install it via npm or CDN, import the necessary components, and start building reactive UIs with explicit subscriptions and fine-grained updates.

Fonctionnalités clés

  1. 01Small Fully featured at 9kB gzip
  2. 02Truly reactive and fine grained updates
  3. 03Explicit subscriptions for easy reasoning
  4. 04Signals and Stores for data management
  5. 05First class HMR for stable experience

Cas d’usage

  • Building reactive user interfaces
  • Managing complex data structures
  • Implementing stable HMR experiences

Qui développe Alfama

alfama is developed by the maker with a focus on providing a reactive UI library with a manual subscription model for easy reasoning and stable HMR experiences.

Questions fréquentes

What is the core concept of signals in alfama?

Signals are reactive read-write variables that notify subscribers when they are written to, acting as dispatchers in the reactive system.

How can I use stores in alfama?

Stores are for storing nested arrays and objects, and they also act as dispatchers in the reactive system. They can be read-subscribed by wires and written to using the produce function.

What is the role of wires in alfama?

Wires are task runners that subscribe to signals and stores, reacting to writes. They hold a function (task) and manage subscriptions, providing a token for reading and subscribing to signals and stores.

Does alfama support first-class HMR experiences?

Yes, alfama provides first-class HMR support, preserving Signals and Stores across HMR loads for a stable HMR experience.

Is there a size limit to using alfama?

alfama is fully featured at 9kB gzip, making it a small and efficient choice for building reactive UIs.

Alternatives

Alternatives à Alfama à découvrir.

Open Source →

Guides associés

Tous les guides →