Getting Started
Welcome to Signalis! This guide will help you get up and running with Signalis in just a few minutes.
What is Signalis?
Signalis is a lightweight library for reactivity influenced by @preact/signals, SolidJS, and reactively. It aims to expose a small set of highly composable, highly performant primitives for building reactive programs as simply as possible.
Key Features
- Lazy Evaluation: Derived values only recompute when accessed, not when their dependencies change
- Push-Pull Model: Changes push notifications, reads pull updates for maximum efficiency
- Automatic Dependency Tracking: No manual subscription management needed
- Zero Dependencies: Lightweight and focused
- React Integration: First-class React support with hooks and HOC
Core Primitives
Signalis provides five core reactive primitives:
- Signals - Writable reactive values
- Derived - Readonly reactive computed values
- Effects - Reactive side-effect functions
- Resources - Async reactive values
- Stores - Proxy-based fine-grained reactive objects